2010-07-23 18:15:54 +00:00
|
|
|
<?php
|
|
|
|
|
2015-07-13 20:10:26 +02:00
|
|
|
if ($device['os'] == 'screenos') {
|
|
|
|
echo 'ScreenOS: ';
|
2010-07-23 18:15:54 +00:00
|
|
|
|
2015-07-13 20:10:26 +02:00
|
|
|
$used = snmp_get($device, '.1.3.6.1.4.1.3224.16.2.1.0', '-OvQ');
|
|
|
|
$free = snmp_get($device, '.1.3.6.1.4.1.3224.16.2.2.0', '-OvQ');
|
|
|
|
$total = ($free + $used);
|
2010-07-23 18:15:54 +00:00
|
|
|
|
2015-07-13 20:10:26 +02:00
|
|
|
$percent = ($used / $total * 100);
|
2010-07-23 18:15:54 +00:00
|
|
|
|
2015-07-13 20:10:26 +02:00
|
|
|
if (is_numeric($total) && is_numeric($used)) {
|
|
|
|
discover_mempool($valid_mempool, $device, 0, 'screenos', 'Memory', '1', null, null);
|
|
|
|
}
|
2010-07-23 18:15:54 +00:00
|
|
|
}
|