Skip to main content
Question

Plugin Microsoft DHCP not work

  • February 18, 2025
  • 4 replies
  • 162 views

Forum|alt.badge.img+6

Hi,

The plugin of Microsoft DHCP not working : 

 /usr/lib/centreon/plugins/centreon_microsoft_dhcp_snmp.pl --plugin=apps::microsoft::dhcp::snmp::plugin --mode=subnets --filter-subnet-address= --hostname='X.X.X.X' --snmp-version='2c' --snmp-community='XXXXXXXX'

Error return : UNKNOWN: SNMP Table Request: Cant get a single value.

The next command work : snmpwalk -c XXXXXXXX-v 2c X.X.X.X work and the other plugin work too (example : OS-Windows-SNMP-Custom).

Thank you very much.

4 replies

Forum|alt.badge.img+6
  • Author
  • Builder *
  • February 18, 2025

Here the contexte : 

 

Centreon OS version : 

cat /etc/redhat-release
AlmaLinux release 8.10 (Cerulean Leopard)

 

Centreon App version : Centreon 24.04.09

 

Centreon Plugin version : 
/usr/lib/centreon/plugins//centreon_microsoft_dhcp_snmp.pl --version
Global Version: 20250200 (20c061c)
 

Centreon Licence : Centreon IT-100.

 

Windows DHCP Server version : Windows Server 2022 Datacenter :

 

Thank you again


ltirand
Centreonian
Forum|alt.badge.img+12
  • Centreonian
  • February 18, 2025

Hello :)

When a plugin returns the `Cant get a single value` error, this doesn’t means that the plugin itself isn't working, this is explained as follows: 

UNKNOWN: SNMP GET Request : Can't get a single value

SNMP Plugins request one or several OIDs from the target devices' MIBS. When it doesn't obtain a value for one of these OIDs, it returns an UNKNOWN state to warn the user.

Frequently, the device doesn't ship the MIB or one of the OIDs the Plugin utilizes. In other words, the Plugin used is not suitable for this device.

Ref: Troubleshooting Plugin errors

Kind regards


Forum|alt.badge.img+6
  • Author
  • Builder *
  • February 18, 2025

Hello,

Thank you to this feedback.

It’s possible that build new plugin with compatibility of Microsoft Windows 2022 server DHCP Server ?


ltirand
Centreonian
Forum|alt.badge.img+12
  • Centreonian
  • February 18, 2025

It is possible to envisage compatibility, but it would be necessary to know the OIDs corresponding to the values returned by the current Microsfot DHCP SNMP plugin:

    used           => { oid => '.1.3.6.1.4.1.311.1.3.2.1.1.2' }, # noAddInUse
free => { oid => '.1.3.6.1.4.1.311.1.3.2.1.1.3' }, # noAddFree
pending_offers => { oid => '.1.3.6.1.4.1.311.1.3.2.1.1.4' } # noPendingOffers

You should be able to find equivalents for your equipment (in MIBs) and provide us with the values contained in the OIDs identified in your case (small SMNWalk is enought) to ensure the associated functional tests.

Kind regards.