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

Can sensor messages be used in Notifications .exe as a parameter

Votes:

0

Hi,

For example:

Using Windows Event Logs sensor, filter for certain events, when it finds those events fire off a Notification which will run a powershell script, is it possible to use the last sensor message as a parameter for that script?

If so, since the sensor might return more than one event. Will they all be in the same sensor message?

Thanks

notifications powershell windows-event-log

Created on Jul 8, 2016 4:14:56 PM



1 Reply

Votes:

0

Simply use %lastmessage to use the message that was shown when the state changed :)

Created on Jul 11, 2016 10:20:57 AM by  Stephan Linke [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.