On 17.06.2014 16:03, Carlos Cesario wrote:
I'm having a strange behaviour in notifications process.
Notifications for child hosts are being sent, and it should be
suppressed when the parent is down. Right?
I have the follwing scenario
host_client_vivo -> host_client_ap -> host_client_station (-> means "is
parent of")
When the host_client_vivo goes down, I receive 3 notifications
--- log part
[2014-06-17 10:19:03 -0300] information/Notification: Completed sending
notification for object 'host_client_station'
[2014-06-17 10:19:03 -0300] information/Notification: Completed sending
notification for object 'host_client_ap'
[2014-06-17 10:19:03 -0300] information/Notification: Completed sending
notification for object 'host_client_vivo'
Can we get a little more context from the debug log, especially the history
where configuration and dependencies are evaluated?
its follow the scnario config.
--- Begin config
// Hosts
object Host "host_client_vivo" {
import "generic-host"
address = "xxx.xxx.xx.xx"
notes = "Border router"
vars.os = "Router"
vars.sla = "24x7"
}
object Host "host_client_ap" {
import "generic-host"
address = "xxx.xxx.xx.xx"
vars.os = "Wireless"
vars.sla = "24x7"
}
object Host "host_client_station" {
import "generic-host"
address = "xxx.xxx.xx.xx"
vars.os = "Wireless"
vars.sla = "24x7"
}
// Apply dependency
apply Dependency "host_client_vivo-host" to Host {
parent_host_name = "host_client_vivo"
disable_checks = true
assign where host.name == "host_client_ap"
}
apply Dependency "host_client_vivo-service" to Service {
parent_host_name = "host_client_vivo"
parent_service_name = "ping4"
states = [ Warning, Critical, Unknown ]
disable_checks = true
disable_notifications = true
assign where host.name == "host_client_ap"
ignore where service.name == "ping4"
}
apply Dependency "host_client_ap-host" to Host {
parent_host_name = "host_client_ap"
disable_checks = true
assign where host.name == "host_client_station"
}
apply Dependency "host_client_ap-service" to Service {
parent_host_name = "host_client_ap"
parent_service_name = "ping4"
states = [ Warning, Critical, Unknown ]
disable_checks = true
disable_notifications = true
assign where host.name == "host_client_station"
ignore where service.name == "ping4"
}
// Apply notification
apply Notification "mail-suporte-tecnomega" to Host {
import "mail-host-notification"
user_groups = [ "grp-support" ]
assign where host.vars.sla == "24x7"
}
apply Notification "mail-suporte-tecnomega" to Service {
import "mail-service-notification"
user_groups = [ "grp-support" ]
assign where service.vars.sla == "24x7"
}
// Contacts
object UserGroup "grp-support" {
display_name = "Tecnomega"
}
template User "users-noc" {
groups = [ "grp-support" ]
}
object User "suporte-tecnomega" {
states = [ OK, Warning, Critical, Up, Down ]
types = [ Problem, Recovery, Custom ]
import "users-noc"
display_name = "Support"
email = "[email protected]"<mailto:[email protected]>
}
--- End config
Can be a bug ?
Does someone has any idea about it ?
Thanks
Carlos
_______________________________________________
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]
** Open Source Backup Conference 2014 - September - osbconf.org **
** Puppet Camp Duesseldorf 2014 - Oktober - netways.de/puppetcamp **
** OSMC 2014 - November - netways.de/osmc **
** OpenNebula Conf 2014 - Dezember - opennebulaconf.com **
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.icinga.org/mailman/listinfo/icinga-users