Monitor dhcp options

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
stebbo
Posts: 75
Joined: Sat Aug 04, 2012 9:13 pm

Monitor dhcp options

Post 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.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Monitor dhcp options

Post 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
stebbo
Posts: 75
Joined: Sat Aug 04, 2012 9:13 pm

Re: Monitor dhcp options

Post by stebbo »

Thanks. I'll have a look into those.
Locked