graphing cisco 4400 wireless controllers

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

andys
Posts: 24
Joined: Fri Mar 23, 2007 8:06 am

Post by andys »

i've just checked the query_4400_APifType.php and it uses snmp_walk rather than cacti_snmp_walk - i'll rewrite scripts so that they are the same as the others
cheers
andys
mia1dolfan
Posts: 18
Joined: Tue Oct 02, 2007 3:19 pm

Post by mia1dolfan »

cwahlin wrote:Another problem still remaining is that query query_4400_APifType.php script thinks snmpwalk is an unknown function. Not sure why, since it works in the other scripts?

Any ideas?
/Carl
Are you sure you replaced query_4400_APifType.php? I replaced all calls to snmpwalk() with cacti_snmp_walk(). snmpwalk() only functions with SNMP version 1, unless PHP is hacked. I double checked what I uploaded.
mia1dolfan
Posts: 18
Joined: Tue Oct 02, 2007 3:19 pm

Post by mia1dolfan »

andys wrote:i've just checked the query_4400_APifType.php and it uses snmp_walk rather than cacti_snmp_walk - i'll rewrite scripts so that they are the same as the others
cheers
andys
Hi Andy! Thank you for the great scripts!!! :D

In my previous post attachment scripts.zip I included patch files to your originals with the function snmpwalk() replaced.
andys
Posts: 24
Joined: Fri Mar 23, 2007 8:06 am

Post by andys »

thanks mia1dolfan - noticed that before i started amending the originals - think everyone should start using your fixed scripts in future.
cheers
andy
coolfish
Posts: 2
Joined: Thu Oct 25, 2007 9:02 am

Post by coolfish »

Hi everybody!,


I am still not able to detect any thing from my 4400 box.
I ran the "Verbose Query" (please check the attached picture).
Is it because of the formatting of MAC address or something ?

I am running Cacti on FreeBSD.
Attachments
cacti_verbose_query.JPG
cacti_verbose_query.JPG (106.36 KiB) Viewed 10304 times
coolfish
Posts: 2
Joined: Thu Oct 25, 2007 9:02 am

Post by coolfish »

I found a solution, but I am not sure If it is the correct way because I had to modify

1. lib/snmp.php
2. query_cisco4400_aps.php

1.lib/snmp.php
As you can see I have removed -Cr50 from the command. Default value is 10, I am not sure how that is going to affect other Graphs

$temp_array = exec_into_array($path_snmpbulkwalk . " -O n $snmp_auth -v $version -t $timeout -r $retries $hostname:$port $oid ");
//$temp_array = exec_into_array($path_snmpbulkwalk . " -O n $snmp_auth -v $version -t $timeout -r $retries -Cr50 $hostname:$port $oid");


2. query_cisco4400_aps.php
This was already posted in this thread before.

