I've some servers in a remote area where I don't have a collector setup that I
would like to delay (or at the worst disable) notifications for ping4 warning
and critical events. I've configured the following in Icinga 2:
apply Service "ping4" {
import "generic-service"
check_command = "ping4"
vars.sla = "24x7"
max_check_attempts = 10
enable_notifications = 0
assign where "linux-servers" in host.groups
assign where "windows-servers" in host.groups
ignore where host.address == ""
}
apply Notification "mail-icingaadmin" to Service {
import "mail-service-notification"
user_groups = [ "icingaadmins" ]
assign where service.vars.sla == "24x7"
ignore where match("ping*", service.name)
}
apply Notification "mail-icingaadmin2" to Service {
import "mail-service-notification"
user_groups = [ "icingaadmins" ]
interval = 5m
times.begin = 15m // delay notification window
assign where service.name == "ping4"
}
However, I still continue to receive emails for problems with the ping4 service
checks. Any ideas of what I am missing?
# icinga2 --version
icinga2 - The Icinga 2 network monitoring daemon. (Version: v2.1.1)
Copyright (c) 2012-2014 Icinga Development Team (http://www.icinga.org)
License GPLv2+: GNU GPL version 2 or later
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Application information:
Installation root: /usr
Sysconf directory: /etc
Run directory: /var/run
Local state directory: /var
Package data directory: /usr/share/icinga2
State path: /var/lib/icinga2/icinga2.state
Objects path: /var/cache/icinga2/icinga2.debug
PID path: /var/run/icinga2/icinga2.pid
Application type: icinga/IcingaApplication
# cat /etc/system-release
CentOS release 6.6 (Final)
Thanks!
Dan Thagard
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.icinga.org/mailman/listinfo/icinga-users