Issue with notification

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
dmitry
Posts: 19
Joined: Wed Sep 18, 2013 3:10 pm

Issue with notification

Post 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)
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Issue with notification

Post by slansing »

Can you show us this service's entire configuration file?
dmitry
Posts: 19
Joined: Wed Sep 18, 2013 3:10 pm

Re: Issue with notification

Post 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.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Issue with notification

Post 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?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
dmitry
Posts: 19
Joined: Wed Sep 18, 2013 3:10 pm

Re: Issue with notification

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Issue with notification

Post by scottwilkerson »

Can you go to CCM -> Service Templates and click the disk icon next to any template, and attach the resulting file.

Thanks.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
dmitry
Posts: 19
Joined: Wed Sep 18, 2013 3:10 pm

Re: Issue with notification

Post by dmitry »

Yes, here it is.
You do not have the required permissions to view the files attached to this post.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Issue with notification

Post 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.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
dmitry
Posts: 19
Joined: Wed Sep 18, 2013 3:10 pm

Re: Issue with notification

Post by dmitry »

Nope, he is not an administrator. And I have this issue only with one service config. I've attached this config
You do not have the required permissions to view the files attached to this post.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Issue with notification

Post 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.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked