Page 1 of 2
Issue with notification
Posted: Thu Sep 19, 2013 10:29 am
by dmitry
Hello,
I have a issue with notifications. Nagios sends the notification to user which not specified for this service. I've checked the config for this service and see only selected users. I also created new monitoring task for the new service only with one notification contact but in logs i see that nagios send alerts to the selected and non selected user. This user the same in both cases. This problem has appeared recently. Does anybody had this issue ?
Nagios XI Version : 2012R2.3
CentOS release 5.7 (Final)
Re: Issue with notification
Posted: Thu Sep 19, 2013 3:47 pm
by slansing
Can you show us this service's entire configuration file?
Re: Issue with notification
Posted: Thu Sep 19, 2013 4:25 pm
by dmitry
Yes sure
define service {
host_name mbdev.xxxx.com
service_description XXSite PROD WAP ValidSignon -
https://xxxxxx/Login.aspx
use xiwizard_webtransaction_webinject_service
servicegroups null
check_command check_xi_service_webinject1!mbdev_xxxx_com__XXSite_PROD_WAP_ValidSignon_config.xml!!!!!!!
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
first_notification_delay 5
notification_period xi_timeperiod_24x7
notification_options w,u,c,r,f,s
notifications_enabled 1
contacts test1
_xiwizard webtransaction
register 1
}
-----
define service {
host_name mbdev.xxxx.com
service_description Test Service
check_command check_xi_service_nsclient!!SERVICESTATE!-l SNMPTRAP -d SHOWALL!!!!!
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
first_notification_delay 5
contacts test1
register 1
}
-----
But nagios also send this alert to another user monitoring contact.
Re: Issue with notification
Posted: Fri Sep 20, 2013 11:39 am
by sreinhardt
Just to verify, test1 is the contact you intend to notify, and it is not a distribution list? Have you made any modifications to the xiwizard_webtransaction_webinject_service template, that would include another contact?
Re: Issue with notification
Posted: Fri Sep 20, 2013 4:00 pm
by dmitry
Yes. And I didn't made any changes for this template and for others. By the way, the problem is present only for one servise config. I don't see this problem for other configs.
Situation such is, If I add a configuration for any service in this config that nagios adds one more contact (always same) to existing when sending notifications
Re: Issue with notification
Posted: Sat Sep 21, 2013 8:49 am
by scottwilkerson
Can you go to CCM -> Service Templates and click the disk icon next to any template, and attach the resulting file.
Thanks.
Re: Issue with notification
Posted: Mon Sep 23, 2013 11:04 am
by dmitry
Yes, here it is.
Re: Issue with notification
Posted: Mon Sep 23, 2013 1:20 pm
by sreinhardt
That file shows it has the contact group admins defined. Any service that uses this template, most every aside from hand configured services, would then send to all administrators of the nagios server. Is the person that is getting notifications an administrator? Regardless, I would likely suggest removing this contact group from generic-service template.
Re: Issue with notification
Posted: Mon Sep 23, 2013 3:34 pm
by dmitry
Nope, he is not an administrator. And I have this issue only with one service config. I've attached this config
Re: Issue with notification
Posted: Tue Sep 24, 2013 10:15 am
by sreinhardt
Are all of the services in this config having issues, or just one or two? I see the following contacts listed for various services, would any of them match who is getting the notifications?
nagiosadmin, test1, MFMIT(group), test1, hptech, hptech1, hptech2
You also have the ssl cert monitoring service group on one service, that might add additional contacts.