I have a hardware sensor (reading real time temperature) which out put to a file Either TXT (also CSV) 12,34.13,2014-10-17 23:58:28 13,34.38,2014-10-17 23:58:40 14,34.75,2014-10-17 23:59:16 15,34.88,2014-10-17 23:59:26 16,35.00,2014-10-17 23:59:36 17,35.13,2014-10-17 23:59:46 18,35.13,2014-10-17 23:59:49 19,35.13,2014-10-17 23:59:52
Index,Temperature,Date Time
I would like the Temperature to be monitored in PRTG. Index is not needed.
I tried to use Logfile Content Check Sensor or File Content Sensor, but both does not seems to be what i want.
Is there someone here who have done this before?
Much appreciated for all your time. Cheers!
Dear congkai88
If the file content sensor is not sufficient for your case, please write a custom script and use it via the Exe/Script or Exe/Script Advanced sensor.
That script would need to parse the text file, extract the values needed and format them fulfilling the PRTG Exe/Script format specifications. The format is described within PRTG itself, menu Setup / PRTG API, tab "Custom Sensors".
Exemplary custom sensor scripts are provided with the PRTG installation, subfolder "Custom Sensors".
Oct, 2014 - Permalink