Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-26-2011, 10:06 AM   #1
LQ Newbie
Registered: Oct 2011
Distribution: Fedora, CentOS
Posts: 14

Rep: Reputation: Disabled
[Fedora 15] How to increase debug output in SSH session?

I have hard time describing what I want but I'll give it a try:

Lets take for example Apache webserver. There is two ways (ones I know) in Fedora to start it. /etc/init.d/httpd start or service httpd start. Now the thing I noticed is that if I perform this command for httpd (or any other) service via SSH session get this notice:

Starting httpd (via systemctl): [ OK ]

but if I perform same command when directly connected I see more output. For example this well known error/notice:

httpd: Could not determine the server's fully qualified domain name, using for ServerName
or if I restart iptables I see debug messages about flushing and reapplying rules etc.

Is it possible to see these messages via SSH too (like in CentOS)? They contain important info, that I wouldn't want to miss.
Old 10-26-2011, 10:54 AM   #2
Registered: May 2001
Posts: 29,359
Blog Entries: 55

Rep: Reputation: 3545Reputation: 3545Reputation: 3545Reputation: 3545Reputation: 3545Reputation: 3545Reputation: 3545Reputation: 3545Reputation: 3545Reputation: 3545Reputation: 3545
service, systemctl and SysV init scripts limit the amount of information displayed. The contents of the services or daemons logs are what you're looking for (like 'sudo tail -f /var/log/messages' and such).
Old 10-26-2011, 11:14 AM   #3
LQ Newbie
Registered: Oct 2011
Distribution: Fedora, CentOS
Posts: 14

Original Poster
Rep: Reputation: Disabled
The problem is, that those messages don't appear at '/var/log/messages'

Restarting httpd (via systemctl): [ OK ]
[root@proxy ~]# tail -n 5 /var/log/messages
Oct 26 18:54:10 proxy /usr/sbin/gpm[632]: Request on 6 (console 0)
Oct 26 19:16:21 proxy /usr/sbin/gpm[632]: *** info [daemon/processrequest.c(42)]:
Oct 26 19:16:21 proxy /usr/sbin/gpm[632]: Request on 6 (console 0)
Oct 26 19:16:29 proxy /usr/sbin/gpm[632]: *** info [daemon/processrequest.c(42)]:
Oct 26 19:16:29 proxy /usr/sbin/gpm[632]: Request on 6 (console 0)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
SSH concurrent session limit and idle session time out lasygsd Linux - Newbie 3 10-30-2014 07:56 AM
Keyboard layouts missing = 5 hours martirdom + debug session with good learning value vsurlan Linux - Software 0 02-16-2010 02:07 AM
cmake or make: debug output, show command Ephracis Programming 4 03-01-2008 03:28 AM
CGI Perl problem with :session -debug craig467 Programming 2 07-20-2006 08:45 AM
wpasupplicant + prism54 - can anyone debug this output? 66gdub Linux - Wireless Networking 1 11-30-2005 12:08 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:02 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration