Does anyone know if Nagios has an option to set a temporary check_interval setting on a service check and have it revert back after a X minutes?
My service check definition looks like this:
define service {
host_name prodhost
use http
service_description www.example.com:8080
check_command check_http!8080!example.com:8080!/!5.000!10.00
servicegroups http-check
check_interval .5
retry_interval .25
max_check_attempts 3
}
The problem is that each time changes are made onto my web app (via a CI), it also has to restart the application as part of the deployment process. Which triggers some of my 5 second and 10 second warning and critical alerts.
I would like to be able to keep my current check_interval, retry_interval, and max_check_attempts thresholds in tact, but be able to temporarily change them whenever a deployment is made and have it revert back to its original state after 3 minutes.