mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
device: Improved FortiManager support (#8102)
Modified with suggested changes Test data for FortiOS
This commit is contained in:
10
includes/polling/mempools/fortios.inc.php
Normal file
10
includes/polling/mempools/fortios.inc.php
Normal 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);
|
Reference in New Issue
Block a user