nagios_downtime scripts
Brief Description
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.
Purposes
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.
Links
The Nagios downtime scripts are hosted on Nagios forge. The newest versions can be downloaded directly from the repository. Version milestones are tagged and released as packed archives.







11:35 on November 30th, 2009
This script looks awesome. Gave it a quick test and it worked fine. This will be quite helpful for us! Thank you
14:34 on January 13th, 2010
Thanks for the improvements on your command line tool. I’ve been using version 0.3 for a long time and haven’t checked back to see about a new version until today. I like all the additions and improvements on the scripts!