How to Monitor DHCP Addresses with IPSentry

Recently, I had taken part in a maintenance weekend at the office, post maintenance, Our IPSentry dashboard, (we use IPSentry for some of our monitoring), reported a couple errors, which was fixed.

Come Monday morning, a colleague of mine noticed that certain systems were down, which he brought up. I did some further investigation and noticed one of our DHCP pools were running out of leases. I wanted to see if IPSentry could monitor DHCP addresses, and as it turns out, it can.

It took me a while to figure this out, but now I know it, I’ll add it here for the world to share.

As mentioned before, in order to monitor DHCP leases, you would need to make use of the SNMP Addin for IPSentry.

So here are the prerequisites:

  1. Windows Server with a DHCP Server Role installed and the SNMP Service
  2. Ensure that you have configured SNMP security on the windows server

  3. IPSentry Instance with SNMP Addin
  4. DHCP-MIB.MIB and MSFT-MIB.MIB. Copy these files to C:\Program Files (x86)\RGE INC\IPSentryV5\Addins\IPSSNMPMonV5\MIBS\

Log into the appropriate ipsentry machine using the IPSentry Service Account.

Launch Ipsentry Network Monitor if the console is not already visible.

  1. Pause Monitoring
  2. Click on the image2016-5-23 10:49:52.png and just Pause IPSentry for 45 minutes.

  3. Go to Actions -> Edit Devices

  4. Search for the server that would have the DHCP Server Role installed. If it doesn’t exist, add it.Select-SNMP
  5. Right Click the Server -> Add New -> Add-Ins -> SNMP Monitor and Alert

  6. Use the name: SERVERNAME – DHCP Address Monitor, (OR whatever you prefer to call it) Click on Configure

  7. Add the hostname or ip of the DHCP server. Select the SNMP version and enter the SNMP community that you chose earlier on.

  8. Click on Tools -> Import MIB File. Browse to C:\Program Files (x86)\RGE INC\IPSentryV5\Addins\IPSSNMPMonV5\MIBS\ and select DHCP-MIB.mib

  9. You’ll be asked to load the MSFT-MIB. Browse to C:\Program Files (x86)\RGE INC\IPSentryV5\Addins\IPSSNMPMonV5\MIBS\ and select MSFT-MIB.mib. Click OK

  10. Expand to: -> dod -> internet -> private -> enterprises -> microsoft -> software -> dhcp -> dhcpScope. Click on Edit -> Walk MIB. This will pass the connection through and present you with the configured address pools.

  11. Expand to +dhcpScope -> scopeTable -> scopeTableEntry -> noAddFree -> xx -> xx. Each xx would be an octet in your IP address. In here will list the subnets you have listed. Double click on one.

  12. Click on Add Filter


  13. Display Name: -Select whatever you would want this to display as.  (E.g. SubNet_XX-Free). Configure the queried value to: Must -> Be Greater than -> 5. This basically means, don’t alert until you have less than 5 free addresses.

  14. Click on Test. The Machine Result should be OK.

Leave a Reply

Your email address will not be published. Required fields are marked *