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

File txt on linux



Good evening,

I have the following situation: I have a script that generates an output prtg.txt for exemple:

"2:2 error while compressing file"

How do i monitor a txt file with the following output?

case of failure:

"2:2 error while compressing file"

case of sucess:

"0:0 file upload with success"

bash file prtg shared txt

Created on Jul 3, 2018 9:12:23 PM

Last change on Jul 4, 2018 10:33:45 AM by  Luciano Lingnau [Paessler]

1 Reply



Hello Thiago,
we appreciate your contact.

You need to create an SSH script that PRTG will run on the target system and print that output to the console when it runs. This is the sensor:

You can find further details about the API for custom sensors on the following URL or within your PRTG's web-interface under Setup > PRTG API.

Best Regards,
Luciano Lingnau [Paessler Support]

Created on Jul 4, 2018 10:36:51 AM by  Luciano Lingnau [Paessler]

Last change on Jul 4, 2018 10:37:10 AM by  Luciano Lingnau [Paessler]

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.