mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Add support for Forcepoint NGFW 6.10 and older (#15632)
* Add support for Forcepoint NGFW 6.10 and older * Update forcepoint_forcepoint-ngfw-330.json * Proc. discovery fix --------- Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
This commit is contained in:
16
includes/polling/storage/forcepoint.inc.php
Normal file
16
includes/polling/storage/forcepoint.inc.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
/*
|
||||
* Called from includes/polling/storage.inc.php
|
||||
*/
|
||||
|
||||
if (isset($storage) and isset($device)) {
|
||||
$oids = array('fwPartitionSize.' . $storage['storage_index'], 'fwPartitionAvail.' . $storage['storage_index'], 'fwPartitionUsed.' . $storage['storage_index']);
|
||||
$allEntries = snmp_get_multi($device, $oids, '-OQUs', 'STONESOFT-FIREWALL-MIB');
|
||||
$entry = array_shift($allEntries);
|
||||
$storage['size'] = $entry['fwPartitionSize']*1024;
|
||||
$storage['free'] = $entry['fwPartitionAvail']*1024;
|
||||
$storage['used'] = $entry['fwPartitionUsed']*1024;
|
||||
$storage['units'] = 1;
|
||||
|
||||
unset ($oids, $allEntries, $entry);
|
||||
}
|
Reference in New Issue
Block a user