How to check if DHCP Server is running in a network

Frank Bulk frnkblk at
Tue May 27 21:23:07 UTC 2008

We had a DHCP issue last Friday, so I took the 30 minutes today to integrate
it into our NAGIOS using dhpcing.  Worked really nice.   Here are some
relevant snippets:

# 'check_dhcping' command definition
define command{
    command_name    check_dhcping
    command_line    $USER1$/check_dhcping -H $HOSTADDRESS$ -i $ARG1$

command[check_dhcping]=/usr/lib/nagios/plugins/check_dhcping -H

define service{
    use            		generic-service
    host_name           	dhcpha
    service_description 	DHCPING
    contact_groups       	linux-admins
    notification_interval     5
    notification_options      c,r
    check_command           	check_dhcping!eth0


-----Original Message-----
From: dhcp-users-bounce at [mailto:dhcp-users-bounce at] On Behalf
Of Niall O'Reilly
Sent: Tuesday, May 27, 2008 5:06 AM
To: dhcp-users at
Cc: Niall O'Reilly
Subject: Re: How to check if DHCP Server is running in a network

On 27 May 2008, at 09:29, Luka wrote:

> You could use a simple perl script with help from Net::DHCP::Packet.

	Or see

	Best regards,

	Niall O'Reilly
	University College Dublin IT Services

	PGP key ID: AE995ED9 (see
	Fingerprint: 23DC C6DE 8874 2432 2BE0 3905 7987 E48D AE99 5ED9

More information about the dhcp-users mailing list