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.
MikaelS wrote:The device which has SNMP - Get Processor information doesn't have any datasource called like that.
You sure you've even added the data sources for a device to graph disk info? It *should* show up in the poller cache. If not, try clearing it.
MikaelS wrote: but it don't think I should be using the script_queries/host_disk.xml script anyway, right?
You can't manually execute a *.xml file for cacti. Only the script server files (ss_*) and normal script files. If you look inside the ss_host_disk.php file, you'll see all the arguments it takes, which is a pain to manually type out.
For this query, cacti actually (should be) using resource\script_server\host_disk.xml. Inside, see how the arg_prepend sends all the various arguments to the ss_host_disk.php file.
You mind posting an snmpwalk of a 'broken' device's partition table.
Next to the 'SNMP - Get Processor information' for a device, click on verbose query and paste the results. You do see the device's snmp info in the top right corner in cacti, right?
Here is the result from 'SNMP - Get Processor information';
+ Running data query [9].
+ Found type = '4 '[script query].
+ Found data query XML file at '/opt/statistics/resource/script_queries/host_cpu.xml'
+ XML file parsed ok.
+ Executing script for list of indexes '/usr/bin/php -q /opt/statistics/scripts/query_host_cpu.php xx.xx.xx.xx <hidden> 1 index'
+ Executing script query '/usr/bin/php -q /opt/statistics/scripts/query_host_cpu.php xx.xx.xx.xx <hidden> 1 query index'
+ Found item [hrProcessorFrwID='0'] index: 0
+ Found data query XML file at '/opt/statistics/resource/script_queries/host_cpu.xml'
+ Found data query XML file at '/opt/statistics/resource/script_queries/host_cpu.xml'
+ Found data query XML file at '/opt/statistics/resource/script_queries/host_cpu.xml'
+ Found data query XML file at '/opt/statistics/resource/script_queries/host_cpu.xml'
And yes, I do see the SNMP information from the host
/resource/script_queries/host_cpu.xml ? Looks like you've got an older cacti installation. Newer installs should be using /resource/script_server/host_cpu.xml. Read in the documentation site on how to change it over (I forget the exact link) to the PHP script server instead.
Actually, making sure all scripts use get script server data (index), breaks it. I changed the SNMP - Get Processor Information, followed all the steps from the Cacti Documentation, but it failed. Come to think of it, I have another script which I haven't used yet but I used for my old installation, which also uses get script server data (index). I tried it now, and it did not work. Seems as I have an issue with the get script server data (index) method.
The verbose query is incorrect. You have either an old (dated) XML file (say pointing to the scrip based), you poller cache has not been rebuild, or martians have taken over your computer.
Until your script query includes things like
DES and SHA separated by either colons or pipes, you are on the wrong track.
TheWitness
True understanding begins only when we realize how little we truly understand...