mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Added support for APC OutputLoad
This commit is contained in:
@@ -172,6 +172,13 @@ if ($device['os'] == "apc")
|
||||
}
|
||||
|
||||
unset($oids);
|
||||
|
||||
# UPS
|
||||
$output_load = snmp_get($device, "upsAdvOutputLoad", "-Oqv", "PowerNet-MIB");
|
||||
if (empty($output_load)) {
|
||||
$output_load = snmp_get($device, "upsHighPrecOutputLoad", "-Oqv", "PowerNet-MIB");
|
||||
}
|
||||
discover_sensor($valid['sensor'], 'current', $device, "upsAdvOutputLoad", 1, 'apc', 'OutputLoad','10','1',NULL,NULL,NULL,NULL,$output_load);
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user