{"id":2136,"date":"2011-05-18T13:32:12","date_gmt":"2011-05-18T12:32:12","guid":{"rendered":"https:\/\/www.peppercrew.nl\/index.php\/2011\/05\/maintenance-mode-report-in-scom-fixed\/"},"modified":"2011-05-19T15:13:37","modified_gmt":"2011-05-19T14:13:37","slug":"maintenance-mode-report-in-scom-fixed","status":"publish","type":"post","link":"https:\/\/ingmarverheij.com\/en\/maintenance-mode-report-in-scom-fixed\/","title":{"rendered":"Maintenance mode report in SCOM (fixed)"},"content":{"rendered":"<p>Object, like computers, in System Center Operations Manager (SCOM) can be placed in a maintenance mode. While the object is in maintenance mode no alerts will be generated, as expected.<\/p>\n<p>I wanted to see which objects have been placed in maintenance mode, unfortunately there is no default report supplied by Microsoft.<\/p>\n<p>Fortunately Alain C\u00f4te wrote a report, along with a stored procedure, which enables me the insights requested. The management pack, containing the report and stored procedure, can be downloaded here: <a href=\"https:\/\/systemcentercentral.com\/PackCatalog\/PackCatalogDetails\/tabid\/145\/indexid\/70867\/Default.aspx#comment-1275\">Maintenance Mode History Report Management Pack<\/a><\/p>\n<p>There is one instruction missing in the documentation, additional permissions are required to run the stored procedure required by the report. Without the permissions the following error is displayed:<\/p>\n<p><a class=\"thickbox\" href=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2011\/05\/image25.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;\" title=\"Query execution failed for data set 'OperationsManagerDW'\" src=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2011\/05\/image_thumb25.png\" border=\"0\" alt=\"Query execution failed for data set 'OperationsManagerDW'\" width=\"505\" height=\"52\" \/><\/a><\/p>\n<p><!--more--><\/p>\n<p>If you execute the report via a webpage, for instance on the reporting server, you whould get the following error:<\/p>\n<p><a class=\"thickbox\" href=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2011\/05\/image26.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;\" title=\"The EXECUTE permission was denied on the object 'SearchMaintMode', database 'OperationsManagerDW', schema 'dbo'.\" src=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2011\/05\/image_thumb26.png\" border=\"0\" alt=\"The EXECUTE permission was denied on the object 'SearchMaintMode', database 'OperationsManagerDW', schema 'dbo'.\" width=\"507\" height=\"31\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>So the resolution to the problem is fairly easy, give the Datawarehouse Read Account EXECUTE permissions on the object&#8217; SearchMaintMode&#8217;. This can be done following these steps:<\/p>\n<p>1. Open Microsoft SQL Server Managemend Studio;<br \/>\n2. Connect to the SQL server hosting the OperationsManagerDW database;<br \/>\n3. Browse to DatabasesOperationsManagerDWProgrammabilityStored Procedures&#8217;;<br \/>\n4. Open the properties of the SP &#8216;dbo.SearchMaintMode&#8217;;<br \/>\n5. Select the page &#8216;Permission&#8217; (on the left);<br \/>\n6. Click Search;<br \/>\n7. Search your DRA account (for instance SVC_SCOM_DRA);<br \/>\n8. Grant the permission &#8216;Execute&#8217; (third row, first checkbox);<br \/>\n9. Okay, you&#8217;re done!<\/p>\n<p><a class=\"thickbox\" href=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2011\/05\/image27.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;\" title=\"image\" src=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2011\/05\/image_thumb27.png\" border=\"0\" alt=\"image\" width=\"170\" height=\"277\" \/><\/a><a class=\"thickbox\" href=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2011\/05\/image28.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;\" title=\"image\" src=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2011\/05\/image_thumb28.png\" border=\"0\" alt=\"image\" width=\"309\" height=\"277\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>Ingmar Verheij<\/p>","protected":false},"excerpt":{"rendered":"<p>Object, like computers, in System Center Operations Manager (SCOM) can be placed in a maintenance mode. While the object is in maintenance mode no alerts will be generated, as expected. I wanted to see which objects have been placed in maintenance mode, unfortunately there is no default report supplied by Microsoft. Fortunately Alain C\u00f4te wrote [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-container-style":"default","site-container-layout":"default","site-sidebar-layout":"default","disable-article-header":"default","disable-site-header":"default","disable-site-footer":"default","disable-content-area-spacing":"default","footnotes":""},"categories":[311],"tags":[284,285,286,235],"class_list":["post-2136","post","type-post","status-publish","format-standard","hentry","category-system-center-operations-manager-scom","tag-maintenance-mode","tag-query-failed-for-data-set-operationsmanagerdw","tag-report","tag-scom"],"_links":{"self":[{"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/posts\/2136","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/comments?post=2136"}],"version-history":[{"count":5,"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/posts\/2136\/revisions"}],"predecessor-version":[{"id":2574,"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/posts\/2136\/revisions\/2574"}],"wp:attachment":[{"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/media?parent=2136"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/categories?post=2136"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/tags?post=2136"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}