From 730caac74a2c9e0a078952f8f5be277aa582fb36 Mon Sep 17 00:00:00 2001 From: Rosiak Date: Mon, 16 Feb 2015 20:14:04 +0100 Subject: [PATCH] Basic Ruckus Wireless Support Basic device support for Ruckus Wireless devices. --- html/images/os/ruckus.png | Bin 0 -> 854 bytes includes/definitions.inc.php | 9 +++++++++ includes/discovery/os/ruckuswireless.inc.php | 17 +++++++++++++++++ includes/polling/os/ruckuswireless.inc.php | 15 +++++++++++++++ 4 files changed, 41 insertions(+) create mode 100644 html/images/os/ruckus.png create mode 100644 includes/discovery/os/ruckuswireless.inc.php create mode 100644 includes/polling/os/ruckuswireless.inc.php diff --git a/html/images/os/ruckus.png b/html/images/os/ruckus.png new file mode 100644 index 0000000000000000000000000000000000000000..b127ecc6c104ee59102b6649c0ffce4f3388eaaf GIT binary patch literal 854 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE3?yBabRA=0V6+SH32_B-pB|lZ@A&eUm)1T! zK0PonFeW-WJw4;;tpkrPtc;9^u(Pqv$;okZam~ree)I77gR_gDo|zpG5MX6)p{J*B zWME{dZ(w3#;_2zBs-&!^qwC}6S5Z;1sV{U#yQ`J1yt{0VqO+rug@uKw zv5B^pwugoM<|^GO8CoV9a<?exFC zd-BZblPt{4RTbo-eQkFv>pZw=&f^o)KU|-0Y-r@{;Am}WsiC3q^1>{8Tl?DDI!||x zw6wHWS63C}=Vzp+yEr+=#m8%FYez&zgoXrJTUo}%#rgaDxw^VMy}HH3*f=ya%-+G? z+spmsO}wJ zv&(lxoVo`LLB^6GzhDN3XE)M7oFs2|7b`!`Bfo$g&H|6fVj%4S#%?FG?SKlLJY5_^ zEKWb2R33cDLExx-mczja1wkgQo0F3cy1fzY-P^dpE$7DR@Bf+P3G^v{)Q#~*b*d2!e#U%&jy9-#%%w!!VNu<`iT>G}+(1|k) z)=9Q`X&L3~Uwx1CusX1iW5z_~r#r;voR}BWcJ$cY6H{-0`1tbIs?-{r&ieKFNi1p$8U3G#0fSYw#5JNMC9x#cD!C{XNHG{0 z7@F!D80i|Cg%}!H8CqHy1G#2a1_pI@7Ozn>FVdQ&MBb@ E03-NX6#xJL literal 0 HcmV?d00001 diff --git a/includes/definitions.inc.php b/includes/definitions.inc.php index 0f66209f9..4e279358d 100644 --- a/includes/definitions.inc.php +++ b/includes/definitions.inc.php @@ -357,6 +357,15 @@ $config['os'][$os]['text'] = "ZTE ZXR10"; $config['os'][$os]['type'] = "network"; $config['os'][$os]['icon'] = "zte"; +// Ruckus Wireless + +$os = "ruckuswireless"; +$config['os'][$os]['text'] = "Ruckus Wireless"; +$config['os'][$os]['type'] = "wireless"; +$config['os'][$os]['icon'] = "ruckus"; +$config['os'][$os]['over'][0]['graph'] = "device_bits"; +$config['os'][$os]['over'][0]['text'] = "Traffic"; + // Supermicro Switch $os = "supermicro-switch"; diff --git a/includes/discovery/os/ruckuswireless.inc.php b/includes/discovery/os/ruckuswireless.inc.php new file mode 100644 index 000000000..dff998273 --- /dev/null +++ b/includes/discovery/os/ruckuswireless.inc.php @@ -0,0 +1,17 @@ + +* This program is free software: you can redistribute it and/or modify it +* under the terms of the GNU General Public License as published by the +* Free Software Foundation, either version 3 of the License, or (at your +* option) any later version. Please see LICENSE.txt at the top level of +* the source code distribution for details. +*/ +if (!$os) { + if (strstr($sysObjectId, ".1.3.6.1.4.1.25053.3.1.4")) { + $os = "ruckuswireless"; + } +} +?> diff --git a/includes/polling/os/ruckuswireless.inc.php b/includes/polling/os/ruckuswireless.inc.php new file mode 100644 index 000000000..88a94c2a9 --- /dev/null +++ b/includes/polling/os/ruckuswireless.inc.php @@ -0,0 +1,15 @@ + +* This program is free software: you can redistribute it and/or modify it +* under the terms of the GNU General Public License as published by the +* Free Software Foundation, either version 3 of the License, or (at your +* option) any later version. Please see LICENSE.txt at the top level of +* the source code distribution for details. +*/ +$hardware = trim(snmp_get($device, ".1.3.6.1.4.1.25053.1.1.2.1.1.1.1.0", "-Ovq") , '" '); +$version = trim(snmp_get($device, ".1.3.6.1.4.1.25053.1.1.3.1.1.1.1.1.3.1", "-Ovq") , '" '); +$serial = trim(snmp_get($device, ".1.3.6.1.4.1.25053.1.1.2.1.1.1.2.0", "-Ovq") , '" '); +?>