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
|
||||
*
|
||||
*/
|
||||
|
||||
@ -24,18 +24,15 @@
|
||||
// $hardware = trim(str_replace('TRIPP LITE', '', $data[0]['upsIdentModel']));
|
||||
// //$version = $data[0]['upsIdentAgentSoftwareVersion'];
|
||||
//} else {
|
||||
if (empty($hardware))
|
||||
{
|
||||
//$hardware = $poll_device['sysDescr'];
|
||||
$hw = snmp_get_oid($device, '.1.3.6.1.4.1.850.10.2.2.1.9.1', 'TRIPPLITE-12X');
|
||||
if ($hw)
|
||||
{
|
||||
$hardware = trim(str_replace('TRIPP LITE', '', $hw));
|
||||
}
|
||||
if (empty($hardware)) {
|
||||
//$hardware = $poll_device['sysDescr'];
|
||||
$hw = snmp_get_oid($device, '.1.3.6.1.4.1.850.10.2.2.1.9.1', 'TRIPPLITE-12X');
|
||||
if ($hw) {
|
||||
$hardware = trim(str_replace('TRIPP LITE', '', $hw));
|
||||
}
|
||||
}
|
||||
if (empty($version))
|
||||
{
|
||||
$version = snmp_get_oid($device, '.1.3.6.1.4.1.850.10.1.2.3.0', 'TRIPPLITE-12X');
|
||||
if (empty($version)) {
|
||||
$version = snmp_get_oid($device, '.1.3.6.1.4.1.850.10.1.2.3.0', 'TRIPPLITE-12X');
|
||||
}
|
||||
|
||||
// EOF
|
||||
|
Reference in New Issue
Block a user