mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-27 15:44:21 +02:00
+ fix device power calculation (#3116)
Closes https://github.com/centreon/centreon-plugins/issues/3115
This commit is contained in:
parent
f9f974c546
commit
4aa83eafca
@ -203,7 +203,7 @@ sub check_rpdu {
|
|||||||
$snmp_result = $options{snmp}->get_leef(oids => [$oid_rPDUIdentName, $oid_rPDUIdentDevicePowerWatts]);
|
$snmp_result = $options{snmp}->get_leef(oids => [$oid_rPDUIdentName, $oid_rPDUIdentDevicePowerWatts]);
|
||||||
$self->{device}->{0} = {
|
$self->{device}->{0} = {
|
||||||
display => $snmp_result->{$oid_rPDUIdentName},
|
display => $snmp_result->{$oid_rPDUIdentName},
|
||||||
power => $snmp_result->{$oid_rPDUIdentDevicePowerWatts} * 10,
|
power => $snmp_result->{$oid_rPDUIdentDevicePowerWatts},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user