New Question
 
 
PRTG Network Monitor

Intuitive to Use.
Easy to manage.

200.000 administrators have chosen PRTG to monitor their network. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free PRTG
Download >>

 

What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general. You are invited to get involved by asking and answering questions!

Learn more

 

Top Tags


View all Tags


File txt on linux

Votes:

0

Your Vote:

Up

Down

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 by  thandrade830 (0) 1

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



1 Reply

Votes:

0

Your Vote:

Up

Down

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 Support]

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



Please log in or register to enter your reply.


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.