graphing cisco 4400 wireless controllers
Moderators: Developers, Moderators
-
- Posts: 18
- Joined: Tue Oct 02, 2007 3:19 pm
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.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
-
- Posts: 18
- Joined: Tue Oct 02, 2007 3:19 pm
Hi Andy! Thank you for the great scripts!!!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
In my previous post attachment scripts.zip I included patch files to your originals with the function snmpwalk() replaced.
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
thanks to everyone for such a nice script!
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
thanks to everyone for such a nice script!
Rogue Alerts
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
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
modified template so that graph stacks values
- Attachments
-
- Cisco4400_Rogue_Alerts_v2.zip
- (5.87 KiB) Downloaded 517 times
I'm having an issue getting cacti to graph the number of users, i think the issue is related to the quoted text above: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
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>
-Jason
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
cheers
andys
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
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
Not working
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
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
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
andys
Who is online
Users browsing this forum: No registered users and 1 guest