mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 08:02:23 +02:00
fix screenos memory
git-svn-id: http://www.observium.org/svn/observer/trunk@2485 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -7,8 +7,8 @@ if ($device['os'] == "screenos")
|
||||
echo("ScreenOS: ");
|
||||
|
||||
$used = snmp_get($device, ".1.3.6.1.4.1.3224.16.2.1.0", "-OvQ");
|
||||
$total = snmp_get($device, ".1.3.6.1.4.1.3224.16.2.2.0", "-OvQ");
|
||||
$free = $total - $used;
|
||||
$free = snmp_get($device, ".1.3.6.1.4.1.3224.16.2.2.0", "-OvQ");
|
||||
$total = $free + $used;
|
||||
|
||||
$percent = $used / $total * 100;
|
||||
|
||||
@@ -17,4 +17,4 @@ if ($device['os'] == "screenos")
|
||||
discover_mempool($valid_mempool, $device, 0, "screenos", "Memory", "1", NULL, NULL);
|
||||
}
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user