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 a Qnap (Linux Nas) that draw correctly many graphs.
I wanted to add a n HDD Temperature graph but after 3 days I need help.
I use Cacti Version 0.8.7g
Update: Looking in the cacti log (DEBUG Mode) I saw this error:
WARNING: Result from CMD not valid. Partial Result: hdt1: hdt2: hdt3: hd
I search on the forum and some people said that the solution could be check the privileges or check the correct path.
So I set 755 the permission of all scripts (but in crontab the poller is launched by root)
and recheck the paths, I used:
- absolute paths
- the <> paths notation for the cacti paths
- absolute paths also for the interpreter
Every time I rebuild the poller cache but with no solution.
Besides I tried one of the preinstalled scripts (the perl load average) and it gives the same error.
What I have to check now?
giropizza wrote:
So I set 755 the permission of all scripts (but in crontab the poller is launched by root)
and recheck the paths, I used:
- absolute paths
- the <> paths notation for the cacti paths
- absolute paths also for the interpreter
If you execute your script from cron as same as poller does, what do you see in the results?
For example:
Ok, I found an error (snmpwalk needs the entire path).
Now I can see a line but it's always at 0.00 and with rrdtool I can se that the last.value seems fine (49)
I have to delete the rra file?
Besides I change counter to gauge, I have to recreate something?
>> I have to delete the rra file?
>> Besides I change counter to gauge, I have to recreate something?
Yes, even if you changed settings in data template, it doesn't affect existing RRD files.
You should delete it (=RRD file) and wait until next polling.
All seem right now, thank you very much, the problem is that qnap has a custom linux that every reboot reset any customization (one of them was the PATH variable in which I had the snmpwalk executable)
giropizza wrote:the problem is that qnap has a custom linux that every reboot reset any customization (one of them was the PATH variable in which I had the snmpwalk executable)