Service definition directives being ignored?
Posted: Mon Nov 21, 2016 11:58 am
Hi,
I am attempting to control 'notification_settings' and 'flap_detection_enabled' in a service definition, but the directives seem to be ignored by Nagios. The service definition is below. Nagios Core 3.5 and Check_MK 1.2.4p5 are being run from OMD version 1.20 (http://www.omdistro.org).
define service {
use check_mk_perf,check_mk_default
host_name ivrhost
service_description IVR Status
check_command check-mk-custom!/opt/omd/sites/ohmon/local/bin/check-ivr.pl
active_checks_enabled 1
flap_detection_enabled 0
notification_options u,c,r
}
After restarting Nagios with the above configuration, flap detection is still enabled and WARNING notifications are still being generated. I have verified that this service definition is indeed being read in by Nagios.
Any ideas why this setup is not working as expected?
Reading the docs, it appears to me this might have something to do with the state retention settings in Nagios, but I haven't yet figured how this should work.
Any help or insights would be greatly appreciated! Thanks!
I am attempting to control 'notification_settings' and 'flap_detection_enabled' in a service definition, but the directives seem to be ignored by Nagios. The service definition is below. Nagios Core 3.5 and Check_MK 1.2.4p5 are being run from OMD version 1.20 (http://www.omdistro.org).
define service {
use check_mk_perf,check_mk_default
host_name ivrhost
service_description IVR Status
check_command check-mk-custom!/opt/omd/sites/ohmon/local/bin/check-ivr.pl
active_checks_enabled 1
flap_detection_enabled 0
notification_options u,c,r
}
After restarting Nagios with the above configuration, flap detection is still enabled and WARNING notifications are still being generated. I have verified that this service definition is indeed being read in by Nagios.
Any ideas why this setup is not working as expected?
Reading the docs, it appears to me this might have something to do with the state retention settings in Nagios, but I haven't yet figured how this should work.
Any help or insights would be greatly appreciated! Thanks!