Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
countdown_to_date
2012-11-01
2012-11-01
- Nagios 3.x
- Nagios XI
GPL
55868
File | Description |
---|---|
countdown_to_date.zip | countdown_to_date.zip |
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!
Usage: countdown_to_date.php --date date --warning wdays --critical cdays
date = The date in the future you are counting down to
This argument is required. The date format is YYYY-MM-DD
Examples: 2012-12-01 or 2020-05-09
wdays = How many days prior to countdown date before a WARNING alert is generated
cdays = How many days prior to countdown date before a CRITICAL alert is generated
Examples: 30 or 400
--warning OR --critical arguments are required. It is not necessary to use both.
Example:
countdown_to_date.php --date 2013-08-15 --warning 60 --critical 30
Configuring Nagios:
The following shows you how to configure your Command AND Service definitions.
Command Definition:
define command {
command_name countdown_to_date
command_line $USER1$/countdown_to_date.php $ARG1$ $ARG2$ $ARG3$ $ARG4$ $ARG5$ $ARG6$ $ARG7$ $ARG8$
}
Service Definition:
define service {
host_name your_host
service_description Warranty Status
check_command countdown_to_date!--date 2013-02-11!--warning 60!--critical 30
max_check_attempts 3
check_interval 1300
retry_interval 20
register 1
}
To see the help type "countdown_to_date.php --help | more"
Version Notes:
2012-11-01 Initial release.
date = The date in the future you are counting down to
This argument is required. The date format is YYYY-MM-DD
Examples: 2012-12-01 or 2020-05-09
wdays = How many days prior to countdown date before a WARNING alert is generated
cdays = How many days prior to countdown date before a CRITICAL alert is generated
Examples: 30 or 400
--warning OR --critical arguments are required. It is not necessary to use both.
Example:
countdown_to_date.php --date 2013-08-15 --warning 60 --critical 30
Configuring Nagios:
The following shows you how to configure your Command AND Service definitions.
Command Definition:
define command {
command_name countdown_to_date
command_line $USER1$/countdown_to_date.php $ARG1$ $ARG2$ $ARG3$ $ARG4$ $ARG5$ $ARG6$ $ARG7$ $ARG8$
}
Service Definition:
define service {
host_name your_host
service_description Warranty Status
check_command countdown_to_date!--date 2013-02-11!--warning 60!--critical 30
max_check_attempts 3
check_interval 1300
retry_interval 20
register 1
}
To see the help type "countdown_to_date.php --help | more"
Version Notes:
2012-11-01 Initial release.
Reviews (0)
Be the first to review this listing!