check_dhcp double check results

Rostislav Opocensky orbis at pictus.org
Mon Nov 12 10:17:50 CET 2012


Hello,

occasionally our DHCP server check goes through two state changes in one
second. See below. No other service behaves this way. It makes me think
that the check_dhcp plugin sometimes sends two results in quick
succession instead of one. Or maybe Nagios runs the check twice?

It does not occur often and it cannot be correlated to any network or
DHCP server issue. We have max_check_attempts set to 2, so the duplicate
result is enough to generate notification which is quickly followed by
another notification of the service returning to normal state. If we had
max_check_attempts >= 3, it would likely go unnoticed. Has anyone
encountered such behavior? Any ideas?

[07-10-2012 05:17:21] SERVICE ALERT: localhost;DHCP server
test;CRITICAL;SOFT;1;CRITICAL: No DHCPOFFERs were received.
[07-10-2012 05:17:21] SERVICE ALERT: localhost;DHCP server
test;CRITICAL;HARD;2;CRITICAL: No DHCPOFFERs were received.
[07-10-2012 05:17:51] SERVICE ALERT: localhost;DHCP server
test;OK;HARD;2;OK: Received 1 DHCPOFFER(s), max lease time = 0 sec.

[31-10-2012 07:56:01] SERVICE ALERT: localhost;DHCP server
test;CRITICAL;SOFT;1;CRITICAL: No DHCPOFFERs were received.
[31-10-2012 07:56:01] SERVICE ALERT: localhost;DHCP server
test;CRITICAL;HARD;2;CRITICAL: No DHCPOFFERs were received.
[31-10-2012 07:57:01] SERVICE ALERT: localhost;DHCP server
test;OK;HARD;2;OK: Received 1 DHCPOFFER(s), max lease time = 0 sec.

Nagios Core Version 3.4.1

check_dhcp v1.4.14 (nagios-plugins 1.4.14)

define service {
	use generic-service
	host_name localhost
	service_description DHCP server test
	max_check_attempts 2
	normal_check_interval 1
	retry_check_interval 1
	check_command check-dhcp!-i eth0.7
}

define command {
	command_name check-dhcp
	command_line $USER1$/check_dhcp $ARG1$
}

Thank you!

Rosta

-- 
Rostislav Opocensky
http://orbis.pictus.org/

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list