Skip to main content

Microsoft DHCP SNMP

Monitoring Connector Assets​

Monitored Objects​

The Monitoring Connector Microsoft DHCP SNMP including monitoring of Subnets.

Collected Metrics​

Metric nameDescriptionUnit
subnetaddress#subnet.addresses.usage.countUsage of the subnet address left on the subnet
subnetaddress#subnet.addresses.usage.percentageUsage of the subnet in percentage%
subnetaddress#subnet.pending.offers.countNumber of pending offers

It is possible to filter on the address of a subnet using a REGEXP of the form [--subnet-address=''].


To control your Microsoft DHCP software, the SNMP must be configured.


  1. Install the Centreon Plugin on every Poller:
yum install centreon-plugin-Applications-Microsoft-Dhcp-Snmp
  1. On the Centreon Web interface in Configuration > Monitoring Connector Manager, install the Microsoft DHCP SNMP Monitoring Connector

Host configuration​

  • Add a new Host and apply the App-Microsoft-Dhcp-SNMP-custom Host Template
  • Fill the SNMP Version and Community fields according to the device's configuration

When using SNMP v3, use the SNMPEXTRAOPTIONS Macro to add specific authentication parameters More information in the Troubleshooting SNMP section.

SNMPEXTRAOPTIONSConfigure your own SNMPv3 credentials combo


How to test the Plugin and what are the main options for ?​

Once the Plugin installed, log into your Centreon Poller CLI using the centreon-engine user account and test the Plugin by running the following command:

/usr/lib/centreon/plugins/ \
--plugin=apps::microsoft::dhcp::snmp::plugin \
--mode=subnets \
--hostname= \
--snmp-version='2c' \
--snmp-community='dhcp_ro' \
--filter-subnet-address='' \
--warning-addresses-usage-prct=80 \
--critical-addresses-usage-prct=90 \

Expected command output is shown below:

OK: Subnet '' addresses usage total: 50 used: 35 (70.00%) free: 15 (30.00%), pending offers: 0 | ''=35;;;0;50 ''=15;;;0;50 ''=70.00%;0:80;0:90;0;100 ''=0;;;0;

The command above monitors Microsoft DHCP (--plugin=apps::microsoft::dhcp::snmp::plugin --mode=subnets) identified by the IP address (--hostname= As the Plugin is using the SNMP protocol to request the device, the related community and version are specified (--snmp-version='2c' --snmp-community='dhcp_ro').

This command would trigger a WARNING alarm if subnet usage over 80% (--warning-addresses-usage-prct='80') and a CRITICAL alarm over 90% (--critical-addresses-usage-prct='90').

For each Plugin mode, all the options as well as all the available thresholds can be displayed by adding the --help parameter to the command:

/usr/lib/centreon/plugins/ \
--plugin=apps::microsoft::dhcp::snmp::plugin \
--mode=subnets \

UNKNOWN: SNMP GET Request : Timeout​

If you get this message, you're probably facing one of these issues:

  • The SNMP agent of the device isn't started or is misconfigured
  • An external device is blocking the request (firewall, ...)

UNKNOWN: SNMP GET Request : Cant get a single value.​

This error message often refers to the following issues:

  • The agent doesn't support the MIB used by the plugin
  • The targeted SNMP OID cannot be fetched because of insufficient privileges on the device. SNMP Agent must be capable of accessing to the enterprise branch: .