[Solved]cisco WLC 4400 templates/scripts

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

Moderators: Developers, Moderators

Post Reply
User avatar
_raindrop18
Cacti User
Posts: 194
Joined: Thu Jan 29, 2009 5:52 pm
Location: US

[Solved]cisco WLC 4400 templates/scripts

Post by _raindrop18 »

I just download and imported WLC 4400 templates and setup, from http://docs.cacti.net/usertemplate:host:cisco4400
every thing goes fine and the graph created but at the end the result I got is "empty result" I did run the php script from command line on cacti server, everything is working (responded with data) but the graph is "NaN" the the log reported "ERROR: Empty result" any suggestion..if anyone use this templates.
example-
./php /opt/cacti/local/cactiE/scripts/Cisco_WLC_Station_Status.php 10.167.165.110 public 2

Result

stationidle:0 stationpending:0 stationauthenticated:0 stationassociated:3 stationpowersave:0 stationdisassociated:0 stationtobedeleted:0
stationprobing:0 stationblacklisted:0

as I said the graph is NaN

Thanks in advance.
P
Last edited by _raindrop18 on Thu Oct 08, 2009 4:51 pm, edited 1 time in total.
User avatar
_raindrop18
Cacti User
Posts: 194
Joined: Thu Jan 29, 2009 5:52 pm
Location: US

Solved

Post by _raindrop18 »

change cacti_snmp_walk to snmp_walk also change the data input method
<path_php_binary> -q <path_cacti>/scripts/Cisco_WLC_Station_Algorithm.php <hostname> <snmp_community> <snmp_version> now working like a charm. kudos for people put together this script!!! outstanding job!!!
ssletner
Posts: 24
Joined: Thu Oct 14, 2010 10:41 pm

Re: [Solved]cisco WLC 4400 templates/scripts

Post by ssletner »

I'm having problems with these templates as well. If I run the following:

php -q D:\AppServ\www\cacti\scripts\Cisco_WLC_Station_Status.php 10.34.254.129 public 2

I get the following output:

Warning: Missing argument 9 for cacti_snmp_walk(), called in D:\AppServ\www\cacti\scripts\Cisco_WLC_Station_Status.php on line 23 and defined in D:\AppServ\www\cacti\lib\snmp.php on line 264

Warning: Missing argument 10 for cacti_snmp_walk(), called in D:\AppServ\www\cacti\scripts\Cisco_WLC_Station_Status.php on line 23 and defined in D:\AppServ\www\cacti\lib\snmp.php on line 264

Notice: Undefined variable: context in D:\AppServ\www\cacti\lib\snmp.php on line 292
stationidle:0 stationpending:0 stationauthenticated:0 stationassociated:267 stationpowersave:0 stationdisassociated:0 stationtobedeleted:0 stationprobing:10 stationblacklisted:0

Any ideas? It looks like its pulling the information as you can see from the 'stationassociated:267' but because of the errors the graphs wont work.
funkey
Posts: 1
Joined: Wed Oct 12, 2011 2:39 am

Re: [Solved]cisco WLC 4400 templates/scripts

Post by funkey »

Thanks for this script guys! Cacti is so good!!

I'm using v0.8.6g so the Host Template won't import without complaining about the hash being incorrect version.

I've got the PHP script to work at command line but Cacti doesn't seem to be bringing in the output from it.

Is meant to be a run as a Data Query or brought in from a Data template?

I get this message when running Data Query in New Graphs section:

Warning: Variable passed to each() is not an array or object in /usr/share/cacti/site/lib/data_query.php on line 490

Warning: Cannot modify header information - headers already sent by (output started at /usr/share/cacti/site/lib/data_query.php:490) in /usr/share/cacti/site/graphs_new.php on line 45
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests