Re: [icinga-users] custom notification method for some service

2017-01-17 Thread Antony Stone
On Tuesday 17 January 2017 at 20:35:45, Anton Gorlov wrote: > 17.01.2017 22:10, Anton Gorlov пишет: > >>> custom variable in service definition example is > >>> (vars.notification.custom=true ) > >>> apply Service for (http_vhost => config in host.vars.http_vhosts) { > >>> > >>> import "generic-

Re: [icinga-users] custom notification method for some service

2017-01-17 Thread Anton Gorlov
17.01.2017 22:10, Anton Gorlov пишет: >>> 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.notificati

Re: [icinga-users] custom notification method for some service

2017-01-17 Thread Anton Gorlov
17.01.2017 21:33, Volker Janzen пишет: > Hi, > >> 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.notif

Re: [icinga-users] custom notification method for some service

2017-01-17 Thread Volker Janzen
Hi, > 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 > } this looks good for me. H

Re: [icinga-users] custom notification method for some service

2017-01-17 Thread Anton Gorlov
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 servic

Re: [icinga-users] custom notification method for some service

2017-01-16 Thread 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. Regards Volker ___ icinga-users

Re: [icinga-users] custom notification method for some service

2017-01-16 Thread Volker Janzen
Hi, > What right way to set custom notification methon for some services? Not > for host globally I think you can use an apply Notification: apply Notification "mail-icingaadmin" to Service { import "mail-service-notification" user_groups = host.vars.notification.mail.groups users = host.