if (($arg == "apassoc")){
//$test=ereg_replace ("HEX-00:","",$index);
$pretest = "Hex-STRING: " . ereg_replace (":"," ",$index . " ");
$test = ereg_replace ("HEX-00 ","",$pretest);


You can just ignore my previous post :D

thanks to everyone for such a nice script!
andys
Posts: 24
Joined: Fri Mar 23, 2007 8:06 am

Rogue Alerts

Post by andys »

I’ve created a template to graph rogue alerts. The script polls the controller for the oid bsnRogueAPState 1.3.6.1.4.1.14179.2.1.7.1.24 which returns the following info:

0 : initializing
1 : pending
2 : alert
3 : detectedLrad
4 : known
5 : acknowledge
6 : contained
7 : threat
8 : containedPending
9 : knownContained
10 : trustedMissing

The bsnRogueAPState oid applys to Rogue APs and Rogue adhocs. When an adhoc Rogue status is changed to’known’ on the controller it is removed from the Rogue Summary but it is still counted by this script so you may see a slight discrepancy in your graph to what is reported by the controller’s GUI for “known” rogues.

To install – import the template through Cacti and place the script in your cacti scripts folder. Script created in 0.8.6j and tested on Cisco 4400 ver 4.1.171.0 and is snmp v2 compliant.
Cheers
andys
Attachments
Cisco4400_Rogue_Alerts.zip
(5.86 KiB) Downloaded 333 times
andys
Posts: 24
Joined: Fri Mar 23, 2007 8:06 am

Post by andys »

modified template so that graph stacks values
Attachments
Cisco4400_Rogue_Alerts_v2.zip
(5.87 KiB) Downloaded 517 times
Xaanix
Posts: 17
Joined: Tue Nov 06, 2007 4:52 pm

Post by Xaanix »

egarnel wrote:For example: I have 21 APs on 1 controller anf the following OID maps # of users per AP

bsnApIfNoOfUsers" "1.3.6.1.4.1.14179.2.2.2.1.15"

Code: Select all

SNMPv2-SMI::enterprises.14179.2.2.2.1.15.0.11.133.81.138.240.0 = Counter32: 0
SNMPv2-SMI::enterprises.14179.2.2.2.1.15.0.11.133.81.138.240.1 = Counter32: 1
SNMPv2-SMI::enterprises.14179.2.2.2.1.15.0.11.133.81.139.0.0 = Counter32: 0
SNMPv2-SMI::enterprises.14179.2.2.2.1.15.0.11.133.81.139.0.1 = Counter32: 0
SNMPv2-SMI::enterprises.14179.2.2.2.1.15.0.11.133.81.139.112.0 = Counter32: 0
SNMPv2-SMI::enterprises.14179.2.2.2.1.15.0.11.133.81.139.112.1 = Counter32: 0
SNMPv2-SMI::enterprises.14179.2.2.2.1.15.0.11.133.81.140.0.0 = Counter32: 1
SNMPv2-SMI::enterprises.14179.2.2.2.1.15.0.11.133.81.140.0.1 = Counter32: 0
SNMPv2-SMI::enterprises.14179.2.2.2.1.15.0.11.133.81.141.64.0 = Counter32: 0
SNMPv2-SMI::enterprises.14179.2.2.2.1.15.0.11.133.81.141.64.1 = Counter32: 0
SNMPv2-SMI::enterprises.14179.2.2.2.1.15.0.11.133.81.141.144.0 = Counter32: 0
SNMPv2-SMI::enterprises.14179.2.2.2.1.15.0.11.133.81.141.144.1 = Counter32: 0
SNMPv2-SMI::enterprises.14179.2.2.2.1.15.0.11.133.81.141.240.0 = Counter32: 0
SNMPv2-SMI::enterprises.14179.2.2.2.1.15.0.11.133.81.141.240.1 = Counter32: 0
SNMPv2-SMI::enterprises.14179.2.2.2.1.15.0.11.133.81.142.144.0 = Counter32: 0
SNMPv2-SMI::enterprises.14179.2.2.2.1.15.0.11.133.81.142.144.1 = Counter32: 0
SNMPv2-SMI::enterprises.14179.2.2.2.1.15.0.11.133.81.142.160.0 = Counter32: 0
SNMPv2-SMI::enterprises.14179.2.2.2.1.15.0.11.133.81.142.160.1 = Counter32: 0
SNMPv2-SMI::enterprises.14179.2.2.2.1.15.0.11.133.81.143.80.0 = Counter32: 2
SNMPv2-SMI::enterprises.14179.2.2.2.1.15.0.11.133.81.143.80.1 = Counter32: 2
I'm having an issue getting cacti to graph the number of users, i think the issue is related to the quoted text above:

for each AP, there are actually *2* values returned for SNMPv2-SMI::enterprises.14179.2.2.2.1.15.* when i walk it. I'm not sure how to handle this correclty in my xml file. I've read the help files and there doesnt seem to be a way to pick either the .0 or .1 number specifically.

The graphs come up and i see no errors anywhere, but all the data is 0 (not nans)

here's my XML:

Code: Select all

<query>
<name>Cicso 4400 Wireless Central Controller Stats</name>
<description>Grab Page File statistics using SNMP-Informant for a Server</description>
<oid_index>.1.3.6.1.4.1.14179.2.2.1.1.3</oid_index>
<oid_index_parse>OID/REGEXP:^.{29}(.*)$</oid_index_parse>
<index_order_type>alphabetic</index_order_type>

<fields>
<APHostname>
<name>APHostname</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.14179.2.2.1.1.3</oid>
</APHostname>

<APHostDesc>
<name>APHostDesc</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.14179.2.2.1.1.4</oid>
</APHostDesc>

<accessPointCurrentUsers>
<name>accessPointCurrentUsers</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.14179.2.2.2.1.15</oid>
</accessPointCurrentUsers>

</fields>
</query>
I'm guessing this is probably something pretty simple that i'm missing, if anyone can comment on this i'd appreciate it greatly.

-Jason
andys
Posts: 24
Joined: Fri Mar 23, 2007 8:06 am

Post by andys »

The latest scripts on this thread already graph the number of users on an AP. They use the oid bsnMobileStationAPMacAddr 1.3.6.1.4.1.14179.2.1.4.1.4 to do this. This oid returns the the total number of users associated on the controller along with the MAC of the AP they users are associated with. The script then sums the number of users for each AP MAC and returns them to Cacti.
cheers
andys
Xaanix
Posts: 17
Joined: Tue Nov 06, 2007 4:52 pm

Post by Xaanix »

I'll give that a shot, thanks!
Xaanix
Posts: 17
Joined: Tue Nov 06, 2007 4:52 pm

Post by Xaanix »

Sadly, i cannot use the provided cacti_host_template_cisco_4400_controller_112.xml template because it was created with a newer version of cacti than the one we are currently running. Upgrading is also unfortunately not an option for us right now.

I've got all the scripts and xml uploaded to the server but i'm not sure what steps to take next.

Any suggestions on what to do next? I'm running cacti 0.8.6h
weazel
Posts: 1
Joined: Fri Nov 09, 2007 5:31 am
Location: Sweden

Post by weazel »

This question is a bit OT but... do anyone know if it's possible to add guest WLAN users with SNMP? I've been fighting with this for 3 straight days now... I'm able to list users with snmpbulkwalk -v 2c -c xxxx 10.0.0.3 bsnUsersTable.
Any help will be very appreciated!
tycho
Posts: 6
Joined: Tue Jan 30, 2007 7:19 am
Location: Canada

Not working

Post by tycho »

Doesn't work for me, wish it did as I have over 10 of these controllers i'd like to monitor easier.

Looks like the template imported okay, and the data queries are showing results (pulling up my ssid's and ap's) but I have no graphs..

-tycho
andys
Posts: 24
Joined: Fri Mar 23, 2007 8:06 am

Post by andys »

Make sure you are using the latest scripts available at http://forums.cacti.net/download.php?id=10590 – these are snmp v2 compatible as the originals would only work with snmp v1 (which had to be enabled on the controller)
andys
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests