LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 10-26-2011, 11:06 AM   #1
Flang3r
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:

Code:
httpd: Could not determine the server's fully qualified domain name, using 192.168.1.2 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, 11:54 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529
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, 12:14 PM   #3
Flang3r
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)
 
  


Reply


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 08:56 AM
Keyboard layouts missing = 5 hours martirdom + debug session with good learning value vsurlan Linux - Software 0 02-16-2010 03:07 AM
cmake or make: debug output, show command Ephracis Programming 4 03-01-2008 04:28 AM
CGI Perl problem with :session -debug craig467 Programming 2 07-20-2006 09:45 AM
wpasupplicant + prism54 - can anyone debug this output? 66gdub Linux - Wireless Networking 1 11-30-2005 01:08 PM


All times are GMT -5. The time now is 08:47 PM.

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