Page 1 of 1

check_dhcp plugin

Posted: Tue Jun 13, 2017 1:04 pm
by paul.jobb
Hi;

I am using the check_dhcp plugin as follows

./check_dhcp -i ens224 -s 111.222.333.444 -s 555.666.777.888

when offers aren't received would it be possible to include the addresses of the servers in the output? currently it just returns the following

WARNING: Received 1 DHCPOFFER(s), only 1 of 2 requested servers responded, max lease time = 1800 sec.

Re: check_dhcp plugin

Posted: Tue Jun 13, 2017 1:13 pm
by dwhitfield
You could write a wrapper script to do that. It seems like you've been around the forums long enough to know how to setup a plugin, but for anyone else who doesn't know how this would work, I'll leave https://assets.nagios.com/downloads/nag ... ios-XI.pdf

Alternatively (or additionally), you can file a feature request at https://github.com/nagios-plugins/nagio ... issues/new

Re: check_dhcp plugin

Posted: Tue Jun 13, 2017 2:14 pm
by paul.jobb
fair enough, check_multi would probably work as well, I will put in a feature request. Thanks for the link, you can close the thread