mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
added os check
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
echo(" EXTREME-BASE-MIB ");
|
||||
|
||||
if ($device['os'] == 'xos') {
|
||||
// Power Usage
|
||||
$descr = "Power Usage";
|
||||
$oid = "1.3.6.1.4.1.1916.1.1.1.40.1.0"; // extremeSystemPowerUsage
|
||||
@@ -12,5 +13,5 @@ $value = ($value / $divisor); // Nasty hack to divide the first value by 1000 s
|
||||
if (is_numeric($value)) {
|
||||
discover_sensor($valid['sensor'], 'power', $device, $oid, '1', 'extreme-power', $descr, $divisor, 1, null, null, null, null, $value); // No limits have been specified since all equipment is different and will use different amount of Watts
|
||||
}
|
||||
|
||||
}
|
||||
// EOF
|
||||
|
Reference in New Issue
Block a user