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

Watch how we make online advertising simple: http://bit.ly/Ent_vid
www.openx.com   |   follow us on:   Twitter   Facebook    LinkedIn