graphing cisco 4400 wireless controllers
Moderators: Developers, Moderators
Not working
Yep, tried the new scripts, I just deleted my current ones to make sure and uploaded from that file.
I'm getting data back from the query, I can see all the information, just no rrd files, no graphs.
Not sure what to check here, note that i'm running this on a linux system, 0.8.6j
-tycho
I'm getting data back from the query, I can see all the information, just no rrd files, no graphs.
Not sure what to check here, note that i'm running this on a linux system, 0.8.6j
-tycho
-
- Posts: 16
- Joined: Mon Sep 24, 2007 4:01 pm
- Contact:
I am still unable to get query_4400_APifType.php to work using andys' updated script. When run at the command line I get the following:
Any help would be greatly appreciated! ThanksPHP Notice: Undefined offset: 1 in /var/www/html/scripts/query_4400_APifType.php on line 16
PHP Notice: Undefined offset: 2 in /var/www/html/scripts/query_4400_APifType.php on line 17
PHP Notice: Undefined offset: 3 in /var/www/html/scripts/query_4400_APifType.php on line 18
PHP Notice: Undefined offset: 2 in /var/www/html/scripts/query_4400_APifType.php on line 34
PHP Notice: Undefined offset: 1 in /var/www/html/scripts/query_4400_APifType.php on line 34
PHP Notice: Undefined offset: 2 in /var/www/html/scripts/query_4400_APifType.php on line 35
PHP Notice: Undefined offset: 1 in /var/www/html/scripts/query_4400_APifType.php on line 35
APdot11a: APdot11b:
Cacti Version - 0.8.7a
Plugin Architecture - 1.4
Poller Type - Cactid v
Server Info - Linux 2.6.21-1.3194.fc7
Web Server - Apache/2.2.4 (Fedora)
PHP - 5.2.4
PHP Extensions - libxml, xml, wddx, tokenizer, sysvshm, sysvsem, sysvmsg, session, pcre, SimpleXML, sockets, SPL, shmop, standard, Reflection, pspell, posix, iconv, hash, gmp, gettext, ftp, filter, exif, date, curl, ctype, calendar, bz2, zlib, openssl, apache2handler, bcmath, dbase, gd, json, ldap, mysql, mysqli, PDO, pdo_mysql, pdo_sqlite, snmp, zip
MySQL - 5.0.37
RRDTool - 1.2.23
SNMP - 5.4
Plugins
- Cycle Graphs (Cycle Graphs - v0.3)
FlowView (flowview - v0.4)
Host Info (hostinfo - v0.2)
PHP Network Managing (manage - v0.5.1)
Device Monitoring (monitor - v0.8.1)
RRD Cleaner - v1.2
Global Plugin Settings (settings - v0.3)
Thresholds (thold - v0.3.8)
Network Tools (tools - v0.2)
Update Checker (update - v0.4)
PHP Network Weathermap (weathermap - v0.94)
Real-time statistics (zond - v0.34)
Same problem with APifType
I don't know if anyone is watching this thread anymore, but after an upgrade from 0.8.6j to 0.8.7b i'm now having the same problem with this script. I installed the most current version as was recommended but no luck. I've attached my cacti log. Hopefully someone will be able to spot the issue or offer some additional troubleshooting.
- Attachments
-
- Logfile
- Untitled-1.gif (26.92 KiB) Viewed 9868 times
- Johnny Lingo
- Posts: 28
- Joined: Tue Feb 19, 2008 9:57 pm
- Location: Silicon Valley, USA
Updated script that works
I was able to get some help and have an updated script that returns valid data. The problem is that spine.exe doesn't seem to be able to "read" the script output. If I switch the poller back over to cmd.php the script works and graphs as normal. I don't suppose anyone has any ideas why spine.exe can't read the output? Here is what I get when running spine using this updated script.
Hopefully someone can help out with this. Thanks.
Code: Select all
08/13/2008 08:25:05 PM - SPINE: Poller[0] Host[43] ERROR: Empty result [10.1.253.4]: 'php C:/Inetpub/wwwroot/cacti/scripts/query_4400_APifType.php 10.1.253.4 sEsw58ra5ewAn3mU'
- Attachments
-
- query_4400_APifType.zip
- Updated AP query script
- (822 Bytes) Downloaded 355 times
A follow up thought on the spine issue
Just to verify the output when I run the script from the command line I get:
[/code]
Code: Select all
C:\>php C:/Inetpub/wwwroot/cacti/scripts/query_4400_APifType.php 10.1.253.4 sEsw58ra5ewAn3mU
APdot11a:4 APdot11b:4
Updated AP query script
I found a problem in the script that I uploaded a few days ago. When there are zero APs online the script would throw an error. Here is a version that fixes that problem and correctly reports zero APs when appropriate.
- Attachments
-
- query_4400_APifType.zip
- (855 Bytes) Downloaded 454 times
Thanks very much for the script and updates on this thread. I took the liberty of modifying the script to graph the number of Client Radio Types (by bsnMobileStationProtocol).
Since I have no dot11n clients (yet) I haven't built it in, so it's dot11a, dot11b and dot11g for now.
Note:
1. my script defaults to SNMP v2c (line 21 in the script)
2. I monitor 3 types of clients (line 41 in the script), this last mechanism takes care of filling the array with zero when any type of client is not present. If you decide to monitor a fourth type, change the 3 to a 4.
Please respond if anything is missing or just plain wrong.
Stefan
Since I have no dot11n clients (yet) I haven't built it in, so it's dot11a, dot11b and dot11g for now.
Note:
1. my script defaults to SNMP v2c (line 21 in the script)
2. I monitor 3 types of clients (line 41 in the script), this last mechanism takes care of filling the array with zero when any type of client is not present. If you decide to monitor a fourth type, change the 3 to a 4.
Please respond if anything is missing or just plain wrong.
Stefan
- Attachments
-
- Cisco_4400_ClientRadioTypes.zip
- (3.65 KiB) Downloaded 679 times
Re: Updated AP query script
I hard coded the snmp version to 2 and now the script worksdlockwood wrote:I found a problem in the script that I uploaded a few days ago. When there are zero APs online the script would throw an error. Here is a version that fixes that problem and correctly reports zero APs when appropriate.
line 21 of script
Code: Select all
$snmp_version = "2" ;
Cacti1 OS: CentOS 5.6 | 300+ devices
Cacti2 OS: CentOS 5.6 | 300+ devices
King of the Elves
Local Anarchists Union #427
"Anarchism is founded on the observation that since few men are wise enough to rule themselves, even fewer are wise enough to rule others." -Edward Abbey
Cacti2 OS: CentOS 5.6 | 300+ devices
King of the Elves
Local Anarchists Union #427
"Anarchism is founded on the observation that since few men are wise enough to rule themselves, even fewer are wise enough to rule others." -Edward Abbey
andys wrote:modified template so that graph stacks values
This is for the rogue alerts version 2 script
I changed the graph items from LAST to average in the template and it works like a champ.
Thanks for the awesome script!
Cacti1 OS: CentOS 5.6 | 300+ devices
Cacti2 OS: CentOS 5.6 | 300+ devices
King of the Elves
Local Anarchists Union #427
"Anarchism is founded on the observation that since few men are wise enough to rule themselves, even fewer are wise enough to rule others." -Edward Abbey
Cacti2 OS: CentOS 5.6 | 300+ devices
King of the Elves
Local Anarchists Union #427
"Anarchism is founded on the observation that since few men are wise enough to rule themselves, even fewer are wise enough to rule others." -Edward Abbey
AP Radios
Up to this point I have got everything to work except AP Radio Types. Not sure what is wrong, the graph just won't show up. I am running Cacti version 0.8.7b. When I run:
php /var/www/cacti/scripts/query_4400_APifType.php
I get:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/msql.so' - /usr/lib64/php/modules/msql.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Notice: Undefined offset: 1 in /var/www/cacti/scripts/query_4400_APifType.php on line 15
PHP Notice: Undefined offset: 2 in /var/www/cacti/scripts/query_4400_APifType.php on line 16
php /var/www/cacti/scripts/query_4400_APifType.php
I get:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/msql.so' - /usr/lib64/php/modules/msql.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Notice: Undefined offset: 1 in /var/www/cacti/scripts/query_4400_APifType.php on line 15
PHP Notice: Undefined offset: 2 in /var/www/cacti/scripts/query_4400_APifType.php on line 16
- Attachments
-
- 123.jpg (1.5 MiB) Viewed 8575 times
-
- Posts: 9
- Joined: Tue Oct 02, 2007 10:53 am
I have two controllers, is there a way to have the scripts check 2 controllers and combine the results? The APs won't always be connected to the same controller and this would give me an incomplete view of what's connected and how many clients there are. I've looked at the scripts, but I haven't done any templates and cacti scripts myself yet and I'm having trouble figuring out what I would need to do.
Thanks,
Thanks,
More scripts
More scripts - These ones poll a WLC for information regarding the stations associated to it.
The scripts return the values as seen below and graphs them - some are more useful than others. Currently using them to check EAP, protocol, cipher etc that our wireless clients are using.
Scripts exported from cacti 0.8.6j on W2003 - tested using snmp v2 with a WLC 4404 and a wism both running software 5.1.163.0
cacti_graph_template_cisco_wlc_station_status - bsnMobileStationStatus, 1.3.6.1.4.1.14179.2.1.4.1.9
0 : idle, 1 : aaaPending, 2 : authenticated, 3 : associated, 4 : powersave, 5 : disassociated, 6 : tobedeleted, 7 : probing, 8 : blacklisted
cacti_graph_template_cisco_wlc_station_authentication_algorithm - bsnMobileStationAuthenticationAlgorithm, 1.3.6.1.4.1.14179.2.1.4.1.19
0 : openSystem, 1 : sharedKey, 2 : unknown, 128 : openAndEap
cacti_graph_template_cisco_wlc_station_protocol - bsnMobileStationProtocol, 1.3.6.1.4.1.14179.2.1.4.1.25
1 : dot11a, 2 : dot11b, 3 : dot11g, 4 : unknown, 5 : mobile
cacti_graph_template_cisco_wlc_station_policy - bsnMobileStationPolicyType, 1.3.6.1.4.1.14179.2.1.4.1.30
0 : dot1x, 1 : wpa1, 2 : wpa2, 3 : wpa2vff, 4 : notavailable, 5 : unknown
cacti_graph_template_cisco_wlc_station_cipher - bsnMobileStationEncryptionCypher, 1.3.6.1.4.1.14179.2.1.4.1.31
0 : ccmpAes, 1 : tkipMic, 2 : wep40, 3 : wep104, 4 : wep128, 5 : none, 6 : notavailable, 7 : unknown
cacti_graph_template_cisco_wlc_station_eap_type - bsnMobileStationEapType, 1.3.6.1.4.1.14179.2.1.4.1.32
0 : eapTls, 1 : ttls, 2 : peap, 3 : leap, 4 : speke, 5 : eapFast, 6 : notavailable, 7 : unknown
cacti_graph_template_cisco_wlc_station_ccx - bsnMobileStationCcxVersion, 1.3.6.1.4.1.14179.2.1.4.1.33
0 : notSupported, 1 : ccxv1, 2 : ccxv2, 3 : ccxv3, 4 : ccxv4, 5 : ccxv5
To install - import templates into cacti and place corresponding php scripts in your cacti scripts folder.
cheers
andy
The scripts return the values as seen below and graphs them - some are more useful than others. Currently using them to check EAP, protocol, cipher etc that our wireless clients are using.
Scripts exported from cacti 0.8.6j on W2003 - tested using snmp v2 with a WLC 4404 and a wism both running software 5.1.163.0
cacti_graph_template_cisco_wlc_station_status - bsnMobileStationStatus, 1.3.6.1.4.1.14179.2.1.4.1.9
0 : idle, 1 : aaaPending, 2 : authenticated, 3 : associated, 4 : powersave, 5 : disassociated, 6 : tobedeleted, 7 : probing, 8 : blacklisted
cacti_graph_template_cisco_wlc_station_authentication_algorithm - bsnMobileStationAuthenticationAlgorithm, 1.3.6.1.4.1.14179.2.1.4.1.19
0 : openSystem, 1 : sharedKey, 2 : unknown, 128 : openAndEap
cacti_graph_template_cisco_wlc_station_protocol - bsnMobileStationProtocol, 1.3.6.1.4.1.14179.2.1.4.1.25
1 : dot11a, 2 : dot11b, 3 : dot11g, 4 : unknown, 5 : mobile
cacti_graph_template_cisco_wlc_station_policy - bsnMobileStationPolicyType, 1.3.6.1.4.1.14179.2.1.4.1.30
0 : dot1x, 1 : wpa1, 2 : wpa2, 3 : wpa2vff, 4 : notavailable, 5 : unknown
cacti_graph_template_cisco_wlc_station_cipher - bsnMobileStationEncryptionCypher, 1.3.6.1.4.1.14179.2.1.4.1.31
0 : ccmpAes, 1 : tkipMic, 2 : wep40, 3 : wep104, 4 : wep128, 5 : none, 6 : notavailable, 7 : unknown
cacti_graph_template_cisco_wlc_station_eap_type - bsnMobileStationEapType, 1.3.6.1.4.1.14179.2.1.4.1.32
0 : eapTls, 1 : ttls, 2 : peap, 3 : leap, 4 : speke, 5 : eapFast, 6 : notavailable, 7 : unknown
cacti_graph_template_cisco_wlc_station_ccx - bsnMobileStationCcxVersion, 1.3.6.1.4.1.14179.2.1.4.1.33
0 : notSupported, 1 : ccxv1, 2 : ccxv2, 3 : ccxv3, 4 : ccxv4, 5 : ccxv5
To install - import templates into cacti and place corresponding php scripts in your cacti scripts folder.
cheers
andy
- Attachments
-
- cacti cisco wlc station scripts.rar
- (30.74 KiB) Downloaded 386 times
Great work on these new scripts.
One thing of note. I had to change the CF from "LAST" to "Average" to get the graph templates to work for me.
One thing of note. I had to change the CF from "LAST" to "Average" to get the graph templates to work for me.
Cacti1 OS: CentOS 5.6 | 300+ devices
Cacti2 OS: CentOS 5.6 | 300+ devices
King of the Elves
Local Anarchists Union #427
"Anarchism is founded on the observation that since few men are wise enough to rule themselves, even fewer are wise enough to rule others." -Edward Abbey
Cacti2 OS: CentOS 5.6 | 300+ devices
King of the Elves
Local Anarchists Union #427
"Anarchism is founded on the observation that since few men are wise enough to rule themselves, even fewer are wise enough to rule others." -Edward Abbey
Who is online
Users browsing this forum: No registered users and 0 guests