Welcome to MSDN Blogs Sign in | Join | Help

Enumerating Windows Event log manual reset monitors

Couple of days ago I saw a question about how can one find out the list of manual reset event log monitors in a management group. Given that this is a little bit tricky I decided to post a sample so that others could see how to do it as well. Attached is a powershell script that will dump a list of Windows Event log manual reset monitors. All you need to do in order to execute the script is just open up the OpsMgr command shell and type the path of the script (C:\GetManualResetEventLogMonitors.ps1).

 

Published Sunday, December 09, 2007 4:51 AM by Boris Yanushpolsky
Filed under:

Attachment(s): GetManualResetEventLogMonitors.zip

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# Free People Searches » Enumerating Windows Event log manual reset monitors

# Free People Searches » Enumerating Windows Event log manual reset monitors

# MSDN Blog Postings » Enumerating Windows Event log manual reset monitors

# re: Enumerating Windows Event log manual reset monitors

Sunday, December 09, 2007 9:05 AM by Anders Gothberg

Thx Boris.

# re: Enumerating Windows Event log manual reset monitors

Tuesday, December 11, 2007 10:08 AM by Torbjorn

Hi Boris,

I want to be able to find out if a monitor is manual reset from an alert, i.e. find out if an alert is created by an manual reset monitor.

I can not figure out if this doable. I do something like this:

$alert = get-alert | where {$_.Id -eq $alert_id}

$monitor = get-monitor -criteria "Id like $alert.MonitoringRuleId"

So now I know which monitor that created the alert. This works fine. But from here I cannot figure out how to check if this monitor is of manual reset type. GetType method does not give away if the monitor is manual reset.

I would appriciate the help!

Leave a Comment

(required) 
required 
(required) 

  
Enter Code Here: Required
 
Page view tracker