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 * Update forcepoint_forcepoint-ngfw-330.json * Proc. discovery fix --------- Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
17 lines
628 B
PHP
17 lines
628 B
PHP
<?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);
|
|
}
|