Home Directory Addons External Commands autoScheduledDowntime.pl

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

autoScheduledDowntime.pl

Current Version
1.0
Last Release Date
2012-05-30
Compatible With
  • Nagios 2.x
  • Nagios 3.x
  • Nagios 4.x
  • Nagios XI
License
GPL
Hits
47573
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
The autoScheduledDowntime-Script can be used to schedule periodically Nagios Downtimes.
First fill the Configfile with your Hosts/Services for wich you want to set a downtime (each entry in single line).
./autoScheduledDowntime.pl –help

autoScheduledDowntime.pl Version: 1.0
The autoScheduledDowntime-Script can be used to schedule periodically Nagios Downtimes.
First fill the Configfile with your Hosts/Services for wich you want to set a downtime (each entry in single line).

The format should look like that:
‘type’#'hostname’,'startdate’,'starttime’,'enddate’,'endtime’,'fixed’,'trigger-id’,'author’,'comment’

Examples:
This will set a fixed host-downtime today from 10 to 11:
host#Server-1,*,10:00:00,*,11:00:00,1,0,7200,scheduledByAutoScheduledDowntimeScript,Demo Host Downtime

This will set a fixed service-downtime on May, 31 from 10 to 11:
service#Server-1,Service-XY,31-05-2012,10:00:00,31-05-2012,11:00:00,1,0,7200,scheduledByAutoScheduledDowntimeScript,Demo Service Downtime

Now you have to run the script periodically (i.e. with cron at midnight)

Usage:

-V (–version) Script version
-h (–help) Usage help