Read this.  Submit patches to JIRA:  http://jira.observium.org/.

 

Examples of what to do and what not to do.  Hint: use attachments.  Hint #2: get to know `svn diff`.

--

Cameron Moore

 

 

From: observium [mailto:observium-bounces@observium.org] On Behalf Of Nicolas COULIN
Sent: Tuesday, April 14, 2015 6:55 AM
To: observium@observium.org
Subject: [Observium] How to submit to the development team ?

 

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