tukezor 0a6f113f5a device: Improved FortiManager support (#8102)
Modified with suggested changes

Test data for FortiOS
2018-01-24 09:37:27 +00:00

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);
}