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

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

Is it possible for a change of file contents to Alert, not just Trigger 'change' Notification

Votes:

0

Your Vote:

Up

Down

Hi

I need to monitor a file on a Windows machine and have it Alert if the contents of the file changes, eg. an executable that has been modified.

The File Sensor, with its Specific "Monitor File Content", works perfectly EXCEPT I want the sensor to generate an Alert when this is triggered, not just the "Change Notification".

As the sensor is not generating an Alert the email sent when I use an Email Notification Template is Green with a note saying file changed. Not the Red I am hoping for.

I thought maybe I could setup a Notification Template using a HTTP Action to feedback to the Sensor a simulate.htm API call using the %sensorid. However, this does not work. I am not sure why, as there does not seem to be any errors logged that I can see. So don't know if it is a permissions issue, or my API URL syntax is incorrect, or something else.

So my main question is, How do you override a Change Trigger to make it an Alert?

Cheers Jim

alert file-sensor sensor

Created on Nov 11, 2021 1:29:00 AM by  jimpyecss (1) 1



3 Replies

Votes:

0

Your Vote:

Up

Down

Hello,

the change trigger only sends the notification and cannot be changed to a down status. The API call however should work if put correctly as HTTP action.

Does that URL work if you use it manually in the browser to put the sensor to a simulated error status?

Created on Nov 12, 2021 8:07:04 PM by  Arne Seifert [Paessler Support]



Votes:

0

Your Vote:

Up

Down

Arne

Thanks for your response.

Yes, when I try the URL in a browser it works by generating a simulated Alert.

However, if I use incognito mode of the browser it says I need to authenticate. Obviously picking up my authenticated status from another tab when not using incognito mode. So do I need to setup a user that has permission to run the API so the call in the Change Trigger can also authenticate?

Also does the %sensorid work within the change trigger HTTP Action, or would I need to hardcode the sensor's ID. When testing in the browser I have of course had to use the real sensor ID and not a variable.

Cheers Jim

Created on Nov 14, 2021 9:22:00 PM by  jimpyecss (1) 1



Votes:

0

Your Vote:

Up

Down

Hello Jim,

the %sensorid placeholder should be replaced if used as HTTP action.

That call however does neet authentication provided, meaning the &username= and &passhash= parameters in order to work as HTTP actio.

Created on Nov 15, 2021 5:24:50 PM by  Arne Seifert [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.