LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 08-27-2012, 02:57 AM   #1
gsr_kashyap
Member
 
Registered: Jul 2004
Location: india
Distribution: Ubuntu 9.04
Posts: 150

Rep: Reputation: 15
logging for service status


Hi All,
Does logging takes place if we check for the status of any service, is it being logged or are there any options to enable the same.

Thanks in advance.
 
Old 08-27-2012, 03:00 AM   #2
evo2
Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,431

Rep: Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191
Hi,

what do you mean by "check the status of any service"? How do you do this?

Evo2.
 
Old 08-27-2012, 04:08 AM   #3
gsr_kashyap
Member
 
Registered: Jul 2004
Location: india
Distribution: Ubuntu 9.04
Posts: 150

Original Poster
Rep: Reputation: 15
check the status of a service is
eg: service smbd status,
for the above example we get status of samba on the console.but wanted to know whether it is logged or not.
 
Old 08-27-2012, 04:57 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,451
Blog Entries: 54

Rep: Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893
No, the status of the service isn't logged (syslog), only the command (shell history). If you need regular service status checking, logging (and alerting) you can use Monit, Hobbit, Nagios or equivalent or reinvent the wheel and write your own script.
 
Old 08-27-2012, 08:53 AM   #5
gsr_kashyap
Member
 
Registered: Jul 2004
Location: india
Distribution: Ubuntu 9.04
Posts: 150

Original Poster
Rep: Reputation: 15
thnx spawn, that's was an interesting solution u have provided.
 
  


Reply

Tags
logging


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
There doesn't appear to be any service status information in the status log parthipan Linux - Server 1 06-25-2012 05:53 PM
HP Status Service Mig21 Slackware 3 05-11-2008 04:10 PM
User logging status shankarjha Linux - Newbie 2 04-17-2006 03:14 PM
service status gsr_kashyap Red Hat 6 04-03-2006 04:29 AM
Warning in Service Status FreeFox Linux - General 4 08-25-2003 10:16 AM


All times are GMT -5. The time now is 08:38 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration