Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2014
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.77 KB | None | 0 0
  1. object NotificationCommand "notify-host-by-pagerduty" {
  2.    import "plugin-notification-command"
  3.    command = "/usr/local/bin/pagerduty_icinga.pl enqueue -f pd_nagios_object=host"
  4.  
  5.    env = {
  6.      "CONTACTPAGER" = "$user.pager$"
  7.      "NOTIFICATIONTYPE" = "$notification.type$"
  8.      "HOSTNAME" = "$host.name$"
  9.      "HOSTALIAS" = "$host.display_name$"
  10.      "HOSTSTATE" = "$host.state$"
  11.      "HOSTOUTPUT" = "$host.output$"
  12.    }
  13. }
  14.  
  15. object User "pagerduty" {
  16.   import "generic-user"
  17.   groups = [ "icingaadmins" ]
  18.   pager = "32charkeyhere---------"
  19. }
  20.  
  21. object Host "ubuntu-base-14-test-monitor" {
  22.   address = "10.13.7.166"
  23.   check_command = "hostalive"
  24.   vars.sla = "24x7"
  25.   check_interval = 30
  26.   retry_interval = 15
  27.   vars.os = "Linux"
  28.   vars.enable_pagerduty = true
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement