Page 1 of 1

Check Nagios service Down

Posted: Mon Nov 09, 2015 1:40 pm
by ergobind
Hi ALL

Can you please help me to how to checj nagios service was down at what time and reason of the service down.
Like
[root@hostname var]# service nagios status
nagios (pid 5072) is running...
[root@hostname var]#

OS system:

[root@hostname var]# cat /etc/redhat-release
CentOS release 6.6 (Final)


Now if we want to nagios service went down and reason which logs to check.

Please help. Thanks in advance.

Re: Check Nagios service Down

Posted: Mon Nov 09, 2015 1:43 pm
by tmcdonald
The /usr/local/nagios/var/nagios.log will have most of the information you need in regards to timing, but aside from seeing that it was shut down there will not be a specific reason such as "Faulty plugin caused segfault" or "User shut down service".

Re: Check Nagios service Down

Posted: Mon Nov 09, 2015 1:51 pm
by ergobind
Thanks for the reply.

Does the below logs description tell nagios was down
[1447091159] Caught SIGTERM, shutting down...
[1447091159] Successfully shutdown... (PID=1162)

so you mean to say nagios.log file do tells you that when nagios was down last time.

Does it tell you that was it done manually or any nagios service was crashed.

Re: Check Nagios service Down

Posted: Mon Nov 09, 2015 4:36 pm
by tmcdonald
Typically when you see the above message, it was either an intentional shutdown or a shutdown as part of an Apply Config process. If the process crashes, however, it likely will not be able to log why it crashed.