check_dhcp plugin

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
paul.jobb
Posts: 167
Joined: Tue Aug 02, 2011 4:37 pm

check_dhcp plugin

Post 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.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: check_dhcp plugin

Post 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
paul.jobb
Posts: 167
Joined: Tue Aug 02, 2011 4:37 pm

Re: check_dhcp plugin

Post 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
Locked