Random Project

If you get ” No response from server” make sure Nagios Server is in DHCP

If you get the error “No response from server”, make sure your Nagios server is registered in DHCP (hopefully as a reservation). Even if your linux box is static, you still need to make a reservation for this plugin to work.

Besides that, this plugin works good. You may only request 1 DHCP at a time, so you need to call this plugin multiple times, which means multiple services in Nagios.

This is because this plugin uses perl module Net::DHCP::Watch. A limitation of this module is that the requesting mac address already be in the DHCP server. Module info: https://metacpan.org/pod/Net::DHCP::Watch