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!!
Downtime
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Downtime
Hi,
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
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.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?
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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!