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


Event log filtering via custom script

Votes:

0

Your Vote:

Up

Down

I would like to be able to exclude certain event IDs from event sensor counts. I'm aware it is not possible with the standard event log sensor provided, and that Paessler has provided an "as is" script previously.

(https://kb.paessler.com/en/topic/15693-how-can-i-check-the-windows-event-log-using-extended-filter-options)

I'd rather not use vbscript as I'm now more familiar with Powershell.

My question is, is it possible for me to provide a Powershell script to use in PRTG instead? If so, how does PRTG handle the running of the script: - where should output from the script be sent to in order for PRTG to process the result - what is the correct output format to send to PRTG? - where must the script reside? On PRTG server? On each node to be monitored?

Thanks.

custom-script-exe event-log wmi

Created on May 23, 2018 9:17:45 AM by  jnc4a (0) 1



1 Reply

Votes:

0

Your Vote:

Up

Down

Hi there,

Here's another one based on Powershell, feel free to adjust it to your needs.

For using a script in a sensor you either need an EXE/Script (expects one return value and optional message) or EXE/Script Advanced sensor (can process several return values and display them in dedicated channels). Details about how the returned result(s) need to look like are also available inside PRTG in "Setup | PRTG API | Custom Sensors".

By the way, in the current version of the WMI Eventlog Sensor has an include/exclude switch for each filter category, though it can only include or exclude for one category or phrased differently: you can't apply and include and exclude filter at the same time for for event-ids like "Include id 1234 but exclude 5678".

Kind regards,

Erhard

Created on May 23, 2018 2:06:51 PM by  Erhard Mikulik [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.