On 28/10/2015 22:50:00, Aaron Finney <aaron.finney@openx.com> wrote:
_______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium---------- Forwarded message ----------
From: Aaron Finney <aaron.finney@openx.com>
Date: Sat, Sep 12, 2015 at 5:46 AM
Subject: Baytech PDU patch
To: Observium Network Observation System <observium@observium.org>Hi all,Attached is a diff and related files to include support for Baytech PDUs. It was just an archaeology job on some of the other existing PDU discover/sensor files modified for the Baytechs, but it's working well for us. It'd be great to have it merged, or at least Baytech support added, so I can update without worrying about support for them being lost. :)Thanks,Aaron[someguy@observium-poc observium]# svn status? html/images/os/baytech.pngM includes/definitions/os.inc.php? includes/discovery/os/baytech.inc.php? includes/discovery/sensors/baytech-mib.inc.php? includes/polling/os/baytech-pdu.inc.php? mibs/baytech[someguy@observium-poc observium]# svn diffIndex: includes/definitions/os.inc.php===================================================================--- includes/definitions/os.inc.php (revision 6977)+++ includes/definitions/os.inc.php (working copy)@@ -3385,6 +3385,19 @@$config['os'][$os]['mib_dirs'][] = "fiberroad";$config['os'][$os]['mibs'][] = "XXX-MIB";+// Baytech++$os = "baytech-pdu";+$config['os'][$os]['text'] = "Baytech PDU";+$config['os'][$os]['type'] = "power";+$config['os'][$os]['vendor'] = "Baytech";+$config['os'][$os]['graphs'][] = "device_current";+$config['os'][$os]['graphs'][] = "device_power";+$config['os'][$os]['discovery_os'] = "baytech";+$config['os'][$os]['mib_dirs'][] = "baytech";+$config['os'][$os]['mibs'][] = "Baytech-MIB";++foreach ($config['os'] as $this_os => $blah){if (isset($config['os'][$this_os]['group']))[someguy@observium-poc observium]#--Aaron Finney | Network Engineer
888 East Walnut Street, 2nd Floor | Pasadena, CA 91101office: +1 (626) 466-1141 x6035Watch how we make online advertising simple: http://bit.ly/Ent_vid
www.openx.com | follow us on: Twitter Facebook LinkedIn--Aaron Finney | Network Engineer
888 East Walnut Street, 2nd Floor | Pasadena, CA 91101office: +1 (626) 466-1141 x6035Watch how we make online advertising simple: http://bit.ly/Ent_vid
www.openx.com | follow us on: Twitter Facebook LinkedIn