Hello all -
I don’t understand how the check_dhcp plugin works. I’m sure it’s something simple that maybe one of you could help me with.
I’ve tried running the following command from the nagios command line against our DHCP server to show that it’s working. . .
./check_dhcp -s <dhcp_ip> -i eth0 -t 20
I get an error that tells me:
DHCP problem: No DHCPOFFERs were received.
Anyway, here is what the help displays for that plugin:
This plugin tests the availability of DHCP servers on a network.
Usage: check_dhcp -s serverip] -r requestedip] -t timeout] -i interface]
-v] -s, --serverip=IPADDRESS
IP address of DHCP server that we must hear from
IP address that should be offered by at least one DHCP server
Seconds to wait for DHCPOFFER before timeout occurs
Interface to to use for listening (i.e. eth0)
Print extra information (command-line use only)
Print detailed help screen
Print version information
So, do I actually have to query the server for an IP to see if the service is working?
What should the command look like for it to check it properly?
Sorry for the noob question, I’m just confused !!!
Thanks in advance for any help that you can provide.