Am 12.08.2015 um 17:15 schrieb Nobuo Matsushita:
Hi,

I am using Icinga2 v.2.3.4

I configure notification set up as follow:


template Notification "slack-service-notification" {

 command = "slack-service-notification"


 states = [ OK, Warning, Critical, Unknown ]

 types = [ Problem, Acknowledgement, Recovery, Custom,

           FlappingStart, FlappingEnd,

           DowntimeStart, DowntimeEnd, DowntimeRemoved ]

 users = ["icingaadmin"]

 period = "24x7"

}


template Notification "NOC-service-notification" {

 command = "NOC-service-notification"


 states = [ OK, Critical ]

 types = [ Problem, Acknowledgement, Recovery, Custom,

           FlappingStart, FlappingEnd,

           DowntimeStart, DowntimeEnd, DowntimeRemoved ]

 users = ["icingaadmin"]

 period = "24x7"

}



apply Notification "slack-notification" to Service {

 import "slack-service-notification"


 assign where service.vars.notification.slack

 ignore where match("*lab*", host.name)

}


apply Notification "NOC-notification" to Service {

 import "NOC-service-notification"


 assign where service.vars.notification.slack4

 ignore where match("*lab*", host.name)

}


apply Service "checktestservice"  {

   import "TS-service"

   check_command = "nrpe"

   vars.nrpe_command = "check_test_service"

   vars.notification.slack=true

   vars.notification.slack4=true

}



When critical events happened, I was expected to receive notification to both 
slack and slack4.

But I only received slack4 site. Am I doing something wrong?

Verify the notification objects generated by your apply rules ('icinga2 object 
list --type Notification').
Furthermore attach the debug logs sending / preventing notifications. More on 
the troubleshooting documentation.

Kind regards,
Michael




Thanks in advance


Nobuo




_______________________________________________
icinga-users mailing list
[email protected]<mailto:[email protected]>
https://lists.icinga.org/mailman/listinfo/icinga-users



-- 
Michael Friedrich, DI (FH)
Application Developer

NETWAYS GmbH | Deutschherrnstr. 15-19 | D-90429 Nuernberg
Tel: +49 911 92885-0 | Fax: +49 911 92885-77
GF: Julian Hein, Bernd Erk | AG Nuernberg HRB18461
http://www.netways.de | [email protected]

** OSBConf 2015 - September - osbconf.org **
** OSMC 2015 - November - netways.de/osmc **
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to