Cisco Aironet RSSI Values

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

Moderators: Developers, Moderators

ibarrere
Posts: 12
Joined: Wed Sep 19, 2007 3:26 pm
Location: Seattle

Post by ibarrere »

Ok, I just edited the file... we'll see how it works. Thanks for the input, guys
ibarrere
Posts: 12
Joined: Wed Sep 19, 2007 3:26 pm
Location: Seattle

Post by ibarrere »

That worked! Thanks a lot :)

I'll post a screenshot or two once it starts looking cool...
Voiper99
Cacti User
Posts: 276
Joined: Thu Mar 01, 2007 5:43 pm
Location: Melbourne, Australia

Post by Voiper99 »

awesome, thanks for the feedback :) I think you are the first person to test and use my script (as per my previous comments, I haven't even used it yet :))
ibarrere
Posts: 12
Joined: Wed Sep 19, 2007 3:26 pm
Location: Seattle

Post by ibarrere »

Ahhh... I'm actually just using the perl one... :roll:

I forgot you had posted that php one, so I was a bit confused when you said:
Voiper99 wrote:If this is correct just replace this line:
echo "Client $client: $c";

With this:
echo "Client $client:$c";
since it didn't apply to the perl one, but I went ahead and made the editions that you suggested (just in a different format) to the perl one.

So in conclusion, I'm not sure if your php script works, but your (and shull's) suggestion to remove the space did in fact work. Thanks anyway, sorry I couldn't back up your script.
ibarrere
Posts: 12
Joined: Wed Sep 19, 2007 3:26 pm
Location: Seattle

Post by ibarrere »

Here are my data and graph templates (with support for up to 5 clients (easily expandable)) in case anybody wants them:
Attachments
aironetsignaldata.xml
Data template
(7.74 KiB) Downloaded 370 times
aironetsignalgraph.xml
Graph template
(10.83 KiB) Downloaded 390 times
Voiper99
Cacti User
Posts: 276
Joined: Thu Mar 01, 2007 5:43 pm
Location: Melbourne, Australia

Post by Voiper99 »

ibarrere wrote:Ahhh... I'm actually just using the perl one... :roll:

I forgot you had posted that php one, so I was a bit confused when you said:
Voiper99 wrote:If this is correct just replace this line:
echo "Client $client: $c";

With this:
echo "Client $client:$c";
since it didn't apply to the perl one, but I went ahead and made the editions that you suggested (just in a different format) to the perl one.

So in conclusion, I'm not sure if your php script works, but your (and shull's) suggestion to remove the space did in fact work. Thanks anyway, sorry I couldn't back up your script.
lol doh! How embarrassing :P Glad I could help anyways :) and thanks for your honesty.
jkukis
Posts: 29
Joined: Mon Sep 24, 2007 1:41 pm

Post by jkukis »

I tried importing the templates, when using graph debug mode I get this:

Code: Select all

RRDTool Command:

/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Cisco - Signal Strength" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="" \
--slope-mode \
LINE1:#FF0000:"client_0"  \
GPRINT::LAST:"current\:%8.2lf %s"  \
GPRINT::MAX:"maximum\:%8.2lf %s\n"  \
LINE1:#00FF00:"client_1"  \
GPRINT::LAST:"current\:%8.2lf %s"  \
GPRINT::MAX:"maximum\:%8.2lf %s\n"  \
LINE1:#FF00FF:"client_2"  \
GPRINT::LAST:"current\:%8.2lf %s"  \
GPRINT::MAX:"maximum\:%8.2lf %s\n"  \
LINE1:#CAF100:"client_3"  \
GPRINT::LAST:"current\:%8.2lf %s"  \
GPRINT::MAX:"maximum\:%8.2lf %s\n"  \
LINE1:#0000FF:"client_4"  \
GPRINT::LAST:"current\:%8.2lf %s"  \
GPRINT::MAX:"maximum\:%8.2lf %s" 

RRDTool Says:

ERROR: Not a valid vname: #FF0000 in line LINE1:#FF0000:client_0
Any ideas?
ibarrere
Posts: 12
Joined: Wed Sep 19, 2007 3:26 pm
Location: Seattle

Post by ibarrere »

Totally bumping this...

I finally got a second wireless client on my network here when my room mate got an iphone, so I was totally excited to get more than one lonely line being graphed. Unfortunately, it doesn't seem to work with more than one client!

I know it's kind of vague, but has anybody run into this issue before? Only seeing one line per graph? Some trick I'm missing?

Thanks
Voiper99
Cacti User
Posts: 276
Joined: Thu Mar 01, 2007 5:43 pm
Location: Melbourne, Australia

Post by Voiper99 »

Perhaps this will resolve your issue:

http://forums.cacti.net/post-111406.html#111406

Try removing the space and it should work. Let us know how you go.

Cheers,
ibarrere
Posts: 12
Joined: Wed Sep 19, 2007 3:26 pm
Location: Seattle

Post by ibarrere »

Yeah, I did that awhile ago.

The strange this is I'm getting the output in the exact same format for the two clients when I run the script manually:

Code: Select all

client_0:54
client_1:71
client_2:0
client_3:0
client_4:0
client_5:0
I think this is a fairly high-level problem with the graph template or something, not too strong when it comes to that. I'll keep looking around and reply if I manage to fix the problem.
Voiper99
Cacti User
Posts: 276
Joined: Thu Mar 01, 2007 5:43 pm
Location: Melbourne, Australia

Post by Voiper99 »

I see. Sorry my post didn't assist. I too am not too strong when it comes to the finer details of Cacti.
skinty
Posts: 41
Joined: Sat Aug 12, 2006 6:47 pm

Post by skinty »

Took me a little while to figure out, but things seem to be working correctly now.

I made adjustments to just about everything as I couldn't figure out where the issue was. The problem basically boiled down to missing chomp statement in the perl script, it seems there was some trailing spaces.

Also, I highly recommend checking out the CPU/Mem scripts posted here for something that is actually useful on a Aironet. http://forums.cacti.net/about11341.html

Update perl script goes in <cacti_dir>/scripts.
Attachments
rssi.pl
updated to account for APs with no associations. This will remove NaN's and populate with zero's until the AP is used.
(535 Bytes) Downloaded 331 times
cacti_graph_template_cisco_-_aironet_signal_strength.xml
(22.22 KiB) Downloaded 355 times
niobe
Cacti User
Posts: 228
Joined: Mon Mar 10, 2008 6:52 pm
Location: Australia

Average Client RSSI graph template and script

Post by niobe »

I have written a variation on this idea to take the AVERGAGE client RSSI and graph it. Graphing per MAC is no good for large deployments, so the aim here is to give you some indication about the placement and general service level on an AP.

Attached should be the script as well as two graph templates. One for average client RSSI and one for associated clients. There are adjustable HRULES for both graphs, currently set for a Cisco 1210. The HRULES indicate at what point service becomes degraded, below -72dBm and above 20 clients in this case.

The fixed scale of the graph allows you to scan hundreds of APs quickly for 'anything above the line'.

One final thing: the script requires TCL and Expect to be installed to work. Someone can write a Perl version if they feel it's necessary, but should be no problem for most people to install the required packages on your system.
Attachments
Number of Associated Clients
Number of Associated Clients
clients.png (30.27 KiB) Viewed 5161 times
Average Client RSSI
Average Client RSSI
avgrssi.png (26.29 KiB) Viewed 5161 times
avg_dot11_client_rssi.zip
Script (unzip it)
(1.13 KiB) Downloaded 240 times
cacti_graph_template_cisco_aironet_-_associated_clients.xml
Clients graph template
(13.36 KiB) Downloaded 338 times
cacti_graph_template_cisco_aironet_-_average_client_rssi.xml
Avg RSSI graph template
(9.59 KiB) Downloaded 291 times
niobe
Cacti User
Posts: 228
Joined: Mon Mar 10, 2008 6:52 pm
Location: Australia

Post by niobe »

Please see some new Cisco wireless templates on this post:
http://forums.cacti.net/viewtopic.php?p=145695
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests