
Hi,
I add HP UPS in observium, and I would like to know how to submit this code? /opt/observium/includes/definitions/os.inc.php $os = "hpups"; $config['os'][$os]['text'] = "HP UPS OS"; $config['os'][$os]['type'] = "power"; $config['os'][$os]['icon'] = "hp"; $config['os'][$os]['sysObjectID'][] = ".1.3.6.1.4.1.232.165"; $config['os'][$os]['mibs'][] = "CPQPOWER-MIB"; $config['os'][$os]['mib_blacklist'][] = "BGP4-MIB"; $config['os'][$os]['mib_blacklist'][] = "HOST-RESOURCES-MIB";
/opt/observium/includes/discovery/os/hpups.inc.php
<?php
/** * Observium * * This file is part of Observium. * * @package observium * @subpackage poller * @copyright (C) 2006-2014 Adam Armstrong * */
$manufacturer = trim(snmp_get($device, ".1.3.6.1.4.1.232.165.3.1.1.0", "-OQv", "", ""),'" '); $hardware = trim(snmp_get($device, ".1.3.6.1.4.1.232.165.3.1.2.0", "-OQv", "", ""),'" '); $version = trim(snmp_get($device, ".1.3.6.1.4.1.232.165.3.1.3.0", "-OQv", "", ""),'" '); $serial = trim(snmp_get($device, ".1.3.6.1.4.1.232.165.1.2.7.0", "-OQv", "", ""),'" ');
// EOF
Add mib, and /opt/observium/includes/discovery/sensors/cpqpower-mib.inc.php
Thanks,
[Logo Kleegroup]