2010-07-23 18:15:54 +00:00
|
|
|
<?php
|
|
|
|
|
2010-07-29 18:25:11 +00:00
|
|
|
global $valid_mempool;
|
|
|
|
|
2011-03-14 19:24:23 +00:00
|
|
|
if ($device['os'] == "screenos")
|
|
|
|
{
|
2010-07-23 18:15:54 +00:00
|
|
|
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;
|
|
|
|
|
|
|
|
$percent = $used / $total * 100;
|
|
|
|
|
2011-03-14 19:24:23 +00:00
|
|
|
if (is_numeric($total) && is_numeric($used))
|
|
|
|
{
|
2010-07-23 18:15:54 +00:00
|
|
|
discover_mempool($valid_mempool, $device, 0, "screenos", "Memory", "1", NULL, NULL);
|
|
|
|
}
|
|
|
|
}
|
2011-03-14 19:24:23 +00:00
|
|
|
?>
|