Skip to main content

my platform is almalinux 9.6 and centreon 24.10.11.

before that i update the plugin centreon-plugin-Hardware-Servers-Dell-IDrac-Snmp to the version 20250800-1.el9

when i made a check, it return me that, and to centreon web console it was ok so green color

/usr/lib/centreon/plugins//centreon_dell_idrac.pl --plugin=hardware::server::dell::idrac::snmp::plugin --mode=hardware --hostname='x.x.x.x' --snmp-version=x --snmp-community='confidentiel' --component='amperage' --verbose
OK: All 0 components are ok k].

now after the plugin update, it return that and to centreon web console it was critical so red color

/usr/lib/centreon/plugins//centreon_dell_idrac.pl --plugin=hardware::server::dell::idrac::snmp::plugin --mode=hardware --hostname='x.x.x.x' --snmp-version=x --snmp-community='confidentiel' --component='amperage' --verbose
CRITICAL: No components are checked.
Checking amperages

it’s same for all components from the plugin 

check it correctly the components before or after ? which is it correct ?

It doesn’t check the component “amperage”, so it may not be available on your iDRAC. To restore the previous behavior, use this parameter:
    --no-component
            Define the expected status if no components are found (default:
            critical).


Hello,

It seems both are correct

The old version return an OK when 0 components are found while the new version return a critical, but the output is pretty much the same

I think the goal is to warn you that no component are found and it may be a problem in the check (check on the idrac ui if the component are indeed absent or check the snmp rights)

If you want to go back to the old output, there is an option you can add to change the returned status when 0 component are found

 

You can add something like “--no-component=ok” or “--no-component=warning”  (to keep the warning) on the EXTRAOPTIONS macro

I hope it helps

 


add `--debug` to get more context


it’s same return with whole sensors from this plugin


before i update the plugin this picture at the below, and when i update all become red color with this comment :  No components are checked.

 


with --debug no more information 


Hi,
After upgrading to 24.10.12 (currently the latest), we’re seeing the same issue with the following plugins:


centreon_f5_bigip_snmp.pl
centreon_dell_idrac.pl

 

Regards


Please share the result of:

 

/usr/lib/centreon/plugins//centreon_dell_idrac.pl --plugin=hardware::server::dell::idrac::snmp::plugin --mode=hardware --hostname='x.x.x.x' --snmp-version=x --snmp-community='xxxxxx' --component='.*' --no-component='OK' --verbose --debug

 


ok I tried your sensor, me I use without --no-component…

so, this is the result with the old and the new iDRAC plugin, it’s the same result.

OK: All 0 components are ok  ]. - No components are checked.
Checking amperages
Checking cooling devices
Checking cooling units
Checking enclosures
Checking health
Checking fru
Checking memories
Checking networks
Checking pci
Checking physical disks
Checking processors
Checking power supplies
Checking power units
Checking slots
Checking storage batteries
Checking storage controllers
Checking system batteries
Checking temperatures
Checking voltages
Checking virtual disks

if I use the old plugin without --no-component, it return that :

OK: All 0 components are ok  ].
Checking amperages
Checking cooling devices
Checking cooling units
Checking enclosures
Checking health
Checking fru
Checking memories
Checking networks
Checking pci
Checking physical disks
Checking processors
Checking power supplies
Checking power units
Checking slots
Checking storage batteries
Checking storage controllers
Checking system batteries
Checking temperatures
Checking voltages
Checking virtual disks

if I use the new plugin without --no-component, it return that :

CRITICAL: No components are checked.
Checking amperages
Checking cooling devices
Checking cooling units
Checking enclosures
Checking health
Checking fru
Checking memories
Checking networks
Checking pci
Checking physical disks
Checking processors
Checking power supplies
Checking power units
Checking slots
Checking storage batteries
Checking storage controllers
Checking system batteries
Checking temperatures
Checking voltages

 


Matches what ​@vcoum says 👍

 

Here are the OID’s to check them directly:

 

.1.3.6.1.4.1.674.10892.5.4.600.30.1

 

my $mapping = {
    amperageProbeStateSettings  => { oid => '.1.3.6.1.4.1.674.10892.5.4.600.30.1.4', map => \%map_state },
    amperageProbeStatus         => { oid => '.1.3.6.1.4.1.674.10892.5.4.600.30.1.5', map => \%map_probe_status },
    amperageProbeReading        => { oid => '.1.3.6.1.4.1.674.10892.5.4.600.30.1.6' },
    amperageProbeType           => { oid => '.1.3.6.1.4.1.674.10892.5.4.600.30.1.7', map => \%map_amperage_type },
    amperageProbeLocationName   => { oid => '.1.3.6.1.4.1.674.10892.5.4.600.30.1.8' },
    amperageProbeUpperCriticalThreshold     => { oid => '.1.3.6.1.4.1.674.10892.5.4.600.30.1.10' },
    amperageProbeUpperNonCriticalThreshold  => { oid => '.1.3.6.1.4.1.674.10892.5.4.600.30.1.11' },
    amperageProbeLowerNonCriticalThreshold  => { oid => '.1.3.6.1.4.1.674.10892.5.4.600.30.1.12' },
    amperageProbeLowerCriticalThreshold     => { oid => '.1.3.6.1.4.1.674.10892.5.4.600.30.1.13' }
};

 

https://github.com/centreon/centreon-plugins/blob/develop/src/hardware/server/dell/idrac/snmp/mode/components/amperage.pm#L27C1-L37C3


Reply