I am trying to monitor windows server DHCP pools using the inbuilt “DHCP stats” but it doesn’t provide any data, presumably because we have multiple pools and Libre doesn’t know what to monitor.
How would I go about monitoring each of these pools?
I know with MIBs you can use OIDs to define pools and other parameters but unsure whether Libre would support this
Install the snmp service in your DHCP server if not installed, using add/remove windows components. Then go to Network and management tools and install the service.
Once the snmp service is installed, click on it, then click on the security tab. Specify the community name and hosts allowed to get snmp info.
Check the available OID’s in the DHCP-MIB You will find all the relevant MIB values related to the DHCP scope statistics:
dhcpScope
1.3.6.1.4.1.311.1.3.2
scopeTable
1.3.6.1.4.1.311.1.3.2.1
scopeTableEntry
1.3.6.1.4.1.311.1.3.2.1.1
subnetAdd
1.3.6.1.4.1.311.1.3.2.1.1.1.ScopeAddress
noAddInUse (Used IPs)
1.3.6.1.4.1.311.1.3.2.1.1.2.ScopeAddress
noAddFree ((Available IPs))
1.3.6.1.4.1.311.1.3.2.1.1.3.ScopeAddress
noPendingOffers
1.3.6.1.4.1.311.1.3.2.1.1.4.ScopeAddress
Add a Custom OID Sensor with the MIB value required. Example, if your scope is 192.168.100.0 and you want to know the number of used IP’s, the complete OID will look like this:
1.3.6.1.4.1.311.1.3.2.1.1.2.192.168.100.0
Then You can add notifications and thresholds per sensor. Ex.: Set a notification to send an email if the number of available IPs are below 10.
Or even better, develop a proper support for DHCP-MIB in LibreNMS which would work for all devices supporting it, and provide a nicer presentation than CustomOID (which is only meant for tests basically)