Commit version 24.12.13800

This commit is contained in:
2025-01-06 17:35:06 -05:00
parent b7f6a79c2c
commit 55d9218816
6133 changed files with 4239740 additions and 1374287 deletions

View File

@ -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