Page 1 of 1

Downtime

Posted: Tue Oct 13, 2020 11:30 am
by kalyanpabolu
Hello Team,

We have a script that runs every day at a particular time to shut down servers. And another script to start those servers next morning. This is a daily activity.

We have scheduled a recurring downtime for those servers, we should not receive alerts when the servers are in downtime.

Now I have a question here. If in any case, our script to stop server doesnt work, then will we get some alert from Nagios?
Or, in other words, will it send any alert that will specify that particular server was in scheduled downtime but it is not DOWN yet?

Thanks in advance!!

Re: Downtime

Posted: Wed Oct 14, 2020 10:52 am
by benjaminsmith
Hi,
Now I have a question here. If in any case, our script to stop server doesnt work, then will we get some alert from Nagios?
I'm assuming you have this setup to put the server in downtime before running the shutdown script (to avoid unnecessary notifications), so on its own, it would not notify if the script failed for some reason as the host would be in a downtime state.

This would have to be scripted out to verify the server was down before initiating the downtime on the host. You can use the API/External Commands to start and stop downtime, so that might be an option.

Let us know if you further questions.

Benjamin

References
https://assets.nagios.com/downloads/nag ... ntime.html
https://assets.nagios.com/downloads/nag ... and_id=118