{"id":20127,"date":"2023-12-11T09:21:05","date_gmt":"2023-12-11T13:21:05","guid":{"rendered":"https:\/\/kevinjustin.com\/blog\/?p=20127"},"modified":"2023-12-14T10:46:59","modified_gmt":"2023-12-14T14:46:59","slug":"improving-scom-monitor-reset-logic","status":"publish","type":"post","link":"https:\/\/kevinjustin.com\/blog\/2023\/12\/11\/improving-scom-monitor-reset-logic\/","title":{"rendered":"Improving SCOM Monitor reset logic"},"content":{"rendered":"<figure id=\"attachment_20130\" aria-describedby=\"caption-attachment-20130\" style=\"width: 600px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2023\/12\/Faster.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-20130 size-full\" src=\"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2023\/12\/Faster.jpg\" alt=\"Faster - Improving SCOM Monitor reset logic\" width=\"600\" height=\"600\" srcset=\"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2023\/12\/Faster.jpg 600w, https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2023\/12\/Faster-150x150.jpg 150w, https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2023\/12\/Faster-300x300.jpg 300w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/a><figcaption id=\"caption-attachment-20130\" class=\"wp-caption-text\">Faster &#8211; Improving SCOM Monitor reset logic<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<p>My thanks to <a href=\"https:\/\/www.linkedin.com\/in\/aris-somatis-3a663b105\/\" target=\"_blank\" rel=\"noopener\">Aris Somatis<\/a> for his deep dive reviewing the packs with me, particularly new use cases.\u00a0 The PowerShell below builds on Scott Murr&#8217;s initial TechNet published logic from years back.\u00a0 Consequently, the reset logic provides a &#8216;manual intervention required&#8217; alerting\/monitoring system.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h2>Improving SCOM monitor reset logic<\/h2>\n<p>Calling the reset method has been a game changer for my customers &#8211; including operators, system and application owners!<\/p>\n<h4>Background<\/h4>\n<p>Scott&#8217;s reset logic, from SCOM2012, helped administrators reset unhealthy monitors where alerts may have been closed.\u00a0 Because Scott leveraged the ResetMonitoringState <a href=\"https:\/\/learn.microsoft.com\/en-us\/dotnet\/api\/microsoft.enterprisemanagement.monitoring.partialmonitoringobject.resetmonitoringstate?view=sc-om-dotnet-2019#microsoft-enterprisemanagement-monitoring-partialmonitoringobject-resetmonitoringstate(system-guid)\" target=\"_blank\" rel=\"noopener\">method<\/a>, the community gained a way to keep true health.\u00a0 Additionally, many administrators and engineers built custom management packs to provide solutions.\u00a0 Second, the addendum packs <a href=\"https:\/\/kevinjustin.com\/blog\/2023\/08\/17\/why-addendum-packs\/\" target=\"_blank\" rel=\"noopener\">blog<\/a> brought in more options &#8211; best practices, lessons from the field (and customers), and health model accurate alerting for what was really broken in the environment.\u00a0 Third,\u00a0 \u00a0 addressing &#8216;gaps&#8217; or &#8216;blind spots&#8217; from product teams.\u00a0 \u00a0As a result of NEW monitoring, the packs may include: rules\/monitors, datasource\/writeAction (DS\/WA) workflows, recovery tasks and automation, count logic monitors, overrides, discoveries, and groups.\u00a0 \u00a0 Thirdly, to take monitoring to the next level.\u00a0 To top that off, with very little\/NO cost compared to competitors!<\/p>\n<h4><\/h4>\n<h3>PowerShell code<\/h3>\n<p>Aris&#8217;s Age use case takes this even further.\u00a0 Using monitor age allows further analysis to dial down &#8216;monitor reset&#8217; to object is X days old.\u00a0 Comparatively, the 24-72 hour setup default is used in the addendums, so Age provides a second option.\u00a0 Third option can rely on SCOM&#8217;s built-in cleanup, but that&#8217;s typically 14-30 days.\u00a0 \u00a0Overall, flexibility is a good thing.<\/p>\n<p>&nbsp;<\/p>\n<p style=\"margin: 0in; font-family: Calibri; font-size: 11.0pt;\"># Specify age variable for your environment<\/p>\n<p style=\"margin: 0in; font-family: Calibri; font-size: 11.0pt;\">$Age = [DateTime](Get-Date).AddDays(-7)<\/p>\n<p>&nbsp;<\/p>\n<div>\n<div><\/div>\n<div><\/div>\n<\/div>\n<div><\/div>\n<div><\/div>\n<div>\n<h3>PowerShell code snippet<\/h3>\n<\/div>\n<p style=\"margin: 0in; font-family: Calibri; font-size: 11.0pt;\">First, the reset logic can pivot on the age requirement.\u00a0 Then, adjust the Age variable per requirements.\u00a0 Third, figure out which method applies to gather a unique list of classes, whether by partial string(s), or by management pack name(s).<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Set age variable (how long &#8216;OLD&#8217; monitors might be stale and need reset)<\/strong><\/p>\n<p style=\"margin: 0in; font-family: Calibri; font-size: 11.0pt;\"># Example sets $Age variable to 7 days ago (-7)<\/p>\n<p style=\"margin: 0in; font-family: Calibri; font-size: 11.0pt;\">$Age = [DateTime](Get-Date).AddDays(-7)<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Unpack two different ways to gather classes for monitors to reset<\/strong><\/p>\n<p style=\"margin: 0in; font-family: Calibri; font-size: 11.0pt;\"><span style=\"font-size: 11pt; font-style: italic; font-weight: 900;\"># When common string name exists in all classes<\/span><\/p>\n<p style=\"margin: 0in; font-family: Calibri; font-size: 11.0pt;\">Example DFS\/FileServices packs all have one of the three strings:<\/p>\n<p style=\"margin: 0in; font-family: Calibri; font-size: 11.0pt;\"><strong># DFS pack naming<\/strong><\/p>\n<p style=\"margin: 0in; font-family: Calibri; font-size: 11.0pt;\">$DFSClasses = @(Get-SCOMClass -Name &#8220;*FileServices*&#8221;; Get-SCOMClass -Name &#8220;*FileServer*&#8221;; Get-SCOMClass -Name &#8220;*DFS*&#8221; )<\/p>\n<p style=\"margin: 0in; font-family: Calibri; font-size: 11.0pt;\">$DFSClass = $DFSClasses | sort -property Name -uniq<\/p>\n<p style=\"margin: 0in; font-family: Calibri; font-size: 11.0pt;\"># Debug<\/p>\n<p style=\"margin: 0in; font-family: Calibri; font-size: 11.0pt;\">$DFSClass.Count<\/p>\n<p>&nbsp;<\/p>\n<p style=\"margin: 0in; font-family: Calibri; font-size: 11.0pt;\"><strong># Get AD classes &#8211; Microsoft.Windows.Server.AD.2016.Discovery, Microsoft.Windows.Server.AD.Library<\/strong><\/p>\n<p style=\"margin: 0in; font-family: Calibri; font-size: 11.0pt;\"><span style=\"color: #3366ff;\">$ADLibrary = Get-SCOMManagementPack -name &#8220;Microsoft.Windows.Server.AD.Class.Library&#8221;<\/span><\/p>\n<p style=\"margin: 0in; font-family: Calibri; font-size: 11pt; padding-left: 40px;\">#get-scomclass -ManagementPack $ADLibrary<\/p>\n<p style=\"margin: 0in; font-family: Calibri; font-size: 11pt;\"><span style=\"color: #3366ff;\">$ADMonitoring = Get-SCOMManagementPack -name &#8220;Microsoft.Windows.Server.AD.2016.Monitoring&#8221;<\/span><\/p>\n<p style=\"margin: 0in; font-family: Calibri; font-size: 11pt; padding-left: 40px;\">#get-scomclass -ManagementPack $ADMonitoring | fl DisplayName,Name,ID<\/p>\n<p style=\"margin: 0in; font-family: Calibri; font-size: 11pt;\"><span style=\"color: #3366ff;\">$ADDiscovery = Get-SCOMManagementPack -name Microsoft.Windows.Server.AD.2016.Discovery<\/span><\/p>\n<p style=\"margin: 0in; font-family: Calibri; font-size: 11pt; padding-left: 40px;\">#get-scomclass -ManagementPack $ADDiscovery | fl DisplayName,Name,ID<\/p>\n<p style=\"margin: 0in; font-family: Calibri; font-size: 11pt;\"># ADDS pack naming<\/p>\n<p style=\"margin: 0in; font-family: Calibri; font-size: 11pt;\"><span style=\"color: #3366ff;\">$ADDSClasses = @(Get-SCOMClass -ManagementPack $ADLibrary; Get-SCOMClass -ManagementPack $ADDiscovery; )<\/span><\/p>\n<p style=\"margin: 0in; font-family: Calibri; font-size: 11pt;\"># NOTE Excluded AD Monitoring pack as NO classes existed<\/p>\n<p style=\"margin: 0in; font-family: Calibri; font-size: 11pt;\">$ADDSClass = $ADDSClasses | sort -property Name -uniq<\/p>\n<p>&nbsp;<\/p>\n<p style=\"margin: 0in; font-family: Calibri; font-size: 11pt;\"># Debug count of unique classes<\/p>\n<p style=\"margin: 0in; font-family: Calibri; font-size: 11pt;\">$ADDSClass.Count<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h3>Reset monitor PowerShell screenshot<\/h3>\n<p>Download from GitHub <a href=\"https:\/\/github.com\/theKevinJustin\/SCOMMonitorReset\" target=\"_blank\" rel=\"noopener\">https:\/\/github.com\/theKevinJustin\/SCOMMonitorReset<\/a><\/p>\n<figure id=\"attachment_20171\" aria-describedby=\"caption-attachment-20171\" style=\"width: 1530px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2023\/12\/SCOM-Reset-PowerShell.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-20171\" src=\"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2023\/12\/SCOM-Reset-PowerShell.jpg\" alt=\"SCOM Reset PowerShell\" width=\"1530\" height=\"1066\" srcset=\"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2023\/12\/SCOM-Reset-PowerShell.jpg 1530w, https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2023\/12\/SCOM-Reset-PowerShell-1200x836.jpg 1200w, https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2023\/12\/SCOM-Reset-PowerShell-300x209.jpg 300w, https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2023\/12\/SCOM-Reset-PowerShell-768x535.jpg 768w, https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2023\/12\/SCOM-Reset-PowerShell-1024x713.jpg 1024w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a><figcaption id=\"caption-attachment-20171\" class=\"wp-caption-text\">SCOM Reset PowerShell<\/figcaption><\/figure>\n<pre><\/pre>\n<p>&nbsp;<\/p>\n<h2>Example PowerShell on HealthService resets<\/h2>\n<p><span style=\"color: #ff0000;\">NOTE debug logic enabled<\/span><\/p>\n<pre>0\r\nFound 0 unhealthy monitors for class Microsoft.SystemCenter.HealthServicesGroup\r\n1\r\nFound 1 unhealthy monitors for class Microsoft.SystemCenter.HealthServiceWatcher\r\n\r\nResetting Health State on ' + Microsoft.SystemCenter.HealthServiceWatcher:Microsoft.SystemCenter.AgentWatchersGroup;5e0\r\n4f804-8b71-6eb6-0101-dcbb58022498 + '\r\n\r\nGuid\r\n----\r\n0218d239-3d37-f9b1-75d2-6d52c2c7c0c1\r\n\r\n\r\n<\/pre>\n<h2><\/h2>\n<h2>Documentation\/Sources<\/h2>\n<div>Learn site SCOM SDK reset method 2016+ <a href=\"https:\/\/learn.microsoft.com\/en-us\/dotnet\/api\/microsoft.enterprisemanagement.configuration.managementpackmonitor?view=sc-sm-dotnet-2016\" target=\"_blank\" rel=\"noopener\">https:\/\/learn.microsoft.com\/en-us\/dotnet\/api\/microsoft.enterprisemanagement.configuration.managementpackmonitor?view=sc-sm-dotnet-2016<\/a> <a href=\"https:\/\/learn.microsoft.com\/en-us\/dotnet\/api\/microsoft.enterprisemanagement.monitoring.partialmonitoringobject.resetmonitoringstate?view=sc-om-dotnet-2019#microsoft-enterprisemanagement-monitoring-partialmonitoringobject-resetmonitoringstate(system-guid)\" target=\"_blank\" rel=\"noopener\">2019 link<\/a><\/div>\n<div>Learn site for ResetMonitoringState method <a href=\"https:\/\/learn.microsoft.com\/en-us\/dotnet\/api\/microsoft.enterprisemanagement.monitoring.partialmonitoringobject.resetmonitoringstate?view=sc-om-dotnet-2019#microsoft-enterprisemanagement-monitoring-partialmonitoringobject-resetmonitoringstate(system-guid)\" target=\"_blank\" rel=\"noopener\">https:\/\/learn.microsoft.com\/en-us\/dotnet\/api\/microsoft.enterprisemanagement.monitoring.partialmonitoringobject.resetmonitoringstate?view=sc-om-dotnet-2019#microsoft-enterprisemanagement-monitoring-partialmonitoringobject-resetmonitoringstate(system-guid)<\/a><\/div>\n<div>Building on Scott&#8217;s idea &#8211; (retired links)<\/div>\n<div style=\"padding-left: 40px;\">Original post https:\/\/sc.scomurr.com\/scom-2012-monitor-reset-cleaning-up-the-environment\/<\/div>\n<div style=\"padding-left: 40px;\">TechNet gallery download https:\/\/gallery.technet.microsoft.com\/SCOM-2012-Batch-reset-63a17534<\/div>\n<div style=\"padding-left: 40px;\">Alternate link https:\/\/gallery.technet.microsoft.com\/scriptcenter\/Auto-reset-script-for-d8b775ca<\/div>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; My thanks to Aris Somatis for his deep dive reviewing the packs with me, particularly new use cases.\u00a0 The PowerShell below builds on Scott Murr&#8217;s initial TechNet published logic from years back.\u00a0 Consequently, the reset logic provides a &#8216;manual intervention required&#8217; alerting\/monitoring system. &nbsp; &nbsp; Improving SCOM monitor reset logic Calling the reset method &hellip; <a href=\"https:\/\/kevinjustin.com\/blog\/2023\/12\/11\/improving-scom-monitor-reset-logic\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Improving SCOM Monitor reset logic&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,567,5,7,545,530],"tags":[840,839,765,310,838,342,714],"class_list":["post-20127","post","type-post","status-publish","format-standard","hentry","category-administration","category-authoring","category-best-practice","category-mp-management-pack","category-powershell","category-scom","tag-active-monitor","tag-age","tag-logic","tag-powershell","tag-reset-monitor","tag-scom","tag-script"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Improving SCOM Monitor reset logic - Kevin Justin&#039;s Blog<\/title>\n<meta name=\"description\" content=\"Improving Scott Murr&#039;s SCOM monitor reset logic - adding Age check, and reducing runtime from minutes to seconds!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/kevinjustin.com\/blog\/2023\/12\/11\/improving-scom-monitor-reset-logic\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Improving SCOM Monitor reset logic - Kevin Justin&#039;s Blog\" \/>\n<meta property=\"og:description\" content=\"Improving Scott Murr&#039;s SCOM monitor reset logic - adding Age check, and reducing runtime from minutes to seconds!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kevinjustin.com\/blog\/2023\/12\/11\/improving-scom-monitor-reset-logic\/\" \/>\n<meta property=\"og:site_name\" content=\"Kevin Justin&#039;s Blog\" \/>\n<meta property=\"article:published_time\" content=\"2023-12-11T13:21:05+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-14T14:46:59+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2023\/12\/Faster.jpg\" \/>\n<meta name=\"author\" content=\"WordPress Administrator\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"WordPress Administrator\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/2023\\\/12\\\/11\\\/improving-scom-monitor-reset-logic\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/2023\\\/12\\\/11\\\/improving-scom-monitor-reset-logic\\\/\"},\"author\":{\"name\":\"WordPress Administrator\",\"@id\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/#\\\/schema\\\/person\\\/3d7a90f4430bef43134eaa0a7e2cd508\"},\"headline\":\"Improving SCOM Monitor reset logic\",\"datePublished\":\"2023-12-11T13:21:05+00:00\",\"dateModified\":\"2023-12-14T14:46:59+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/2023\\\/12\\\/11\\\/improving-scom-monitor-reset-logic\\\/\"},\"wordCount\":633,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/2023\\\/12\\\/11\\\/improving-scom-monitor-reset-logic\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/12\\\/Faster.jpg\",\"keywords\":[\"active monitor\",\"age\",\"logic\",\"powershell\",\"reset monitor\",\"SCOM\",\"script\"],\"articleSection\":[\"Administration\",\"Authoring\",\"Best Practice\",\"MP Management Pack\",\"PowerShell\",\"SCOM\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/2023\\\/12\\\/11\\\/improving-scom-monitor-reset-logic\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/2023\\\/12\\\/11\\\/improving-scom-monitor-reset-logic\\\/\",\"url\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/2023\\\/12\\\/11\\\/improving-scom-monitor-reset-logic\\\/\",\"name\":\"Improving SCOM Monitor reset logic - Kevin Justin&#039;s Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/2023\\\/12\\\/11\\\/improving-scom-monitor-reset-logic\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/2023\\\/12\\\/11\\\/improving-scom-monitor-reset-logic\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/12\\\/Faster.jpg\",\"datePublished\":\"2023-12-11T13:21:05+00:00\",\"dateModified\":\"2023-12-14T14:46:59+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/#\\\/schema\\\/person\\\/3d7a90f4430bef43134eaa0a7e2cd508\"},\"description\":\"Improving Scott Murr's SCOM monitor reset logic - adding Age check, and reducing runtime from minutes to seconds!\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/2023\\\/12\\\/11\\\/improving-scom-monitor-reset-logic\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/2023\\\/12\\\/11\\\/improving-scom-monitor-reset-logic\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/2023\\\/12\\\/11\\\/improving-scom-monitor-reset-logic\\\/#primaryimage\",\"url\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/12\\\/Faster.jpg\",\"contentUrl\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/12\\\/Faster.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/2023\\\/12\\\/11\\\/improving-scom-monitor-reset-logic\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Improving SCOM Monitor reset logic\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/\",\"name\":\"Kevin Justin&#039;s Blog\",\"description\":\"Operational monitoring tools including System Center, Azure Monitor\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/#\\\/schema\\\/person\\\/3d7a90f4430bef43134eaa0a7e2cd508\",\"name\":\"WordPress Administrator\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fca865cc5df90a25ae9533b1d9dea567a78c7469dc3202a376c8d117a0eaea11?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fca865cc5df90a25ae9533b1d9dea567a78c7469dc3202a376c8d117a0eaea11?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fca865cc5df90a25ae9533b1d9dea567a78c7469dc3202a376c8d117a0eaea11?s=96&d=mm&r=g\",\"caption\":\"WordPress Administrator\"},\"sameAs\":[\"https:\\\/\\\/kevinjustin.com\"],\"url\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/author\\\/wordpress_admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Improving SCOM Monitor reset logic - Kevin Justin&#039;s Blog","description":"Improving Scott Murr's SCOM monitor reset logic - adding Age check, and reducing runtime from minutes to seconds!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/kevinjustin.com\/blog\/2023\/12\/11\/improving-scom-monitor-reset-logic\/","og_locale":"en_US","og_type":"article","og_title":"Improving SCOM Monitor reset logic - Kevin Justin&#039;s Blog","og_description":"Improving Scott Murr's SCOM monitor reset logic - adding Age check, and reducing runtime from minutes to seconds!","og_url":"https:\/\/kevinjustin.com\/blog\/2023\/12\/11\/improving-scom-monitor-reset-logic\/","og_site_name":"Kevin Justin&#039;s Blog","article_published_time":"2023-12-11T13:21:05+00:00","article_modified_time":"2023-12-14T14:46:59+00:00","og_image":[{"url":"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2023\/12\/Faster.jpg","type":"","width":"","height":""}],"author":"WordPress Administrator","twitter_card":"summary_large_image","twitter_misc":{"Written by":"WordPress Administrator","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/kevinjustin.com\/blog\/2023\/12\/11\/improving-scom-monitor-reset-logic\/#article","isPartOf":{"@id":"https:\/\/kevinjustin.com\/blog\/2023\/12\/11\/improving-scom-monitor-reset-logic\/"},"author":{"name":"WordPress Administrator","@id":"https:\/\/kevinjustin.com\/blog\/#\/schema\/person\/3d7a90f4430bef43134eaa0a7e2cd508"},"headline":"Improving SCOM Monitor reset logic","datePublished":"2023-12-11T13:21:05+00:00","dateModified":"2023-12-14T14:46:59+00:00","mainEntityOfPage":{"@id":"https:\/\/kevinjustin.com\/blog\/2023\/12\/11\/improving-scom-monitor-reset-logic\/"},"wordCount":633,"commentCount":0,"image":{"@id":"https:\/\/kevinjustin.com\/blog\/2023\/12\/11\/improving-scom-monitor-reset-logic\/#primaryimage"},"thumbnailUrl":"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2023\/12\/Faster.jpg","keywords":["active monitor","age","logic","powershell","reset monitor","SCOM","script"],"articleSection":["Administration","Authoring","Best Practice","MP Management Pack","PowerShell","SCOM"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/kevinjustin.com\/blog\/2023\/12\/11\/improving-scom-monitor-reset-logic\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/kevinjustin.com\/blog\/2023\/12\/11\/improving-scom-monitor-reset-logic\/","url":"https:\/\/kevinjustin.com\/blog\/2023\/12\/11\/improving-scom-monitor-reset-logic\/","name":"Improving SCOM Monitor reset logic - Kevin Justin&#039;s Blog","isPartOf":{"@id":"https:\/\/kevinjustin.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/kevinjustin.com\/blog\/2023\/12\/11\/improving-scom-monitor-reset-logic\/#primaryimage"},"image":{"@id":"https:\/\/kevinjustin.com\/blog\/2023\/12\/11\/improving-scom-monitor-reset-logic\/#primaryimage"},"thumbnailUrl":"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2023\/12\/Faster.jpg","datePublished":"2023-12-11T13:21:05+00:00","dateModified":"2023-12-14T14:46:59+00:00","author":{"@id":"https:\/\/kevinjustin.com\/blog\/#\/schema\/person\/3d7a90f4430bef43134eaa0a7e2cd508"},"description":"Improving Scott Murr's SCOM monitor reset logic - adding Age check, and reducing runtime from minutes to seconds!","breadcrumb":{"@id":"https:\/\/kevinjustin.com\/blog\/2023\/12\/11\/improving-scom-monitor-reset-logic\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kevinjustin.com\/blog\/2023\/12\/11\/improving-scom-monitor-reset-logic\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/kevinjustin.com\/blog\/2023\/12\/11\/improving-scom-monitor-reset-logic\/#primaryimage","url":"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2023\/12\/Faster.jpg","contentUrl":"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2023\/12\/Faster.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/kevinjustin.com\/blog\/2023\/12\/11\/improving-scom-monitor-reset-logic\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/kevinjustin.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Improving SCOM Monitor reset logic"}]},{"@type":"WebSite","@id":"https:\/\/kevinjustin.com\/blog\/#website","url":"https:\/\/kevinjustin.com\/blog\/","name":"Kevin Justin&#039;s Blog","description":"Operational monitoring tools including System Center, Azure Monitor","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/kevinjustin.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/kevinjustin.com\/blog\/#\/schema\/person\/3d7a90f4430bef43134eaa0a7e2cd508","name":"WordPress Administrator","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/fca865cc5df90a25ae9533b1d9dea567a78c7469dc3202a376c8d117a0eaea11?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/fca865cc5df90a25ae9533b1d9dea567a78c7469dc3202a376c8d117a0eaea11?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/fca865cc5df90a25ae9533b1d9dea567a78c7469dc3202a376c8d117a0eaea11?s=96&d=mm&r=g","caption":"WordPress Administrator"},"sameAs":["https:\/\/kevinjustin.com"],"url":"https:\/\/kevinjustin.com\/blog\/author\/wordpress_admin\/"}]}},"_links":{"self":[{"href":"https:\/\/kevinjustin.com\/blog\/wp-json\/wp\/v2\/posts\/20127","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kevinjustin.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kevinjustin.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kevinjustin.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kevinjustin.com\/blog\/wp-json\/wp\/v2\/comments?post=20127"}],"version-history":[{"count":29,"href":"https:\/\/kevinjustin.com\/blog\/wp-json\/wp\/v2\/posts\/20127\/revisions"}],"predecessor-version":[{"id":20175,"href":"https:\/\/kevinjustin.com\/blog\/wp-json\/wp\/v2\/posts\/20127\/revisions\/20175"}],"wp:attachment":[{"href":"https:\/\/kevinjustin.com\/blog\/wp-json\/wp\/v2\/media?parent=20127"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kevinjustin.com\/blog\/wp-json\/wp\/v2\/categories?post=20127"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kevinjustin.com\/blog\/wp-json\/wp\/v2\/tags?post=20127"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}