Customize Icinga2 configuration
Add 30 seconds timeout to the apt check
This commit is contained in:
parent
ff76e8340d
commit
912a286278
13 changed files with 485 additions and 1 deletions
20
modules/rhizo_base/files/etc/icinga2/conf.d/downtimes.conf
Normal file
20
modules/rhizo_base/files/etc/icinga2/conf.d/downtimes.conf
Normal file
|
@ -0,0 +1,20 @@
|
|||
/**
|
||||
* 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 != ""
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue