Observium_CE/includes/polling/os/ups-mib.inc.php

32 lines
747 B
PHP

<?php
/**
* Observium
*
* This file is part of Observium.
*
* @package observium
* @subpackage poller
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2023 Observium Limited
*
*/
// Keep this for some OSes, who not include UPS-MIB by default
// Better to use vendor from OS definition
//if (empty($vendor))
//{
// $vendor = snmp_get_oid($device, 'upsIdentManufacturer.0', 'UPS-MIB');
//}
if (empty($hardware)) {
$hardware = snmp_get_oid($device, 'upsIdentModel.0', 'UPS-MIB');
}
if (empty($version)) {
$version = snmp_get_oid($device, 'upsIdentUPSSoftwareVersion.0', 'UPS-MIB');
if (empty($version)) {
$version = snmp_get_oid($device, 'upsIdentAgentSoftwareVersion.0', 'UPS-MIB');
}
}
// EOF