I have one problem using cacti, which might be caused by my low knowledge about cacti. Maybe someone has a hint for me.
I want to display the temperature in cacti. Considering the fact that the temperature needs to be fetched by a complex script via ssh etc. etc. all work is already done. This means that the final temperatur is already written at the file /tmp/output_dht22_temperatur.
So all I did was to create a "Data Input Method" and add "cat /tmp/output_dht22_temperatur" to the input string.
Unfortunately I am not able to get any result. I only see in the logs the following error message "WARNING: Result from CMD not valid. Partial Result: U "
When I run the cat-command directly in a bash I receive the following output.
Code: Select all
cat /tmp/output_dht22_temperatur
17.3
I already checked if there are no printable characters within the content that could cause the problem but there is no non printable character.
Code: Select all
cat -A /tmp/output_dht22_temperatur
17.3$
BR Mandro