Handling Nagios Down

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
vinothsethuram
Posts: 147
Joined: Thu Nov 07, 2013 11:44 am

Handling Nagios Down

Post by vinothsethuram »

At times, Nagios is going down. Is there anyway to send email every 1 hour from nagios about its current status.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Handling Nagios Down

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
vinothsethuram
Posts: 147
Joined: Thu Nov 07, 2013 11:44 am

Re: Handling Nagios Down

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

Re: Handling Nagios Down

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