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

WMI Query returned no recors

Votes:

0

Hi,

i just wanted to set up a sensor using the following WMI Script:

SELECT * FROM Win32_NTLogEvent WHERE Logfile ='System' AND EventCode = '10010'

The problem ist, that wen using this query, sensor is always down, regardless the number of rows returned, but I want to have it in state ok, if no rows are returned!

Is there a possibility to set up a sensor, that only goes "down" when one or more row is returned, or do I have to use a powershell script (this is what I want to avoid in the first place!)

eventlog powershell wmi-custom-sensor

Created on Jul 2, 2015 7:40:09 AM



1 Reply

Votes:

0

The problem is that the WMI Custom sensor doesn't work with counts. But you might want to try my historic windows events sensor :) Does exactly what you want. Everything ready at your hands, you only need to install it.

Created on Jul 3, 2015 11:25:51 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.