How to check if DHCP Server is running in a network

Frank Bulk frnkblk at iname.com
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:

checkcommands.cfg
==================
# 'check_dhcping' command definition
define command{
    command_name    check_dhcping
    command_line    $USER1$/check_dhcping -H $HOSTADDRESS$ -i $ARG1$
    }
==================

command.cfg
==================
command[check_dhcping]=/usr/lib/nagios/plugins/check_dhcping -H
$HOSTADDRESS$ -i eth0
==================

Services.cfg
==================
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
    }
==================

Frank

-----Original Message-----
From: dhcp-users-bounce at isc.org [mailto:dhcp-users-bounce at isc.org] On Behalf
Of Niall O'Reilly
Sent: Tuesday, May 27, 2008 5:06 AM
To: dhcp-users at isc.org
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 http://www.mavetju.org/unix/dhcping-man.php


	Best regards,

	Niall O'Reilly
	University College Dublin IT Services

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






More information about the dhcp-users mailing list