Page 1 of 1

Handling Nagios Down

Posted: Tue Jan 14, 2014 2:23 pm
by vinothsethuram
At times, Nagios is going down. Is there anyway to send email every 1 hour from nagios about its current status.

Re: Handling Nagios Down

Posted: Tue Jan 14, 2014 2:29 pm
by abrist
You could create a cron job that essentially uses sendmail to send an "all clear" email. Nagios should not go down though, you may have larger issues that need to be addressed.

Re: Handling Nagios Down

Posted: Wed Jan 15, 2014 9:40 am
by vinothsethuram
Cron job is Linux/Unix feature. How can we know whether Nagios is down or not by scheduling cron job? As of now, I am making wrong request to make a service failure with notification interval as 60 min so that i will get failure notification for every one hour.

Re: Handling Nagios Down

Posted: Wed Jan 15, 2014 10:02 am
by tmcdonald
vinothsethuram wrote:Cron job is Linux/Unix feature. How can we know whether Nagios is down or not by scheduling cron job?
You do this by scheduling the cron job to check the output of, for example, "service nagios status" and email based on that output. There is a big difference between Nagios going down and the server itself going down. If you want to monitor the server itself you will of course need another server to watch it.