LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   logging for service status (https://www.linuxquestions.org/questions/linux-general-1/logging-for-service-status-4175424162/)

gsr_kashyap 08-27-2012 02:57 AM

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.

evo2 08-27-2012 03:00 AM

Hi,

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

Evo2.

gsr_kashyap 08-27-2012 04:08 AM

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.

unSpawn 08-27-2012 04:57 AM

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.

gsr_kashyap 08-27-2012 08:53 AM

thnx spawn, that's was an interesting solution u have provided.


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