Scheduled Downtime

downtime_sched

Description:

A web-configurable recurring downtime scheduler. Configuration web pages hook into Nagios interface, with a similar look and feel. Consists of one agent run via cron, and one cgi configuration script. By Steve Shipway.

Current Version

Last Release Date

May 27, 2009

Compatible With

Owner


Project Files
Project Notes

Web-configurable recurring downtime scheduler for Nagios 1 and 2 Written in Perl, requires no additional libraries.

Now includes checks to prevent re-scheduling same outage, some verification of valid host/service names, and support for Nagios 2.0

Version 2 properly supports Nagios 2, including the objects.cache file for extra speed.

V2.2 fixes bug with scheduling on Sundays and some other problems with frontend in nagios 2.2

WARNING: This does not have any integrated security. It does not check for external commands being enabled. It does not check that you are authorised to the host you are scheduling for. You are advised to use your web server's authentication to at least restrice the CGI to responsible users.

Support forum on http://www.steveshipway.org/forum

Reviews (5) Add a Review
downtime-3.0.tar.gz
by 42bios, May 31, 2019

New version 4.0 Mirror: http://www.share-online.biz/dl/LOID9WRPOO80 Download: http://steveshipway.org/forum/download/file.php?id=89



Very nice addon
by rjp, June 30, 2016

I was looking for a web-based possibility to schedule recurring downtime in Nagios. This addon offered exactly the things we needed. I've used the downtime-2.2 version with our Nagios Core 4.1.1, and I can confirm that it works fine. The only things that are different in the 3.0 version, are the downtime_job.pl file and the new line in the side.php file. The downtime_job.pl script schedules the downtime in Nagios, based on the recurring schedule you provided. I haven't seen any problems with the 2.2 version of the script. Make sure you use the new line in side.php however. Nothing has changed in downtime_sched.cgi I've followed the instructions in the 2.2 README file, and modified the files as described, but with a few additional settings. See below. In downtime_job.pl: my($NAGDIR) = "/usr/local/nagios" ; # Nagios root directory my($CFGFILE) = "$NAGDIR/etc/schedule.cfg"; # my configuration file my($CMDFILE) = "$NAGDIR/var/rw/nagios.cmd"; # Nagios CMD file my($OBJECTS) = "$NAGDIR/var/objects.cache"; # Nagios 2 objects file my($DOWNDAT) = "$NAGDIR/var/downtime.dat"; # existing sched downtime In downtime_sched.cgi: my($NAGIOS) = "/usr/local/nagios"; my($CFGFILE) = "$NAGIOS/etc/schedule.cfg"; # My config file! my($STATUSLOG) = "$NAGIOS/var/status.log";# if defined, check validity my($OBJECTS) = "$NAGIOS/var/objects.cache";# if defined, use nagios2 cache Furthermore, I've also added the following line to both sub headers parts in downtime_sched.cgi: This will make the text style the same as the rest of the Nagios web interface.



works fine with Nagios core 4.0.5
by michaelv, February 28, 2015

used the downtime-2.2.tar.gz - works fine with Nagios core 4.0.5 Just needed to edit the files as in README file: for downtime_job.pl: use strict; use Time::Local; my($VERSION) = "2.2"; # this script version #my($NAGDIR) = "/u02/nagios" ; # Nagios root directory my($NAGDIR) = "/usr/local/nagios" ; # Nagios root directory my($SVCALSO) = 0; # schedule outages for services on hosts as well as hosts? my($CFGFILE) = "$NAGDIR/etc/schedule.cfg"; # my configuration file #my($CMDFILE) = "$NAGDIR/log/rw/nagios.cmd"; # Nagios CMD file my($CMDFILE) = "$NAGDIR/var/rw/nagios.cmd"; # Nagios CMD file # Define this for Nagios 2 #my($OBJECTS) = "$NAGDIR/log/objects.cache"; # Nagios 2 objects file my($OBJECTS) = "$NAGDIR/var/objects.cache"; # Nagios 2 objects file #my($DOWNDAT) = "$NAGDIR/log/downtime.dat"; # existing sched downtime my($DOWNDAT) = "$NAGDIR/var/downtime.dat"; # existing sched downtime # Or these for Nagios 1 my($STATUSLOG) = "$NAGDIR/log/status.log"; # Nagios status log file my($HGCFG) = "$NAGDIR/etc/hostgroups.cfg";# needed if ver=1 my($DOWNLOG) = "$NAGDIR/log/downtime.log"; # existing sched downtime my($FREQUENCY) = 1440*7; # how many minutes to look ahead. Should be at least # 1440 (one day) and



Nice
by egalstad, December 31, 2010

Works nicely! 3.0 Link: http://steveshipway.org/forum/download/file.php?id=89 README says that cron will only run in the morning, but the supplied crontab runs it every minute. This is good since you won't miss a job schedule to start in the same day!



Easy to use, but be sure to get version 3 if you are running Nagios 3
by corshamjim, March 31, 2010

This add-on neatly adds the ability to set up recurring down-time for hosts or services with a web front-end which integrates well with the standard Nagios gui. Version 3 of this add-on is now available for users of Nagios 3. Check out Steve's support forum at http://www.steveshipway.org/forum/ (under "Nagios: Interoperability, Plugins and Utilities") for the latest on this.



Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
5 (6)
Favorites
0
Views
110,481