Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
Does this script get around the problems I experienced previously with reboots... it looks like the cisco 6500 routers would move the indexes around as to which cpu was for which card etc. My graphs for card "3" would be for card "5" after an IOS upgrade.
Still trying to work around this with some kind of poll of serial #'s for cards or card types in the module slots.
Anyone succesfully added this on cacti running on windows ?
I put the script in the right location, imported the template and everything seemed fine.
I could then add the template to a device and retrive the cpu to graph but then when cacti gets the value (using spine) i get this error:
unable to find/open c:inetpubwwwrootcactiscriptsblablabla.php
somewhere it seems to loose the / between the folders but i cant find anywhere to edit this....
Word of the wise to all who use this Cisco CPU script -- it's very inefficient! I had it running against 25 routers using the cmd.php poller.
My poller stats at that time:
SYSTEM STATS: Time:107.0256 Method:cmd.php Processes:8 Threads:N/A Hosts:16 HostsPerProcess:2 DataSources:815 RRDsProcessed:418
I removed the cisco cpu script/template and the data sources. Imported a script server cisco cpu script/template, re-created all the cpus for all the devices, PLUS I added a bunch of other snmp only queries for various routers. My system stats now:
SYSTEM STATS: Time:17.6975 Method:cmd.php Processes:8 Threads:N/A Hosts:16 HostsPerProcess:2 DataSources:1164 RRDsProcessed:601
That's a 600% speed improvement! Just imagine if I was polling dozens of devices, how big the performance impact would be. This cacti server isn't any wimp either: Dell 8-way 3.16Ghz Xeon, 16GB mem, etc.
I posted a new version of the CPU script with many significant enhancements. The biggest change is a switch from the expensive and slow script query interface to the persistent and fast script server interface. I also dropped the comma-separated parameters and switched to a colon-separated "bundle" for SNMP arguments, tightened up the array and variable management, added a lot more error checking, and otherwise did a complete rewrite of the script.
Due to the changes, the script and resource xml files need to be reinstalled and any data queries need to be reimported. However the existing graphs and data sources should continue to operate afterwards.
ehall wrote:
I've also moved the files to this page on my web server so that I can more easily maintain them. The memory files are located at this page.
Eric,
The link to download the memory template is broken.
php ss_cisco_cpu_usage.php asr1004:2:*****:::::::: query cpudesc
2:cpu 0/0
Notice: Undefined index: desc in /usr/share/cacti/site/scripts.old/ss_cisco_cpu_usage.php on line 675
3:
php ss_cisco_cpu_usage.php c12406:2:*****:::::::: query cpudesc
1:0/5/CPU0
Notice: Undefined index: desc in /usr/share/cacti/site/scripts.old/ss_cisco_cpu_usage.php on line 675
17:
Notice: Undefined index: desc in /usr/share/cacti/site/scripts.old/ss_cisco_cpu_usage.php on line 675
33:
Notice: Undefined index: desc in /usr/share/cacti/site/scripts.old/ss_cisco_cpu_usage.php on line 675
65:
Notice: Undefined index: desc in /usr/share/cacti/site/scripts.old/ss_cisco_cpu_usage.php on line 675
81: