Updated Cisco Wireless controller host template

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

Moderators: Developers, Moderators

User avatar
Instigater
Cacti User
Posts: 141
Joined: Mon Dec 13, 2004 5:14 pm
Location: Jurmala, Latvia

Updated Cisco Wireless controller host template

Post by Instigater »

Inspired by this thread I improved it and added more graphing parameters.

Put Cisco_WLC_Radios.xml ir resource/script_server
All PHP files in scripts folder
Import cacti_host_template_cisco_wlc_-_4400.xml using web interface.

Enjoy! Pictures tell more that words!
Attachments
wlc.zip
(57.8 KiB) Downloaded 1139 times
utilization.jpg
utilization.jpg (88.08 KiB) Viewed 10988 times
stations.jpg
stations.jpg (144.78 KiB) Viewed 10988 times
protocol.jpg
protocol.jpg (126.04 KiB) Viewed 10988 times
noise24.jpg
noise24.jpg (181.63 KiB) Viewed 10988 times
Last edited by Instigater on Thu May 13, 2010 2:45 am, edited 3 times in total.
User avatar
Instigater
Cacti User
Posts: 141
Joined: Mon Dec 13, 2004 5:14 pm
Location: Jurmala, Latvia

Post by Instigater »

More pictures!
Attachments
noise5.jpg
noise5.jpg (203.7 KiB) Viewed 10987 times
mem.jpg
mem.jpg (74.95 KiB) Viewed 10987 times
interference24.jpg
interference24.jpg (174.94 KiB) Viewed 10987 times
interference5.jpg
interference5.jpg (192.36 KiB) Viewed 10987 times
clients.jpg
clients.jpg (85.7 KiB) Viewed 10987 times
User avatar
Instigater
Cacti User
Posts: 141
Joined: Mon Dec 13, 2004 5:14 pm
Location: Jurmala, Latvia

Post by Instigater »

And Data Query view!
Attachments
create.JPG
create.JPG (106.78 KiB) Viewed 10982 times
User avatar
egarnel
Cacti Pro User
Posts: 708
Joined: Thu Nov 21, 2002 8:55 am
Location: Austin, TX

Post by egarnel »

Thanks!
These are awesome!
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
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Very nice.

Please consider adding it to http://docs.cacti.net/templates after reading http://docs.cacti.net/templates.guidelines
User avatar
egarnel
Cacti Pro User
Posts: 708
Joined: Thu Nov 21, 2002 8:55 am
Location: Austin, TX

Post by egarnel »

I would like to redo it for FCC (US) channels if that is OK.

I see the channels in cacti_host_template_cisco_wlc_-_4400.xml, Cisco_WLC_Radios.php and Cisco_WLC_Radios.xml

Are there any other areas that I would need to tweak?

Thanks,

Eric
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
User avatar
Instigater
Cacti User
Posts: 141
Joined: Mon Dec 13, 2004 5:14 pm
Location: Jurmala, Latvia

Post by Instigater »

The better way would be adding missing channels to scripts and making region based graph/data templates.

http://en.wikipedia.org/wiki/List_of_WLAN_channels

Like:
"Noise 2.4Ghz EU"
"Noise 2.4Ghz US"
"Noise 2.4Ghz JP"

Also the work involved in 5Ghz range tamplating will be enormous.

The main problem could be test base as noone would be willing to change country settings in their WLCs.

If we can cooperate I suggest that I make updated base scripts.
You make a copy of date and graph templates (do not edit the ones I provided as they will have the same hash) and testing for US and I do merging in one package.
Is there anyone from Israel, Turkey and Far East willing to contribute?
User avatar
egarnel
Cacti Pro User
Posts: 708
Joined: Thu Nov 21, 2002 8:55 am
Location: Austin, TX

Post by egarnel »

it is going to be a few weeks, got some work & training coming up. I will see what I can cobble together along the way
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
spoonman
Cacti User
Posts: 305
Joined: Tue May 03, 2005 8:54 am
Location: GA

Post by spoonman »

Any ideas????

/usr/local/php/bin/php -q /usr/local/apache/htdocs/cacti/scripts/Cisco_WLC_Station_Protocol.php 172.17.17.7 ******* 2

Warning: Missing argument 9 for cacti_snmp_walk(), called in /usr/local/apache/htdocs/cacti/scripts/Cisco_WLC_Station_Protocol.php on line 23 and defined in /usr/local/apache/htdocs/cacti/lib/snmp.php on line 227

Warning: Missing argument 10 for cacti_snmp_walk(), called in /usr/local/apache/htdocs/cacti/scripts/Cisco_WLC_Station_Protocol.php on line 23 and defined in /usr/local/apache/htdocs/cacti/lib/snmp.php on line 227

Notice: Undefined variable: context in /usr/local/apache/htdocs/cacti/lib/snmp.php on line 244
stationdot11a:24 stationdot11b:8 stationdot11g:26 stationdot11n24:0 stationdot11n5:0 stationunknownprotocol:0 stationmobile:0
SG-NETSTAT:/usr/local/apache/htdocs/cacti/scripts#



Log file results

Log File [Total Lines: 1 - All Items Shown]
05/24/2010 01:45:04 PM - SPINE: Poller[0] Host[129] DS[1536] SCRIPT: /usr/local/php/bin/php -q /usr/local/apache/htdocs/cacti/scripts/Cisco_WLC_Station_Protocol.php 172.17.17.7 ******* 2, output: U
User avatar
egarnel
Cacti Pro User
Posts: 708
Joined: Thu Nov 21, 2002 8:55 am
Location: Austin, TX

Post by egarnel »

disregard this, I answered too soon...

comment out line 19, but now the script is snmp v1, v2c

on line 24 add an '@' in front of cacti_snmp_walk...

also use dos2unix or vi to remove all the ^M
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
spoonman
Cacti User
Posts: 305
Joined: Tue May 03, 2005 8:54 am
Location: GA

Post by spoonman »

I got all my scripts working...it seems in snmp.php there are quite a few variables called and in these WLC scripts they are not used so i added a few more indexes into each script...my errors were missing argument 9 and 10.....

in each script there is a line similar to this...
$stationstatus = reindex(cacti_snmp_walk($hostname, $snmp_community, $bsnMobileStationStatus, $snmp_version, "", "", 161, 1000));


I added 2 more blank indexes next to the original like this to fill 9 and 10

$stationstatus = reindex(cacti_snmp_walk($hostname, $snmp_community, $bsnMobileStationStatus, $snmp_version, "", "", "", "", 161, 1000));

I had to modify just about everyone to get them all to work....
Great graphs for sure...
User avatar
egarnel
Cacti Pro User
Posts: 708
Joined: Thu Nov 21, 2002 8:55 am
Location: Austin, TX

Post by egarnel »

That fixed it. must be specific to OS snmp implementation then.The original script works fine in CentOS, but not freeBSD. Your fixed script works under freeBSD.

Thanks
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
spoonman
Cacti User
Posts: 305
Joined: Tue May 03, 2005 8:54 am
Location: GA

Post by spoonman »

I'm running Debian 2.6.18.dfsg.1-13etch4 ....no telling why there would be a difference....NET-SNMP version: 5.4.1

Thanks
User avatar
Instigater
Cacti User
Posts: 141
Joined: Mon Dec 13, 2004 5:14 pm
Location: Jurmala, Latvia

Post by Instigater »

Could you show me your updated scripts, please?
spoonman
Cacti User
Posts: 305
Joined: Tue May 03, 2005 8:54 am
Location: GA

Post by spoonman »

Instigater....the only change I made to all scripts was listed above..

$snmp_version, "", "", "", "", 161, 1000));

In each script had this line and I added 2 more "", "", empty items due to my error i was getting.

I can add the file if you still want???

Thanks
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest