Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if ($device['os'] == "yamaha")
- {
- $percent = snmp_get($device, ".1.3.6.1.4.1.1182.2.1.4.0", "-OvQ");
- if (is_numeric($percent))
- {
- $total = snmp_get($device, ".1.3.6.1.4.1.1182.2.1.2.0", "-OvQ");
- discover_mempool($valid['mempool'], $device, 0, $mib, "Memory Utilization", "1", $total, $total*$percent/100.0);
- }
- }
Add Comment
Please, Sign In to add comment