fix: Ability to detect Cisco ASA version when polling a security context (#5098)

This commit is contained in:
Søren Rosiak
2016-12-01 21:50:56 +02:00
committed by Neil Lathwood
parent 505e6516b0
commit f852d5cf7d

View File

@@ -34,3 +34,8 @@ if (isset($data[1]['entPhysicalSerialNum']) && $data[1]['entPhysicalSerialNum']
if (empty($hardware)) {
$hardware = snmp_get($device, 'sysObjectID.0', '-Osqv', 'SNMPv2-MIB:CISCO-PRODUCTS-MIB');
}
if (empty($version)) {
$explodeddata = explode(" ", $poll_device['sysDescr']);
$version = $explodeddata['5'];
}