I've written the following script to monitor the temperature of my Raspberry PI CPU:
tempc=$(vcgencmd measure_temp | egrep -o '[0-9]*\.[0-9]*') tempf=$(echo "scale=2; 1.8 *$tempc + 32" | bc) printf 0:"$tempf":message sleep 1
However it continues to return the error:
PRTG could not run the script or the output could not be parsed (122.54:message ). (code: PE129)
I've tried removing the "Message" part and it gives me the following error:
Response not well-formed: "0:121.64 " (code: PE132)
What am I doing wrong?