adam. On 28/10/2015 22:50:00, Aaron Finney aaron.finney@openx.com wrote:
---------- Forwarded message ---------- From: Aaron Finney <aaron.finney@openx.com [mailto: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 [mailto: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.png M 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 diff Index: 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 91101
office: +1 (626) 466-1141 x6035 [tel:%2B1%20%28626%29%20466-1141%20x6035]
Watch how we make online advertising simple: http://bit.ly/Ent_vid [http://bit.ly/Ent_vid] www.openx.com [http://www.openx.com/] | follow us on: Twitter [http://www.twitter.com/] Facebook [http://www.facebook.com/] LinkedIn [http://www.linkedin.com/]
--
Aaron Finney | Network Engineer
888 East Walnut Street, 2nd Floor | Pasadena, CA 91101
office: +1 (626) 466-1141 x6035
Watch how we make online advertising simple: http://bit.ly/Ent_vid [http://bit.ly/Ent_vid] www.openx.com [http://www.openx.com/] | follow us on: Twitter [http://www.twitter.com/] Facebook [http://www.facebook.com/] LinkedIn [http://www.linkedin.com/]
_______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium