Files
librenms-librenms/includes/discovery/mempools/fortiweb.inc.php
2020-05-21 15:14:56 -05:00

9 lines
420 B
PHP

<?php
echo 'FORTIWEB-MEMORY-POOL: ';
$usage = str_replace('"', "", snmp_get($device, 'FORTINET-FORTIWEB-MIB::fwSysMemUsage.0', '-OvQ'));
if (is_numeric($usage)) {
// fwSysMemCapacity: Total physical memory (RAM) installed (MB)
// Conversion from megabyte (base 10) to byte (base 10): Precision = 1000*1000
discover_mempool($valid_mempool, $device, 0, 'fortiweb', 'Physical Memory', '1000000', null, null);
}