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-
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
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
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
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
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
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.