Hello,
We encountered a weird behavior of the mail service notification.
We have passive Services defined with exactly the same simple configuration. Only their names are different:
apply Service "MailTestX" {
import "passive-service"
assign where host.name == "host.xxx.local"
}
apply Service "MailTestY" {
import "passive-service"
assign where host.name == "host.xxx.local"
}
apply Service "MailTestZ" {
import "passive-service"
assign where host.name == "host.xxx.local"
}
apply Service "MailTestW" {
import "passive-service"
assign where host.name == "host.xxx.local"
}
We also have the most simple Host, Notification, User and UserGroup definitions:
object Host "host.xxx.local" {
check_command = "dummy"
vars.mail = true
}
apply Notification "NOC mail-test" to Service {
import "mail-service-notification"
user_groups = [ "noc_test" ]
interval = 0
assign where host.vars.mail
}
object UserGroup "noc_test" {
display_name = "NOC Test Group"
}
object User "Xxxxx" {
import "generic-user"
display_name = "Yyyyy Xxxxx"
groups = [ "noc_test" ]
email = "yyyyy.xxxx@xxx.hu"
}
When we test the mail notification setting the service states, we received the notification emails only for two Services from the four, i.e emails are sent for services “MailTestX” and “MailTestW”, but no mail for “MailTestY” and “MailTestZ”. We tested it on several ways with different configurations and with different numbers of services but we always had services without sending emails.
What could be the reason?
Please, help!
Regards,
Endre