What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags

View all Tags

Read text file in local server



Hello! I would like to add a sensor to read value from file in local server.

I try with FILE CONTENT, but I can not add it (I need credentials). I do not know how to set up credentials.

I have txt file ( ht41.txt ) on raspberry pi 3 server. The file is locally accessible without any password on : and contains a temperature value: " 23.1 " in this txt file is only this three number...

How add this value to PRTG ?

Thankyou for help !

file hrping temperature

Created on Oct 24, 2017 6:59:06 AM

4 Replies




The simplest way would be to use our "HTTP Content" Sensor. This sensor monitors a numerical value returned by an HTTP request. What you have to consider is that the returned value must be placed between square brackets, e.g. [23.1] instead of the plain value. Are you able to adjust the text file accordingly?

Please find more information about setting up the "HTTP Content" Sensor here: https://www.paessler.com/manuals/prtg/http_content_sensor

Created on Oct 25, 2017 8:12:52 AM by  Andreas Günther [Paessler Support]



Hi ! I try with HTTP Content ( before i make test.txt file with square brackets ) and work. Is there another way ? My files have no square brackets, only float numbers... Is it possbile for me for duplicate all files with new one with brackets, but this is last solution

Thank you for help !


Created on Oct 25, 2017 6:18:19 PM



Hi again,

I would suggest to create a simply PHP script that reads the values from the *.txt file and puts brackets around the value.

Please note that you need to change the URL to the PHP script instead of the adress of the txt file in the sensor's settings.

Best Regards

Created on Oct 26, 2017 12:32:13 PM by  Andreas Günther [Paessler Support]

Last change on Oct 26, 2017 12:32:54 PM by  Andreas Günther [Paessler Support]



Ok, thankyou....

this means... no go nowhere , without bracket :)

Regards !

Created on Oct 26, 2017 3:56:58 PM

Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.