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?
Thanks in advance
Nobuo
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.icinga.org/mailman/listinfo/icinga-users