Starting/Ending Downtime via passive message or similar?
Posted: Sat Apr 19, 2014 7:15 am
Hi,
I've been using Nagios Core for a number of weeks now and been searching for a while of a way to implement a blackout but either as a passive message or some other mechanism.
My situation is that we use Jenkins to do code deploys, but during the code deploy we need to restart servers, I want to initiate (from a client with NSCA, NRPE etc installed) a message to the Nagios server to enable downtime for 5 mins (or longer depending on the type of deployment we're doing) before we restart the services on the particular host. I've checked NSCA but it only appear to be able to send back passive status updates as opposed to actual downtime initiations etc.
I know I could probably do this with flexible downtime settings etc, but once the restart has finished I then want to send a message to say end the downtime and alert as normal on this host.
i know I could do this by setting up some SSH pub/pri key exchange and SSH straight into the server and add to the command file, but doesn't seem very elegant.
I'm sure someone else must have seen this problem and resolved so any help would be much appreciated,
Thanks,
I've been using Nagios Core for a number of weeks now and been searching for a while of a way to implement a blackout but either as a passive message or some other mechanism.
My situation is that we use Jenkins to do code deploys, but during the code deploy we need to restart servers, I want to initiate (from a client with NSCA, NRPE etc installed) a message to the Nagios server to enable downtime for 5 mins (or longer depending on the type of deployment we're doing) before we restart the services on the particular host. I've checked NSCA but it only appear to be able to send back passive status updates as opposed to actual downtime initiations etc.
I know I could probably do this with flexible downtime settings etc, but once the restart has finished I then want to send a message to say end the downtime and alert as normal on this host.
i know I could do this by setting up some SSH pub/pri key exchange and SSH straight into the server and add to the command file, but doesn't seem very elegant.
I'm sure someone else must have seen this problem and resolved so any help would be much appreciated,
Thanks,