LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 14.04
Posts: 155

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
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
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 14.04
Posts: 155

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: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
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 14.04
Posts: 155

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


Reply

Tags
logging



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

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:28 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
Open Source Consulting | Domain Registration