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>
26 lines
802 B
PHP
26 lines
802 B
PHP
<?php
|
|
/*
|
|
* This is called from LibreNMS/Modules/LegacyModule.php
|
|
*/
|
|
|
|
if ((isset($device)) && ($device['os'] == 'forcepoint')) {
|
|
$forcepoint_fs=snmpwalk_cache_oid($device, 'fwDiskStatsTable', [], 'STONESOFT-FIREWALL-MIB');
|
|
|
|
if (is_array($forcepoint_fs)) {
|
|
foreach ($forcepoint_fs as $i => $partition) {
|
|
echo 'Forcepoint filesystem ';
|
|
discover_storage($valid_storage,
|
|
$device,
|
|
$i, 'fs',
|
|
'forcepoint',
|
|
$partition['fwMountPointName'],
|
|
$partition['fwPartitionSize']*1024,
|
|
1,
|
|
$partition['fwPartitionUsed']*1024);
|
|
}
|
|
} else {
|
|
print 'fwDiskStatsTable did not return an array.' . PHP_EOL;
|
|
}
|
|
unset($forcepoint_fs,$partition,$i);
|
|
}
|