Suggestions for checking DHCP Scopes

C. Bensend benny at bennyvision.com
Fri Sep 23 16:57:43 CEST 2011


> Does anyone have any suggestions for checking DHCP scopes on Windows
> servers.  I saw one util on Nagios Exchange that uses a vbs script but I
> have no idea how I would set that up.

Define "checking DHCP scopes"?  Do you need to make sure DHCP is running?
Do you need to make sure DHCP clients can get addresses?  Do you need to
check how many IPs are free in the scopes?  Each of the above could be
a different failure mode.

Personally, I gave up on checking for lease availability, we have way
too many scopes, VLANs, etc.  I now do the following:

1) Check to make sure the DHCP Server service is running
2) Via a custom setup between consol.de's excellent check_logfiles
   plugin and a perl wrapper I wrote, check for an event 1020 in the
   system event log and parse the output

#2 was a pain, as Windows apparently has no hard-and-fast way to
check on IP availability in the scopes, and randomly logs a 1020
whenever it feels you just don't have enough addresses left.  With
the wrapper program, I parse the 1020 events and apply my own
thresholds to determine good, bad, or ugly.

Microsoft:  why oh why do you not expose the IP address utilization
via performance counters or WMI?

Benny


-- 
"Open your door, or I open your wall."
                                 -- Seen on an image on fukung.net


------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list