device: Improved FortiManager support (#8102)

Modified with suggested changes

Test data for FortiOS
This commit is contained in:
tukezor
2018-01-24 11:37:27 +02:00
committed by Neil Lathwood
parent f2088a505a
commit 0a6f113f5a
12 changed files with 1817 additions and 542 deletions

View File

@@ -0,0 +1,10 @@
<?php
// FortiOS Mempool
d_echo('FortiOS Memory:');
$temp_data = snmp_get_multi_oid($device, 'fmSysMemCapacity.0 fmSysMemUsed.0', '-OUQs', 'FORTINET-FORTIMANAGER-FORTIANALYZER-MIB');
$mempool['total'] = ($temp_data['fmSysMemCapacity.0'] * 1024);
$mempool['used'] = ($temp_data['fmSysMemUsed.0'] * 1024);
$mempool['perc'] = (($mempool['used'] / $mempool['total']) * 100);
$mempool['free'] = ($mempool['total'] - $mempool['used']);
unset($temp_data);