Tom Laermans 0a2371cfc7 reformat mempool and current discovery
git-svn-id: http://www.observium.org/svn/observer/trunk@1834 61d68cd4-352d-0410-923a-c4978735b2b8
2011-03-14 19:24:23 +00:00

20 lines
435 B
PHP
Executable File

<?php
global $valid_mempool;
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;
$percent = $used / $total * 100;
if (is_numeric($total) && is_numeric($used))
{
discover_mempool($valid_mempool, $device, 0, "screenos", "Memory", "1", NULL, NULL);
}
}
?>