Commit version 24.12.13800
This commit is contained in:
@ -5,9 +5,9 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage poller
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage poller
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
@ -31,27 +31,22 @@ $version = snmp_get($device, 'sysProductVersion.0', '-OQv', 'F5-BIGIP-SYSTEM-MIB
|
||||
$version .= ' Build ' . snmp_get($device, 'sysProductBuild.0', '-OQv', 'F5-BIGIP-SYSTEM-MIB');
|
||||
$version .= ' ' . snmp_get($device, 'sysProductEdition.0', '-OQv', 'F5-BIGIP-SYSTEM-MIB');
|
||||
|
||||
$slot_serials = snmpwalk_cache_oid($device, 'sysChassisSlotSerialNumber', array(), 'F5-BIGIP-SYSTEM-MIB');
|
||||
foreach($slot_serials as $tmp => $slot)
|
||||
{
|
||||
if ($slot['sysChassisSlotSerialNumber'])
|
||||
{
|
||||
$serial .= ',' . $slot['sysChassisSlotSerialNumber'];
|
||||
}
|
||||
$slot_serials = snmpwalk_cache_oid($device, 'sysChassisSlotSerialNumber', [], 'F5-BIGIP-SYSTEM-MIB');
|
||||
foreach ($slot_serials as $tmp => $slot) {
|
||||
if ($slot['sysChassisSlotSerialNumber']) {
|
||||
$serial .= ',' . $slot['sysChassisSlotSerialNumber'];
|
||||
}
|
||||
}
|
||||
|
||||
$data = snmpwalk_cache_oid($device, 'sysModuleAllocationProvisionLevel', array(), 'F5-BIGIP-SYSTEM-MIB');
|
||||
$all_features = array('am', 'lc', 'afm', 'apm', 'asm', 'avr', 'gtm', 'ltm', 'psm', 'vcmp');
|
||||
foreach ($all_features as $feature)
|
||||
{
|
||||
if (isset($data[$feature]))
|
||||
{
|
||||
$enabled = $data[$feature]['sysModuleAllocationProvisionLevel'];
|
||||
if ($enabled != '' && $enabled != 'none')
|
||||
{
|
||||
$features .= ' ' . $feature;
|
||||
$data = snmpwalk_cache_oid($device, 'sysModuleAllocationProvisionLevel', [], 'F5-BIGIP-SYSTEM-MIB');
|
||||
$all_features = ['am', 'lc', 'afm', 'apm', 'asm', 'avr', 'gtm', 'ltm', 'psm', 'vcmp'];
|
||||
foreach ($all_features as $feature) {
|
||||
if (isset($data[$feature])) {
|
||||
$enabled = $data[$feature]['sysModuleAllocationProvisionLevel'];
|
||||
if ($enabled != '' && $enabled != 'none') {
|
||||
$features .= ' ' . $feature;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
$features = trim($features);
|
||||
|
||||
|
Reference in New Issue
Block a user