hardware::pdu::apc::snmp : Error in taking the time and the uptime and outlet
The error appears if I use this installation yum install centreon-plugin-Hardware-Pdu-Apc-Snmp
[root@nagios plugins]# ./centreon_pdu_apc_snmp.pl --list-mode
Plugin Description: Check APC PDU in SNMP (PowerNet-MIB).
Modes Meta: multi
Modes Available: hardware load outlet time uptime [root@nagios plugins]# ./centreon_pdu_apc_snmp.pl --mode=uptime --hostname=10.167.10.8 UNKNOWN: Cannot load module --mode. Can't locate snmp_standard/mode/uptime.pm in @INC (you may need to install the snmp_standard::mode::uptime module) (@INC contains: /usr/lib/centreon/plugins FatPacked::94127862805032=HASH(0x559bd9d37228) /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at ./centreon_pdu_apc_snmp.pl line 1743. [root@nagios plugins]# ./centreon_pdu_apc_snmp.pl --mode=uptime --hostname=10.167.10.8 --debug UNKNOWN: Cannot load module --mode. Can't locate snmp_standard/mode/uptime.pm in @INC (you may need to install the snmp_standard::mode::uptime module) (@INC contains: /usr/lib/centreon/plugins FatPacked::94052755108416=HASH(0x558a5d0ef240) /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at ./centreon_pdu_apc_snmp.pl line 1743. [root@nagios plugins]# ./centreon_pdu_apc_snmp.pl --mode=uptime --hostname=10.167.10.8 --verbose UNKNOWN: Cannot load module --mode. Can't locate snmp_standard/mode/uptime.pm in @INC (you may need to install the snmp_standard::mode::uptime module) (@INC contains: /usr/lib/centreon/plugins FatPacked::94414956659264=HASH(0x55deb1f40240) /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at ./centreon_pdu_apc_snmp.pl line 1743. [root@nagios plugins]# ./centreon_pdu_apc_snmp.pl --mode=time --hostname=10.167.10.8 --verbose UNKNOWN: Cannot load module --mode. Base class package "snmp_standard::mode::ntp" is empty. (Perhaps you need to 'use' the module which defines that package first, or make that module available in @INC (@INC contains: /usr/lib/centreon/plugins FatPacked::94683007881792=HASH(0x561d1b0d1240) /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5). at ./centreon_pdu_apc_snmp.pl line 10468. BEGIN failed--compilation aborted at ./centreon_pdu_apc_snmp.pl line 10468. Compilation failed in require at ./centreon_pdu_apc_snmp.pl line 1743. [root@nagios plugins]# ./centreon_pdu_apc_snmp.pl --mode=hardware --hostname=10.167.10.8 --verbose OK: All 2 components are ok [2/2 psus]. | 'count_psu'=2;;;; Checking power supplies Power supply '1' status is 'ok' [instance: 1] Power supply '2' status is 'notPresent' [instance: 2] Checking humidities Checking temperatures [root@nagios plugins]# ./centreon_pdu_apc_snmp.pl --mode=load --hostname=10.167.10.8 --verbose OK: Device 'GDL-PDU-05' power: 864 W - Phase '1' status: normal, current: 7.2 A | 'GDL-PDU-05#device.power.watt'=864W;;;0; '1#phase.current.ampere'=7.2A;;;0; Device 'GDL-PDU-05' power: 864 W Phase '1' status: normal, current: 7.2 A [root@nagios plugins]# ./centreon_pdu_apc_snmp.pl --mode=outlet --hostname=10.167.10.8 --verbose UNKNOWN: SNMP Table Request: Cant get a single value. [root@nagios plugins]# ./centreon_pdu_apc_snmp.pl --mode=outlet --hostname=10.167.10.8 --debug UNKNOWN: SNMP Table Request: Cant get a single value.
OS: AlmaLinux release 8.8 (Sapphire Caracal)
Hello :)
I'll report this issue in our backlog, in order to help us to test a solution can you provide us an anonymized .snmpwalk (full snmpwalk of enterprise branch :snmpwalk -ObentU -v 2c -c public address .1.3.6.1.4.1 > equipment.snmpwalk) of your equipment for ease the troubleshooting ?
Thanks for your patience 🙏
Hello :)
The issue with uptime and time modes should be resolved by this PR https://github.com/centreon/centreon-plugins/pull/5831 in 25.11 release.
About the outlet mode:
UNKNOWN: SNMP Table Request: Cant get a single value.
As explained in the documentation 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.
Kind regards.