Management Pack for the SCOM 2012 Maintenance Mode Scheduler
I’ve been working on a SCOM management pack during my spare time over the last couple of weeks. This management pack provides some basic monitoring for the SCOM 2012 Maintenance Mode Scheduler Version 2 developed by Tim McFadden (http://www.scom2k7.com/scom-2012-maintenance-mode-scheduler-2/).
The purpose of this MP solution is to help this web-based maintenance mode scheduler integrate better within SCOM. The solution contains 2 management pack files. The following items are included:
Class definitions and discoveries for the SCOM 2012 Maintenance Mode Scheduler.
The monitoring MP defines 2 classes. a Microsoft.Windows.ComputerRole based class called “SCOM 2012 Maintenance Mode Scheduler”, which has many properties defined representing various application settings.
There is also an unhosted class called “SCOM 2012 Maintenance Mode Scheduler Event Collector”. This class runs an event collection rule which collects the new schedule jobs creation events even when the Maintenance Mode Scheduler computer is in maintenance mode.
Automatically delete any finished maintenance mode schedules
A rule runs once a day and executes a script to scan through all Windows Scheduled Tasks created by the maintenance mode scheduler and deletes any tasks that does not have a Next Run Time (i.e. tasks that only runs once and it has already be executed). For auditing purposes, when deleting each old (finished) task, an event is also written to both SCOM operational and Data Warehouse databases.
The purpose of this rule is to eliminate the needs for manual clean-up of old scheduled tasks created by the maintenance mode scheduler.
Event Collection rule for new schedule job creation events (Event ID 711)
When the Maintenance Mode Scheduler is configure to write auditing events to Windows event log, a event collection rule can be utilized to collect these events and store them in SCOM databases.
Monitor the credential of SCOM Data Access Account configured in the maintenance mode scheduler.
A monitor that checks if the credential of the SCOM Data Access Account configured in SCOM 2012 Maintenance Mode Scheduler is still valid. This is to ensure SCOM operators get notified if the Data Access account password has been changed, or the account has been locked out, disabled or deleted.
Monitor if the SCOM Data Access Account has local administrator privilege on the computer hosting the maintenance mode scheduler.
A monitor that checks if the SCOM Data Access Account configured in SCOM 2012 Maintenance Mode Scheduler has local administrator privilege on the computer hosting the scheduler. Windows local administrator access is required to create Windows Scheduled task.
Console task to launch the SCOM 2012 Maintenance Mode Scheduler web site using the default web browser.
New scheduler jobs event report
Maintenance Mode Scheduler dashboard (Provided by the SCOM 2012 Maintenance Mode Scheduler Dashboard management pack).
This dashboard contains:
- Maintenance Mode Scheduler state widget
- PowerShell Grid widget that lists new schedule jobs events
- PowerShell Web Browser widget that displays the Maintenance Mode Scheduler web page.
Maintenance Mode Scheduler State view
New Jobs Event View
Deleted Jobs Event view
I’d like to thank Tim McFadden for producing such a good maintenance mode tool for SCOM 2012, and also the valuable feedbacks and suggestions provided for this management pack.
For me, while I was writing this MP, I’ve accomplished few of my “firsts”:
- First time writing scripts for IIS (as this is a web based application).
- First time writing reports in VSAE (I have to say for me, it is much easier than using old Authoring console)
- First time using the new PowerShell widgets from the SCOM 2012 R2 UR2 updates (well, they’ve only just come out).
So I was really enjoying it, although it took a lot longer than what I expected (due to the IIS scripting challenges I had).
I hope this management pack would help the community to better adopt and integrate the SCOM 2012 Maintenance Mode Scheduler into their SCOM 2012 environments.
The Management packs and documentation can be downloaded HERE. Please make sure you read the documentation before importing the MPs. there are few pre-requisites for the MPs.
Lastly, as always, please feel free to contact me if you have issues / questions / suggestions.
- Active Directory (1)
- Azure (25)
- DNS (1)
- Hyper-V (5)
- Microsoft Exchange (1)
- MVP (3)
- OMS (48)
- Others (30)
- Power BI (7)
- PowerShell (109)
- SC Orchestrator (4)
- SCCM (44)
- SCDPM (1)
- SCOM (180)
- SCSM (3)
- SCVMM (5)
- SharePoint (1)
- SMA (31)
- SQL Server (1)
- TY Consulting (1)
- Uncategorized (2)
- VBScript (1)
- Visual Studio (1)
- Windows (5)
Blogs I Follow
- Adin Ermie
- Aidan Finn
- Alexandre Verkinderen
- Bob Cornelissen
- Cameron Fuller
- Christopher Keyaert
- Damian Flynn
- Daniele Grandini
- David O’Brien
- Dieter Wijckmans
- Flemming Riis
- Jakob Gottlieb Svendsen
- James Bannan
- James Van Den Berg
- Lee Berg
- Kevin Greene
- Kristian Nese
- Marcel Zehner
- Marnix Wolf
- Raymond Chou
- Pete Zerger
- Stanislav Zhelyazkov
- Stefan Roth
- Steve Beaumont
- Steve Buchanan
- Thomas Maurer