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
|
||||
*
|
||||
*/
|
||||
|
||||
@ -18,22 +18,20 @@
|
||||
// BLUECOAT-CAS-MIB::casAvEngineVersion.0 = STRING: 8.2.5.17
|
||||
// BLUECOAT-CAS-MIB::casAvPatternVersion.0 = STRING: 160119 210400.6788010
|
||||
|
||||
$av = snmp_get($device, 'casAvVendorName.0', '-Osqv', 'BLUECOAT-CAS-MIB');
|
||||
if (!empty($av))
|
||||
{
|
||||
$eng = snmp_get($device, 'casAvEngineVersion.0', '-Osqv', 'BLUECOAT-CAS-MIB');
|
||||
$pat = snmp_get($device, 'casAvPatternVersion.0', '-Osqv', 'BLUECOAT-CAS-MIB');
|
||||
$features = "$av-$eng ($pat)";
|
||||
$av = snmp_get($device, 'casAvVendorName.0', '-Osqv', 'BLUECOAT-CAS-MIB');
|
||||
if (!empty($av)) {
|
||||
$eng = snmp_get($device, 'casAvEngineVersion.0', '-Osqv', 'BLUECOAT-CAS-MIB');
|
||||
$pat = snmp_get($device, 'casAvPatternVersion.0', '-Osqv', 'BLUECOAT-CAS-MIB');
|
||||
$features = "$av-$eng ($pat)";
|
||||
}
|
||||
|
||||
if (preg_match('/Blue Coat (?<hw>\S+), Version: (?<version>[\d\.\-]+)/', $poll_device['sysDescr'], $matches))
|
||||
{
|
||||
$hardware = $matches['hw'];
|
||||
$version = $matches['version'];
|
||||
if (preg_match('/Blue Coat (?<hw>\S+), Version: (?<version>[\d\.\-]+)/', $poll_device['sysDescr'], $matches)) {
|
||||
$hardware = $matches['hw'];
|
||||
$version = $matches['version'];
|
||||
} else {
|
||||
list($hardware) = explode(',', $poll_device['sysDescr']);
|
||||
$hardware = trim($hardware);
|
||||
$version = snmp_get($device, 'casInstalledFirmwareVersion.0', '-Osqv', 'BLUECOAT-CAS-MIB');
|
||||
[$hardware] = explode(',', $poll_device['sysDescr']);
|
||||
$hardware = trim($hardware);
|
||||
$version = snmp_get($device, 'casInstalledFirmwareVersion.0', '-Osqv', 'BLUECOAT-CAS-MIB');
|
||||
}
|
||||
|
||||
// EOF
|
||||
|
Reference in New Issue
Block a user