The Nagios downtime scripts have been created to automatically schedule downtimes to Nagios when taking down monitored hosts and/or services. Scheduling downtimes in Nagios during maintenances is important to suppress needless notifications and to differ planned downtimes from others in reportings.
What is special?
The downtime scripts for Nagios communicate with Nagios using the classic CGI interface to schedule and delete downtimes. This has been realized this way to have no additional service listening on the Nagios server.
The Nagios downtime scripts are available in Perl and Visual Basic Script (vbs). The perl scripts have been developed for Linux/Unix platforms and should work on most Linux distributions out of the box. The vbs edition of the script have been created using Windows XP and 2003 and should work on newest Windows systems without any additional software.
Since version 0.5 of the perl edition and 0.8 of the vbs edition it is possible to delete previously scheduled downtimes before the end of the downtime calling the script in “deletion” mode. For details about this feature take a look at the help output of the scripts.
You may call the script post shutting down a machine. In case of a Linux server you might use the provided init script to schedule a downtime when restarting or shutting down the system to inform the Nagios server about the planned downtime. Similar solutions can be used on Windows servers using shutdown scripts.
The nagios_downtime scripts can also be called using schedulers like the cron daemon for scheduling downtimes for hosts and/or services on a regular base.
The Nagios downtime scripts are hosted on Nagios forge Nagiosforge has been closed. The files are now directly available via Git. Maybe i’ll pack future releases – the git must be enough for the moment.