mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix oid name
This commit is contained in:
@@ -20,7 +20,7 @@ if ($device['os'] == "drac") {
|
||||
$limit_oid = "powerSupplyMaximumInputVoltage.1.$index";
|
||||
$descr = trim(snmp_get($device, $descr_oid, "-Oqv", "IDRAC-MIB-SMIv2"),'"');
|
||||
$descr = preg_replace("/(Status)/","", $descr);
|
||||
$current = snmp_get($device, $fan_oid, "-Oqv", "IDRAC-MIB-SMIv2");
|
||||
$current = snmp_get($device, $voltage_oid, "-Oqv", "IDRAC-MIB-SMIv2");
|
||||
$high_limit = snmp_get($device, $limit_oid, "-Oqv", "IDRAC-MIB-SMIv2");
|
||||
$divisor = "1";
|
||||
discover_sensor($valid['sensor'], 'voltage', $device, $voltage_oid, $index, 'drac', $descr, $divisor, '1', NULL, NULL, NULL, $high_limit, $current);
|
||||
|
Reference in New Issue
Block a user