Check Nagios service Down

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ergobind
Posts: 2
Joined: Mon Nov 09, 2015 1:08 pm

Check Nagios service Down

Post 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.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Check Nagios service Down

Post 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".
Former Nagios employee
ergobind
Posts: 2
Joined: Mon Nov 09, 2015 1:08 pm

Re: Check Nagios service Down

Post 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.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Check Nagios service Down

Post 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.
Former Nagios employee
Locked