Commit version 24.12.13800
This commit is contained in:
@ -7,7 +7,7 @@
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage poller
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
@ -15,20 +15,21 @@
|
||||
|
||||
$xinfo = explode(';', snmp_get($device, '1.3.6.1.4.1.253.8.51.1.2.1.20.1', '-OQv'));
|
||||
|
||||
foreach ($xinfo as $xi)
|
||||
{
|
||||
list($key,$value) = explode(':',$xi);
|
||||
$xerox[$key] = $value;
|
||||
foreach ($xinfo as $xi) {
|
||||
[ $key, $value ] = explode(':', $xi);
|
||||
//$xerox[$key] = $value;
|
||||
if ($key === 'DES') {
|
||||
$hardware = explode(',', $value)[0];
|
||||
}
|
||||
}
|
||||
|
||||
list($hardware) = explode(',',$xerox['DES']);
|
||||
//$hardware = explode(',', $xerox['DES'])[0];
|
||||
|
||||
// SNMPv2-SMI::enterprises.236.11.5.1.1.1.1.0 = STRING: "Xerox Phaser 3200MFP"
|
||||
// SNMPv2-SMI::enterprises.236.11.5.1.1.1.2.0 = STRING: "1.15"
|
||||
|
||||
if ($hardware == '')
|
||||
{
|
||||
$hardware = snmp_get($device, '1.3.6.1.4.1.236.11.5.1.1.1.1.0', '-OQv');
|
||||
if (safe_empty($hardware)) {
|
||||
$hardware = snmp_get($device, '1.3.6.1.4.1.236.11.5.1.1.1.1.0', '-OQv');
|
||||
}
|
||||
|
||||
$version = snmp_get($device, '1.3.6.1.4.1.236.11.5.1.1.1.2.0', '-OQv');
|
||||
|
Reference in New Issue
Block a user