mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
11 lines
439 B
PHP
11 lines
439 B
PHP
<?php
|
|
|
|
if ($device['os'] == 'fortios') {
|
|
d_echo('FortiOS Memory:');
|
|
$temp_data = snmp_get_multi_oid($device, 'fmSysMemCapacity.0 fmSysMemUsed.0', '-OUQs', 'FORTINET-FORTIMANAGER-FORTIANALYZER-MIB');
|
|
if ((is_numeric($temp_data['fmSysMemCapacity.0'])) && (is_numeric($temp_data['fmSysMemUsed.0']))) {
|
|
discover_mempool($valid_mempool, $device, 0, 'fortios', 'Main Memory', '1', null, null);
|
|
}
|
|
unset($temp_data);
|
|
}
|