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.
Monitor dhcp options
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Monitor dhcp options
The usage of check_dhcp as XI uses it is as follows:
http://exchange.nagios.org/index.php?op ... hword=dhcp
And specifically DNS related plugins:
http://exchange.nagios.org/index.php?op ... chword=DNS
However, there are quite a few DHCP related plugins on our exchange site here: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
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
Thanks. I'll have a look into those.