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.
I have been digging through the posts, but I have been able to resolve one lingering issues. I cannot add CPU graphs or aggregate CPU graphs after my upgrade to 0.8.7 and 0.8.7a.
I have verified my files against the ones posted in the sticky between the transition to 0.8.7a which basically have the updated .php and .xml files above. Here is the output listed from a verbose query:
+ Running data query [9].
+ Found type = '4 '[script query].
+ Found data query XML file at '/usr/share/cacti/resource/script_queries/host_cpu.xml'
+ XML file parsed ok.
+ Executing script for list of indexes '/usr/bin/php -q /usr/share/cacti/scripts/query_host_cpu.php 192.168.101.10 **** 2 index'
+ Executing script query '/usr/bin/php -q /usr/share/cacti/scripts/query_host_cpu.php 192.168.101.10 **** 2 query index'
+ Found item [hrProcessorFrwID='0'] index: 0
+ Found item [hrProcessorFrwID='1'] index: 1
+ Found item [hrProcessorFrwID='2'] index: 2
+ Found item [hrProcessorFrwID='3'] index: 3
+ Found data query XML file at '/usr/share/cacti/resource/script_queries/host_cpu.xml'
+ Found data query XML file at '/usr/share/cacti/resource/script_queries/host_cpu.xml'
+ Found data query XML file at '/usr/share/cacti/resource/script_queries/host_cpu.xml'
I can re-index just fine, but when I create the graphs, I get the following output:
+ Created graph: avapps2 - CPU Utilization - CPU|query_hrProcessorFrwID|
+ Created graph: avapps2 - CPU Utilization - CPU|query_hrProcessorFrwID|
+ Created graph: avapps2 - CPU Utilization - CPU|query_hrProcessorFrwID|
+ Created graph: avapps2 - CPU Utilization - CPU|query_hrProcessorFrwID|
This breaks the data source association and graph creation.
It looks like your issue might be slightly different, but using a Debian install and patching the install, I end up with your issue on a different box.
My production box returns the following from command line:
I'm still not getting anywhere with this issue. The install is on a Debian etch machine. However, cacti is manually installed.
As mentioned in earlier posts, I can index a single, dual, quad, or 8 processor machine. However, when I try to create the graphs, it doesn't seem to populate the correct information:
+ Created graph: *****-ex1 - CPU Utilization - CPU|query_hrProcessorFrwID|
+ Created graph: *****-ex1 - CPU Utilization - CPU|query_hrProcessorFrwID|
+ Created graph: *****-ex1 - CPU Utilization - CPU|query_hrProcessorFrwID|
+ Created graph: *****-ex1 - CPU Utilization - CPU|query_hrProcessorFrwID|
+ Created graph: *****-ex1 - CPU Utilization - CPU|query_hrProcessorFrwID|
+ Created graph: *****-ex1 - CPU Utilization - CPU|query_hrProcessorFrwID|
+ Created graph: *****-ex1 - CPU Utilization - CPU|query_hrProcessorFrwID|
+ Created graph: *****-ex1 - CPU Utilization - CPU|query_hrProcessorFrwID|
Notice: Undefined index: script_function in /usr/share/cacti/lib/utility.php on line 168
Notice: Undefined index: script_function in /usr/share/cacti/lib/utility.php on line 168
Notice: Undefined index: script_function in /usr/share/cacti/lib/utility.php on line 168
Notice: Undefined index: script_function in /usr/share/cacti/lib/utility.php on line 168
Notice: Undefined index: script_function in /usr/share/cacti/lib/utility.php on line 168
Notice: Undefined index: script_function in /usr/share/cacti/lib/utility.php on line 168
Notice: Undefined index: script_function in /usr/share/cacti/lib/utility.php on line 168
Notice: Undefined index: script_function in /usr/share/cacti/lib/utility.php on line 168
Notice: Undefined index: script_function in /usr/share/cacti/lib/utility.php on line 168
Notice: Undefined index: script_function in /usr/share/cacti/lib/utility.php on line 168
Notice: Undefined index: script_function in /usr/share/cacti/lib/utility.php on line 168
Notice: Undefined index: script_function in /usr/share/cacti/lib/utility.php on line 168
I did a fresh install on another box that is also running Debian etch. Everything is hand installed, so I'm not using the maintainer version. I imported the multi CPU graphs again and indexed a server, which now produced the numbered CPU graphs (0-3):
+ Created graph: ********** - CPU Utilization - CPU0
+ Created graph: ********** - CPU Utilization - CPU1
+ Created graph: ********** - CPU Utilization - CPU2
+ Created graph: ********** - CPU Utilization - CPU3
It seems that during imports of different versions of the CPU script, I managed to bork my data input query for snmp. Exporting from my new system and importing into the broken system fixed the graph creation. However, it wasn't until I rebuilt the poller cache that everything else was fixed.
php /usr/share/cacti/cli/rebuild_poller_cache.php and now all is well, including my Advanced Ping templates (which stemmed back to multiple cron entries with different user names)
I was tired of this.
And I in fact do not like using scripts if pure SNMP is all that's needed. That's why I decided to publish s PURE SNMP replacement of the CPU thingy. It's fast. It uses some nice features of cacti. And it works (at least for me).
See Scripts and Templates forum.
Reinhard