2019/monitoring/icinga2/conf.d/downtimes.conf
Vladimir Vitkov d41084ea68 Initial icinga2 load
* Icinga2 config
 * Icingaweb2 config
 * Nginx location snippets

Most PHP modules installed. PHP is via php-fpm and on local socket
2019-10-24 00:05:56 +03:00

21 lines
542 B
Plaintext

/**
* The example downtime apply rule.
*/
apply ScheduledDowntime "backup-downtime" to Service {
author = "icingaadmin"
comment = "Scheduled downtime for backup"
ranges = {
monday = service.vars.backup_downtime
tuesday = service.vars.backup_downtime
wednesday = service.vars.backup_downtime
thursday = service.vars.backup_downtime
friday = service.vars.backup_downtime
saturday = service.vars.backup_downtime
sunday = service.vars.backup_downtime
}
assign where service.vars.backup_downtime != ""
}