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.
+ Running data query [9].
+ Found type = '6 '[script query].
+ Found data query XML file at '/usr/local/share/cacti/resource/script_server/host_cpu.xml'
+ XML file parsed ok.
+ Executing script for list of indexes '/usr/local/bin/php -q /usr/local/share/cacti/scripts/ss_host_cpu.php 192.168.1.2 11 2:161:500:1:10:public:::MD5::DES: index'
+ Executing script query '/usr/local/bin/php -q /usr/local/share/cacti/scripts/ss_host_cpu.php 192.168.1.2 11 2:161:500:1:10:public:::MD5::DES: query index'
+ Found data query XML file at '/usr/local/share/cacti/resource/script_server/host_cpu.xml'
+ Found data query XML file at '/usr/local/share/cacti/resource/script_server/host_cpu.xml'
+ Found data query XML file at '/usr/local/share/cacti/resource/script_server/host_cpu.xml'
As you can see there is no CPU's listed but running this same command in a shell I get the CPU's listed as below
Yes the community is the same for all hosts, its different from the post for security reasons and its all alphabetical characters, no numbers or symbols.
They are a mixture of capitals and lower case characters though.
When this happens, you can check it the Version of the agent. If it's in linux and using net-snmp , try the command "sudo snmpd -v". Check if this is newer than 5.4.X.Y; if so, it may have changed the way the agent net-snmp reports the cpu per user..
You can try the data query I just uploaded (check my posts), and see if you got rows from it; then you can use the data sources to fill a graph.
Good Luck!
tbsh wrote:Hi,
I'm seeing a weird problem in cacti, we have a cacti server running that is monitoring multiple hosts and only one host is affected by this problem.
The problem is, for this host we can't graph any of the CPU Utilization. I've done some debugging but this is where I'm stuck.
From the cacti interface when I click on (Verbose Query) next to SNMP - Get Processor Information I get the following output.
+ Running data query [9].
+ Found type = '6 '[script query].
+ Found data query XML file at '/usr/local/share/cacti/resource/script_server/host_cpu.xml'
+ XML file parsed ok.
+ Executing script for list of indexes '/usr/local/bin/php -q /usr/local/share/cacti/scripts/ss_host_cpu.php 192.168.1.2 11 2:161:500:1:10:public:::MD5::DES: index'
+ Executing script query '/usr/local/bin/php -q /usr/local/share/cacti/scripts/ss_host_cpu.php 192.168.1.2 11 2:161:500:1:10:public:::MD5::DES: query index'
+ Found data query XML file at '/usr/local/share/cacti/resource/script_server/host_cpu.xml'
+ Found data query XML file at '/usr/local/share/cacti/resource/script_server/host_cpu.xml'
+ Found data query XML file at '/usr/local/share/cacti/resource/script_server/host_cpu.xml'
As you can see there is no CPU's listed but running this same command in a shell I get the CPU's listed as below
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/net-snmp_disk.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.2021.9.1.1'
+ No SNMP data returned
But if I query the same OID from the command line on the same machine I get:
Jun 2 13:36:20 mork snmpd[25035]: Received SNMP packet(s) from UDP: [host.ip]:51982
Jun 2 13:41:19 mork snmpd[25035]: Connection from UDP: [host.ip]:38556
Jun 2 13:41:19 mork snmpd[25035]: Received SNMP packet(s) from UDP: [host.ip]:38556
...when I run the query from the command line, while nothing of the sort shows up in the log when I attempt the verbose query from within cacti.