[icinga-users] custom notification method for some service

Anton Gorlov stalker at altlinux.ru
Tue Jan 17 09:19:50 CET 2017


16.01.2017 23:22, Volker Janzen пишет:
> Hi,
> 
> sorry, I hit sent before finishing my sentence
> 
>> You need to set 
> 
> the assign where rule according to your needs, e.g. use a custom variable that you add to all services you want to have a special notification.

 custom variable in service definition example is
(vars.notification.custom=true )

apply Service for (http_vhost => config in host.vars.http_vhosts) {
  import "generic-service"
  check_command = "http"
  vars += config
  vars.notification.custom=true
}

?


More information about the icinga-users mailing list