Add cisco wireless controller detection and airespace-mibs

This commit is contained in:
Tuomas Riihimäki
2015-02-12 10:33:01 +02:00
parent f114d557f2
commit b438fd131a
7 changed files with 21090 additions and 0 deletions

View File

@@ -307,6 +307,20 @@ $config['os'][$os]['over'][1]['text'] = "CPU Usage";
$config['os'][$os]['over'][2]['graph'] = "device_mempool";
$config['os'][$os]['over'][2]['text'] = "Memory Usage";
$os = "ciscowlc";
$config['os'][$os]['text'] = "Cisco WLC";
$config['os'][$os]['type'] = "network";
$config['os'][$os]['ifname'] = 1;
$config['os'][$os]['over'][0]['graph'] = "device_bits";
$config['os'][$os]['over'][0]['text'] = "Device Traffic";
$config['os'][$os]['over'][1]['graph'] = "device_processor";
$config['os'][$os]['over'][1]['text'] = "CPU Usage";
$config['os'][$os]['over'][2]['graph'] = "device_mempool";
$config['os'][$os]['over'][2]['text'] = "Memory Usage";
$config['os'][$os]['icon'] = "cisco";
// Cisco Small Business
$os = "ciscosb";

View File

@@ -0,0 +1,18 @@
<?php
/*
* LibreNMS Cisco wireless controller OS detection module
*
* Copyright (c) 2016 Tuomas Riihimäki <tuomari@iudex.fi>
* 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($sysDescr, "Cisco Controller")) { $os = "ciscowlc"; }
}
?>

View File

@@ -0,0 +1,34 @@
<?php
/*
* LibreNMS Cisco wireless controller temperature monitoring module
*
* Copyright (c) 2016 Tuomas Riihimäki <tuomari@iudex.fi>
* 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 ($device['os'] == "ciscowlc")
{
echo(" AIRESPACE temperature ");
$temp = snmpwalk_cache_multi_oid($device, "bsnSensorTemperature", array(),"AIRESPACE-WIRELESS-MIB");
$low = snmpwalk_cache_multi_oid($device, "bsnTemperatureAlarmLowLimit", array(),"AIRESPACE-WIRELESS-MIB");
$high = snmpwalk_cache_multi_oid($device, "bsnTemperatureAlarmHighLimit", array(),"AIRESPACE-WIRELESS-MIB");
if (is_array($temp))
{
$cur_oid = '.1.3.6.1.4.1.14179.2.3.1.13.';
foreach ($temp as $index => $entry)
{
$descr = "Unit Temperature ". $index;
echo " $descr, ";
discover_sensor($valid['sensor'], 'temperature', $device, $cur_oid.$index, $index, 'wlc', $descr, "1", '1', NULL, $low[$index]['bsnTemperatureAlarmLowLimit'], $high[$index]['bsnTemperatureAlarmHighLimit'], NULL, $temp[$index]['bsnSensorTemperature'], "snmp",$index);
}
}
}
?>

View File

@@ -0,0 +1,33 @@
<?php
/*
* LibreNMS Cisco wireless controller information module
*
* Copyright (c) 2016 Tuomas Riihimäki <tuomari@iudex.fi>
* 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.
*/
$oids = "entPhysicalModelName.1 entPhysicalSoftwareRev.1 entPhysicalSerialNum.1";
$data = snmp_get_multi($device, $oids, "-OQUs", "ENTITY-MIB");
if (isset($data[1]['entPhysicalSoftwareRev']) && $data[1]['entPhysicalSoftwareRev'] != "") {
$version = $data[1]['entPhysicalSoftwareRev'];
}
if (isset($data[1]['entPhysicalName']) && $data[1]['entPhysicalName'] != "") {
$hardware = $data[1]['entPhysicalName'];
}
if (isset($data[1]['entPhysicalModelName']) && $data[1]['entPhysicalModelName'] != "") {
$hardware = $data[1]['entPhysicalModelName'];
}
if(empty($hardware)) {
$hardware = snmp_get($device, "sysObjectID.0", "-Osqv", "SNMPv2-MIB:CISCO-PRODUCTS-MIB");
}
?>

28
mibs/AIRESPACE-REF-MIB Normal file
View File

@@ -0,0 +1,28 @@
AIRESPACE-REF-MIB DEFINITIONS ::= BEGIN
IMPORTS
MODULE-IDENTITY,
enterprises
FROM SNMPv2-SMI;
airespace MODULE-IDENTITY
LAST-UPDATED "200512190000Z" -- December 19, 2005
ORGANIZATION "Airespace, Inc."
CONTACT-INFO
" Cisco Systems,
Customer Service
Postal: 170 West Tasman Drive
San Jose, CA 95134
USA
Tel: +1 800 553-NETS
Email: cs-wnbu-snmp@cisco.com"
DESCRIPTION
"The Structure of Management Information for the
Airespace enterprise."
REVISION "200512190000Z" -- December 19, 2005
DESCRIPTION
"Initial version of this MIB module."
::= { enterprises 14179 } -- assigned by IANA
END

3983
mibs/AIRESPACE-SWITCHING-MIB Normal file
View File

File diff suppressed because it is too large Load Diff

16980
mibs/AIRESPACE-WIRELESS-MIB Normal file
View File

File diff suppressed because it is too large Load Diff