{"id":215,"date":"2007-08-28T11:19:34","date_gmt":"2007-08-28T09:19:34","guid":{"rendered":"http:\/\/contoso.se\/blog\/?p=215"},"modified":"2007-08-28T20:51:44","modified_gmt":"2007-08-28T18:51:44","slug":"get-rule-id","status":"publish","type":"post","link":"https:\/\/contoso.se\/blog\/?p=215","title":{"rendered":"Get-Rule -ID (v2)"},"content":{"rendered":"<p>If you have a rule or monitor\u00c2\u00a0that are incorrect configure you can end up with a event like the one below.<\/p>\n<p><code>Event Type:\u00c2\u00a0Error<br \/>\nEvent Source:\u00c2\u00a0Health Service Modules<br \/>\nEvent Category:\u00c2\u00a0None<br \/>\nEvent ID:\u00c2\u00a010102<br \/>\nDescription:<br \/>\nIn PerfDataSource, could not resolve counter incorrectObject, incorrectCount, incorrectInstance. Module will be unloaded.<br \/>\nOne or more workflows were affected by this.<br \/>\nWorkflow name: MomUIGeneratedRulebe73b15420934af6ac89a227094c0ffb<br \/>\nInstance name: DC01<br \/>\nInstance ID: {0367F246-11C3-0AA4-583B-6819AB40434E}<br \/>\nManagement group: Contoso<br \/>\n<\/code><\/p>\n<p>With only the information in the local event it can be difficult for you to troubleshoot it. To get more information about,\u00c2\u00a0in this case about a\u00c2\u00a0rule, you can first run a SQL quert in your OperationsManager database<\/p>\n<p>SELECT * FROM Rules WHERE RuleName = &#8216;MomUIGeneratedRulebe73b15420934af6ac89a227094c0ffb&#8217;<\/p>\n<p>You will then get a lot of information about the rule,\u00c2\u00a0copy the string in the RuleID field, and then start Command Shell. In Command Shell run the Get-Rule\u00c2\u00a0command, for example\u00c2\u00a0Get-Rule -Id FA5958CE-1EC8-A723-541A-5A1B2D48B67D<\/p>\n<p>This command will return all information about this rule, for example DisplayName. You can then easy find the rule in the Operations Console and modify it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you have a rule or monitor\u00c2\u00a0that are incorrect configure you can end up with a event like the one below. Event Type:\u00c2\u00a0Error Event Source:\u00c2\u00a0Health Service Modules Event Category:\u00c2\u00a0None Event ID:\u00c2\u00a010102 Description: In PerfDataSource, could not resolve counter incorrectObject, incorrectCount, incorrectInstance. Module will be unloaded. One or more workflows were affected by this. Workflow name: &hellip; <a href=\"https:\/\/contoso.se\/blog\/?p=215\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[19],"tags":[],"_links":{"self":[{"href":"https:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/posts\/215"}],"collection":[{"href":"https:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/contoso.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=215"}],"version-history":[{"count":0,"href":"https:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/posts\/215\/revisions"}],"wp:attachment":[{"href":"https:\/\/contoso.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=215"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/contoso.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=215"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/contoso.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=215"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}