2015-02-16 20:14:04 +01:00
|
|
|
<?php
|
|
|
|
/*
|
|
|
|
* LibreNMS Ruckus Wireless OS information module
|
|
|
|
*
|
2015-06-14 18:00:21 +10:00
|
|
|
* Originally by:
|
2015-02-16 20:14:04 +01:00
|
|
|
* Copyright (c) 2015 Søren Friis Rosiak <sorenrosiak@gmail.com>
|
2015-06-14 18:00:21 +10:00
|
|
|
*
|
|
|
|
* Updates by Paul Gear:
|
2015-05-26 23:58:29 +10:00
|
|
|
* Copyright (c) 2015 Gear Consulting Pty Ltd <github@libertysys.com.au>
|
2015-06-14 18:00:21 +10:00
|
|
|
*
|
2015-02-16 20:14:04 +01:00
|
|
|
* 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.
|
|
|
|
*/
|
2015-05-26 23:58:29 +10:00
|
|
|
|
2015-05-31 17:25:42 +10:00
|
|
|
$productmib = trim(snmp_get($device, ".1.3.6.1.2.1.1.2.0", "-Oqv"), '" ');
|
|
|
|
|
2015-05-26 23:58:29 +10:00
|
|
|
$ruckusmodels = array(
|
2015-05-31 17:25:42 +10:00
|
|
|
"$productmib.5.0",
|
2015-05-26 23:58:29 +10:00
|
|
|
".1.3.6.1.4.1.25053.1.2.1.1.1.1.9.0",
|
|
|
|
".1.3.6.1.4.1.25053.1.1.2.1.1.1.1.0",
|
2015-05-31 17:25:42 +10:00
|
|
|
".1.3.6.1.2.1.1.1.0",
|
2015-05-26 23:58:29 +10:00
|
|
|
);
|
2015-05-31 17:25:42 +10:00
|
|
|
$ruckusversions = array(
|
|
|
|
"$productmib.8.0",
|
|
|
|
".1.3.6.1.4.1.25053.1.1.3.1.1.1.1.1.3.1",
|
|
|
|
);
|
|
|
|
$ruckusserials = array(
|
|
|
|
"$productmib.7.0",
|
|
|
|
".1.3.6.1.4.1.25053.1.1.2.1.1.1.2.0"
|
|
|
|
);
|
2015-05-31 19:01:49 +10:00
|
|
|
$ruckuscountries = array(
|
|
|
|
"$productmib.9.0",
|
|
|
|
".1.3.6.1.4.1.25053.1.2.1.1.1.1.20"
|
|
|
|
);
|
2015-05-31 17:25:42 +10:00
|
|
|
|
2015-05-26 23:58:29 +10:00
|
|
|
$hardware = first_oid_match($device, $ruckusmodels);
|
2015-05-31 17:25:42 +10:00
|
|
|
$version = first_oid_match($device, $ruckusversions);
|
|
|
|
$serial = first_oid_match($device, $ruckusserials);
|
2015-05-31 19:01:49 +10:00
|
|
|
$ruckuscountry = first_oid_match($device, $ruckuscountries);
|
|
|
|
if (isset($ruckuscountry) && $ruckuscountry != "") {
|
|
|
|
$version .= " ($ruckuscountry)";
|
|
|
|
}
|
2015-06-08 14:58:22 +10:00
|
|
|
|
|
|
|
$ruckus_mibs = array(
|
|
|
|
"ruckusZDSystemStats" => "RUCKUS-ZD-SYSTEM-MIB",
|
2015-06-14 09:10:09 +10:00
|
|
|
"ruckusZDWLANTable" => "RUCKUS-ZD-WLAN-MIB",
|
|
|
|
"ruckusZDWLANAPTable" => "RUCKUS-ZD-WLAN-MIB",
|
2015-06-08 14:58:22 +10:00
|
|
|
);
|
2015-06-09 00:12:43 +10:00
|
|
|
poll_mibs($ruckus_mibs, $device, $graphs);
|
2015-06-08 14:58:22 +10:00
|
|
|
|
2015-02-16 20:14:04 +01:00
|
|
|
?>
|