I have a USB temperature sensor running on a Debian machine and I want to add it to PRTG using an SSH script sensor. I am sure this question has been asked a million times before and I have spent an hour reading through other threads but haven't been quite able to get my head around it.
I can run a command on the Debian machine that simply outputs a result in Celsius, from the command line it looks like this:
root@dubs:~# temper-poll -c 20.0 root@dubs:~#
All I want to do is to have PRTG graph the result, in which this case is 20.0 From various reading it seems I have to write a script that includes exit codes as well, which I am not really able to completely understand. Some other posts have suggested I need to script it with an XML output and use the SSH Advanced sensor, so I am a little confused.
Can anyone please give me any tips on how I can achieve this?