Cisco cpus and memory pools -- update November 11, 2010
Moderators: Developers, Moderators
Re: Cisco cpus and memory pools -- update April 26 2009
Thanks for the patch. I've made the fix as well as corrected a couple of other minor problems. I also updated the graph template to use overlays instead of stacked area plots.
Hello,
it seems that CPU script/template does not work for 0.8.7f and 0.8.7g.
Here the verbose query output:
After that I had tried to execute the script via cli with the same result. I tied to capture the snmp traffic via tcpdump and bingo, for all the queries above there is no snmp communication between the server and the router.
This is only a problem for new devices, the older ones are working(that means that a "php /var/www/cacti/scripts/ss_cisco_cpu_usage.php XXXXXXX:2:bSNMPro:::::::161:5000 get onemin 1" works fine.
Is it possible to fix this problem?
Regards,
dbee
it seems that CPU script/template does not work for 0.8.7f and 0.8.7g.
Here the verbose query output:
Code: Select all
+ Running data query [18].
+ Found type = '6 '[script query].
+ Found data query XML file at '/var/www/cacti/resource/script_server/cisco_cpu.xml'
+ XML file parsed ok.
+ Executing script for list of indexes '/usr/bin/php -q /var/www/cacti/scripts/ss_cisco_cpu_usage.php XXXXXXX:2:bSNMPro:::::::161:5000 index'
+ Executing script query '/usr/bin/php -q /var/www/cacti/scripts/ss_cisco_cpu_usage.php XXXXXXX:2:bSNMPro:::::::161:5000 query cpuDevice'
+ Found item [cpuDevice=' No CPU data was returned from SNMP'] index: FATAL
+ Executing script query '/usr/bin/php -q /var/www/cacti/scripts/ss_cisco_cpu_usage.php XXXXXXX:2:bSNMPro:::::::161:5000 query cpuName'
+ Found item [cpuName=' No CPU data was returned from SNMP'] index: FATAL
+ Executing script query '/usr/bin/php -q /var/www/cacti/scripts/ss_cisco_cpu_usage.php XXXXXXX:2:bSNMPro:::::::161:5000 query cpuDesc'
+ Found item [cpuDesc=' No CPU data was returned from SNMP'] index: FATAL
+ Found data query XML file at '/var/www/cacti/resource/script_server/cisco_cpu.xml'
+ Found data query XML file at '/var/www/cacti/resource/script_server/cisco_cpu.xml'
+ Found data query XML file at '/var/www/cacti/resource/script_server/cisco_cpu.xml'
+ Found data query XML file at '/var/www/cacti/resource/script_server/cisco_cpu.xml'
This is only a problem for new devices, the older ones are working(that means that a "php /var/www/cacti/scripts/ss_cisco_cpu_usage.php XXXXXXX:2:bSNMPro:::::::161:5000 get onemin 1" works fine.
Is it possible to fix this problem?
Regards,
dbee
Re: Cisco cpus and memory pools -- update November 11, 2010
I've uploaded a new version of the CPU template that is compatible with 0.8.7g
http://www.eric-a-hall.com/software/cacti-cisco-cpu/
http://www.eric-a-hall.com/software/cacti-cisco-cpu/
-
- Posts: 48
- Joined: Sun Apr 12, 2009 7:51 pm
Re: Cisco cpus and memory pools -- update November 11, 2010
Sorry to bring up an old thread. Is this still being maintained? I used the CPU script on a router I have, and it initially seemed to work. However with no changes in cacti, the router configuration or the IOS version it has stopped and reports the following events:
+ Executing script for list of indexes '"/usr/bin/php" -q /var/www/cacti/scripts/ss_cisco_cpu_usage.php <hostname>:2:<community>:::::::161:500 index' Index Count: 1
+ Found index: FATAL: No CPU data was returned from SNMP
+ Executing script query '"/usr/bin/php" -q /var/www/cacti/scripts/ss_cisco_cpu_usage.php <hostname>:2:<community>:::::::161:500 query cpuDevice'
+ Found item [cpuDevice=' No CPU data was returned from SNMP'] index: FATAL
+ Executing script query '"/usr/bin/php" -q /var/www/cacti/scripts/ss_cisco_cpu_usage.php <hostname>:2:<community>:::::::161:500 query cpuName'
+ Found item [cpuName=' No CPU data was returned from SNMP'] index: FATAL
+ Executing script query '"/usr/bin/php" -q /var/www/cacti/scripts/ss_cisco_cpu_usage.php <hostname>:2:<community>:::::::161:500 query cpuDesc'
+ Found item [cpuDesc=' No CPU data was returned from SNMP'] index: FATAL
Any ideas on why this would just stop like that? I'm running .8.8.8a. TIA.
+ Executing script for list of indexes '"/usr/bin/php" -q /var/www/cacti/scripts/ss_cisco_cpu_usage.php <hostname>:2:<community>:::::::161:500 index' Index Count: 1
+ Found index: FATAL: No CPU data was returned from SNMP
+ Executing script query '"/usr/bin/php" -q /var/www/cacti/scripts/ss_cisco_cpu_usage.php <hostname>:2:<community>:::::::161:500 query cpuDevice'
+ Found item [cpuDevice=' No CPU data was returned from SNMP'] index: FATAL
+ Executing script query '"/usr/bin/php" -q /var/www/cacti/scripts/ss_cisco_cpu_usage.php <hostname>:2:<community>:::::::161:500 query cpuName'
+ Found item [cpuName=' No CPU data was returned from SNMP'] index: FATAL
+ Executing script query '"/usr/bin/php" -q /var/www/cacti/scripts/ss_cisco_cpu_usage.php <hostname>:2:<community>:::::::161:500 query cpuDesc'
+ Found item [cpuDesc=' No CPU data was returned from SNMP'] index: FATAL
Any ideas on why this would just stop like that? I'm running .8.8.8a. TIA.
Who is online
Users browsing this forum: No registered users and 1 guest