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

Problem with file monitor, can't get it to clear when condition no longer present

Votes:

0

I have set up a file monitor for a log file created by a script I wrote. I found this thread: https://kb.paessler.com/en/topic/12003-is-it-possible-to-monitor-a-text-log-file-with-prtg

But the problem I have is that I can't get the monitor to go back to normal state after it has triggered. I have set it to only send the latest lines, but once it has found a line with the text I'm looking for, the monitor goes to a warning state and stays there, even after it has read lines in that do not contain the target text.

I need the monitor to trigger once when it sees an error and then return to normal when it has seen non-error lines go into the log file.

Is this possible?

Regards, Malcolm.

file-monitor not-clearing prtg

Created on May 5, 2017 3:35:55 AM



3 Replies

Votes:

0

Hi there,

Did you already try the option Only transmit to PRTG new lines at the end of the file (default, BETA)? If the new lines do not contain the string anymore, the sensor will change the status back to green.

Best regards, Felix

Created on May 5, 2017 10:12:12 AM by  Felix Saure [Paessler Support]



Votes:

0

From my post...

> I have set it to only send the latest lines, but once it has found a line with the text I'm looking for, the monitor goes to a warning state and stays there, even after it has read lines in that do not contain the target text.

Created on May 7, 2017 9:57:56 PM



Votes:

0

Hello,

Sorry for missing this part in your question. Please enable the "Write sensor result to disk (Filename: "Result of Sensor [ID].txt")" options in the settings of the sensor and forward the results to [email protected] for further analysis. The logs will be stored in the data directory of PRTG, by default this is:

C:\ProgramData\Paessler\PRTG Network Monitor\Logs (Sensors)

Please also attach a screenshot of the complete settings page of this file content sensor.

Best regards, Felix

Created on May 9, 2017 8:06:10 AM by  Felix Saure [Paessler Support]




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.