Page 1 of 1

Service Template Notification Turned OFF But firing

Posted: Mon Apr 13, 2015 8:32 am
by brdr
Hi,

We have XI 2014R2.3.

We use bandwidth checks for graphing only. We do not alert on bandwidth. These individual bandwidth checks have all 'Check Settings and Alert Settings' in CCM empty, and use a service template 'xiwizard_switch_port_bandwidth_service' to drive these settings. In this service template under 'Alert Settings' the 'Notifications enabled:' is set to off. However, these bandwidth checks are still sending notifications out via email. Am I missing something? Thanks.

Here is the notification event from within the nagios log:

[Sun Apr 12 02:40:34 2015] SERVICE NOTIFICATION: it-netops;host-a;inpath0_0 Bandwidth;OK;xi_service_notification_handler;OK - Current BW in: 15.65Mbps Out: 74.99Mbps

Re: Service Template Notification Turned OFF But firing

Posted: Mon Apr 13, 2015 9:37 am
by ssax
Please post the config for the service template and the service that is alerting.

Go to the service template and click the little blue floppy disk icon to the right of it to show the config, do the same for the service.
floppy.png

Re: Service Template Notification Turned OFF But firing

Posted: Mon Apr 13, 2015 9:49 am
by brdr
please find attached

Re: Service Template Notification Turned OFF But firing

Posted: Mon Apr 13, 2015 11:41 am
by abrist
Well, those look correct. Could you post a copy of the actual runtime config from one of the hosts in: /usr/local/nagios/etc/servcies
And post the relevant template from: /usr/local/nagios/etc/servicetemplates.cfg?

Re: Service Template Notification Turned OFF But firing

Posted: Mon Apr 13, 2015 12:29 pm
by brdr
Relevant template from servicetemplates.cfg below, and host def attached.

define service {
name xiwizard_switch_port_bandwidth_service
service_description Network Bandwidth
max_check_attempts 3
check_interval 5
retry_interval 3
active_checks_enabled 1
passive_checks_enabled 0
check_period 24x7
notification_interval 0
notification_period 24x7
notifications_enabled 0
contact_groups net_cg
register 0

}

Re: Service Template Notification Turned OFF But firing

Posted: Mon Apr 13, 2015 4:40 pm
by abrist
Could you check to see if notfications_enabled is set correctly on a few of the problematic services in:

Code: Select all

/usr/local/nagios/var/retention.dat?
They could be turned on as runtime options.

Re: Service Template Notification Turned OFF But firing

Posted: Tue Apr 14, 2015 6:14 am
by brdr
Ah! That is the problem. Another person had enabled from front-end...

When I go into Service Status I can see that this 1 bandwidth check has notification enabled. And, the entry for this service check in retention.dat is:

notifications_enabled=1

Thanks guys! All set.