Build precise queries to find exactly what you need
Press ESC to close
Your review has been submitted and is pending approval.
A command to check a remote DHCP service's health. The DHCP server can sit on any network/subnet. The command will check whether a DHCP server can offer any IP addresses to a specified subnet.
Current Version
1
Last Release Date
2012-11-27
Owner
Can Ugur Ayfer
Download URL
http://nagios.bilkent.edu.tr/check_dhcp_relayed.pl.txt
License
GPL
Compatible With
A Perl script to be used as a Nagios check command. The script tests whether a DHCP server (localnet or remote) can offer IP addresses.
This script can be used to test whether a DHCP server can offer IP addresses to a specific subnet.
The script emulates a DHCP relay to check whether a remote DHCP server can talk DHCP to the Nagios Server.
The DHCP server and the Nagios server NEED NOT both sit on the same network.
Usage: check_dhcp_relayed.pl -H ip_addr IP addr for DHCP server (IP addr; not a Hostname. We won't try to resolve hostnames.) -m mac_addr ":" separated Mac address to be used for the emulated client Default value : "99:mm:dd:hh:mm:ss" where mm/dd/hh/mm/ss is the system date-time -n network Emulated Network addr (the network address on which the emulated client is assumed to be sitting on). This option is especially convenient to check DHCP service on a specific subnet if you have a central DHCP server serving a bunch of disparate subnets. Make sure that this network is a REAL network and is served by the DHCP server. e.g. 139.179.123.0 -N netmask Netmask for the emulated network. e.g. 255.255.255.0 -v Be verbose... Useful for command line testing/debugging. -t timeout in secs Note that the script will time out while waiting the server to make an offer when the address pool is exhausted. e.g. check_dhcp_relayed.pl -v -H 139.179.1.168 -m 12:22:33:44:55:66 -n 139.179.123.0 -N 255.255.255.0 -t 10
See the script's source for Installation notes.
You must be logged in to submit a review.
To:
From: