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
[Solved]cisco WLC 4400 templates/scripts
Moderators: Developers, Moderators
- _raindrop18
- Cacti User
- Posts: 194
- Joined: Thu Jan 29, 2009 5:52 pm
- Location: US
[Solved]cisco WLC 4400 templates/scripts
Last edited by _raindrop18 on Thu Oct 08, 2009 4:51 pm, edited 1 time in total.
- _raindrop18
- Cacti User
- Posts: 194
- Joined: Thu Jan 29, 2009 5:52 pm
- Location: US
Solved
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!!!
<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!!!
Re: [Solved]cisco WLC 4400 templates/scripts
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.
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.
Re: [Solved]cisco WLC 4400 templates/scripts
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
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
Who is online
Users browsing this forum: No registered users and 2 guests