I am trying to monitor our DHCP server but all I get is "CRITICAL: No DHCPOFFERs were received.". I have tried looking around the web and the forum archives but could not find anything interesting.
The check_dhcp version we are using v2018 (nagios-plugins 1.4.13).
Here is the verbose output of check_dhcp if it helps
./check_dhcp -v
DHCP socket: 3
Hardware address: d8:d3:85:df:85:f0
DHCPDISCOVER to 255.255.255.255 port 67
DHCPDISCOVER XID: 1956190566 (0x74991966)
DHCDISCOVER ciaddr: 0.0.0.0
DHCDISCOVER yiaddr: 0.0.0.0
DHCDISCOVER siaddr: 0.0.0.0
DHCDISCOVER giaddr: 0.0.0.0
send_dhcp_packet result: -1
No (more) data received (nfound: 0)
Result=ERROR
Total responses seen on the wire: 0
Valid responses for this machine: 0
CRITICAL: No DHCPOFFERs were received.
Perhaps obvious... but is the check being executed from a portion of the network where DHCP is available... I.e is it in a VLAN where DHCP is unavailable or is the server not in a DHCP enabled subnet?