SHARE
TWEET

Untitled

a guest Aug 19th, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. apply ScheduledDowntime "backup-downtime" to Service {
  2.   author = "icingaadmin"
  3.   comment = "Scheduled downtime for backup"
  4.  
  5.   ranges = {
  6.     monday = service.vars.backup_downtime
  7.     tuesday = service.vars.backup_downtime
  8.     wednesday = service.vars.backup_downtime
  9.     thursday = service.vars.backup_downtime
  10.     friday = service.vars.backup_downtime
  11.     saturday = service.vars.backup_downtime
  12.     sunday = service.vars.backup_downtime
  13.   }
  14.  
  15.   assign where service.vars.backup_downtime != ""
  16. }
  17.      
  18. apply Service "foo" {
  19.   display_name = "foo process"
  20.   import "generic-service"
  21.   check_command = "foo-process"
  22.   command_endpoint = host.address
  23.   vars.backup_downtime = "22:00-24:00,00:00-05:00"
  24.   assign where host.vars.type == "bar"
  25. }
  26.      
  27. vars.backup_downtime = "22:00-29:00"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top