Page 1 of 1

Monitor dhcp options

Posted: Tue Aug 13, 2013 6:26 am
by stebbo
Hi All,

we had a strange occurrence today where our DHCP server began handing out an old DNS configuration. Took us a while to track down too.

I'm wondering if it's possible for the DHCP monitoring plugin to check the DNS settings being returned by the dhcp server, not just the IP address? It might be interesting if it would monitor the wpad options as well and test them against an expected value.

Cheers,
Chris.

Re: Monitor dhcp options

Posted: Tue Aug 13, 2013 9:27 am
by slansing
The usage of check_dhcp as XI uses it is as follows:
Usage: check_dhcp [-v] [-u] [-s serverip] [-r requestedip] [-t timeout]
[-i interface] [-m mac]

Options:
-h, --help
Print detailed help screen
-V, --version
Print version information
-v, --verbose
Show details for command-line debugging (Nagios may truncate output)
-s, --serverip=IPADDRESS
IP address of DHCP server that we must hear from
-r, --requestedip=IPADDRESS
IP address that should be offered by at least one DHCP server
-t, --timeout=INTEGER
Seconds to wait for DHCPOFFER before timeout occurs
-i, --interface=STRING
Interface to to use for listening (i.e. eth0)
-m, --mac=STRING
MAC address to use in the DHCP request
-u, --unicast
Unicast testing: mimic a DHCP relay, requires -s
However, there are quite a few DHCP related plugins on our exchange site here:

http://exchange.nagios.org/index.php?op ... hword=dhcp

And specifically DNS related plugins:

http://exchange.nagios.org/index.php?op ... chword=DNS

Re: Monitor dhcp options

Posted: Wed Aug 14, 2013 5:51 am
by stebbo
Thanks. I'll have a look into those.