I recently had the task of enabling monitoring of an Azure Stack Integrated System using System Center Operations Manager.
Below I will go through the process of how this is done and what to consider a long the way.
Firstly, RTFM Secondly, you probably donât need this blog post as the documentation for this process is spot on! https://docs.microsoft.com/en-us/azure/azure-stack/azure-stack-integrate-monitor
The SCOM bits (MP and Docco) can be found here: https://www.
WORK IN PROGRESS Editors Note: this is still a working document as my priorities have to be on other work right now, but in the interest of sharing I have made this available now⌠If you find any issues or errors let me know - thanks for reading!
There are many S2D build blogs out there and I donât want to just add to the list but given Iâm doing this build with SCVMM and SCOM integration I thought Iâd run through the additional steps.
In a recent project, the management were keen to see some dashboards and insights into their organizations shiny new infrastructure.
Whilst SCOM gives some great data and statistics, itâs not overly helpful in demonstrating the high level view to management out of the box.
This is where Microsoft Operations Management Suite (OMS)Â steps in..
Background: This engagement included a new Hyper-converged platform (Hyper-V and Storage Spaces Direct) managed and monitoring with System Center (SCVMM and SCOM), so we had a great foundation to light up OMS and some chosen solutions.
Hi there, I have been wanting to share my fun times had with the Capacity and Performance solution in OMS for a while now, but have struggled to find the time.. Luckily for you I found a few moments today to have another tinker and got a little over excited and extended past OMS, but onto PowerBI and an Android device..
So a quick run down on what weâll cover (at varying levels) in this post:
Found this one in my toolkit recently and thought Iâd share. Itâs a little old so the code could do with some optimizing..
What it does:
Prompts the script runner for a client number and then asks them to confirm the name for new management pack. If the operator types âyesâ (highly sophisticated coding) then a new management pack will be created with the desired naming convention
Our naming convention in this particular environment is to have all 3 client numbers at the beginning of the management pack name.
Along the same line as this post, the below will create an empty overrides management pack based on a source management pack and client number
These are meant for the SCOM operators to use for consistent management pack naming.
Enjoy Dan!
$ManagementServer = "SCOM01" $orgmanagementpackname = read-host "Enter Search Criteria" ### # Find the managementpacks which fit the filter documented in $orgmanagementpackname ### $managementpackslist = Get-SCOMManagementPack -ComputerName $ManagementServer |where{$.DisplayName -like "$orgManagementPackName" -and $.
So use this wiselyâŚ
This script will use Out-Gridview to prompt the operator for the management pack to disable the alerts for and the override management pack to save those overrides in.
Enjoy! Dan
First, the script to do this for all monitors:
Import-module operationsmanager $SCOMServer = "<SCOMServerName>" New-SCOMManagementGroupConnection -ComputerName $SCOMServer $MPSource = get-scommanagementpack -ComputerName $SCOMServer | where {$.Sealed -eq $True} | Out-GridView -Title "Select a single SOURCE Management Pack" -PassThru $MPOverride = get-scommanagementpack -ComputerName $SCOMServer | where {$.
Found this one in my toolkit recently and thought Iâd share. Itâs a little old so the code could do with some optimizing..
What it does:
Prompts the script runner for a client number and then asks them to confirm the name for new management pack. If the operator types âyesâ (highly sophisticated coding) then a new management pack will be created with the desired naming convention
Our naming convention in this particular environment is to have all 3 client numbers at the beginning of the management pack name.
Firstly, make sure you have:
Admin access to your SCOM environment
SCOM management servers are added to your Ops Inslights portal.
Enabled the SCOM Assessment solution
Then go to the SCOM assessment configuration tile
Download the PS1
I ran from one of my SCOM management servers
At this point it connects to the named MS
Press 1 to set the Run As account
This is where some might get stuck. You have to enter the display name of a run as account that is already in your Operations Manager deployment.
EDIT: an unofficial fix is appended below :)
Fast publishâŚ
So, if any of you are using SCOM 2016 and have recently deployed the console, you may be getting this error below:
An object of class ManagementPackFolder with ID On the sick client, you will find the following in event viewer
Essentially, itâs a clash locally with the SCSM (Service Manager) Console..
Uninstall SCSM and SCOM Console 2016 will work immediately.
How to create a custom service monitor and automatically restart it
For this little demo, we will be using the Print Spooler service and targeting Windows Operating System
This will target all version of Server and Client OS but I wonât go into rollups here
In SCOM Console
Authoring > Monitors > Create a Monitor > Unit Monitor
Take a look at the varying out of the box options, many different monitor types available.
Quick post
A client had an existing monitoring system and exported the subscriber address list to CSV.
They wanted some names updated to reflect the DC and existing name, also some subscribers had multiple addresses in the form of an array so I had to get a little creative with PowerShell.
The script I used is below:
$File = "C:\Temp\import.csv" $Subscribers = Import-CSV $file $Scomserver = "scomserver" ForEach ($Subscriber in $Subscribers) { $SubscriberName = $Subscriber.
Run this on any server that has the SCOM Console installed.
add-pssnapin "Microsoft.EnterpriseManagement.OperationsManager.Client"; new-managementGroupConnection -ConnectionString:scomserver.domain.com; set-location "OperationsManagerMonitoring::"; Set-DefaultSetting -Name HealthService\ProxyingEnabled -Value True Totally stole this from the SCOM aficionado - Kevin Holman. His post is here
Cheersâ Dan
Moving SCOM 2012 R2 operationsdatabase to SQL Cluster. Process derived from this TechNet article http://technet.microsoft.com/en-au/library/hh278848.aspx Quick overview of the environment Versioning of my environment: System Center Operations Manger 2012 R2 w/ Update Rollup 4 SQL Server 2012 SP1 CU8 Windows Server 2012 R2
Existing servers and role: OM01 - Management Server OM02 - Management Server OM03 - Management Server OMSDB\OMDB - Operations Database Server / SQL Server 2012 SP1 OMSDW\OMDW - Data Warehouse Server / SQL Server 2012 SP1
This is a fast publish!
We were working with WAP and had an issue on one of our deployments not getting usage information.
Never had this issue in previous deployments but identified that our SCOM DW SQL is on a Named Instance on this deployment.
The fix that worked for me with SQL Named instances to change the connection string to use âTrusted Connectionâ. My environment: SCOM MS Server = SCOM01.
Recently had a client request to monitor for WMI leaks and receive alerts when the WMI process starts to consume resources.
Obviously there are other methods for monitoring and/or reporting on this, but in environments without access to these tools or the freedom to apply hotfixes (Yes, I have a client s with these types of restrictions), this method is suitable to their needs.
Iâve blogged a performance rule here but if you want to receive an alert, below will achieve this for you.
Create a rule to view the memory usage of WMI process in Windows 2008/2008 R2 (and 2012/2012 R2) agent managed computers.
As described here by Kevin Holman, there is a known WMI (KB981314) leak in 2008 R2 and Win 7 operating systems.
For those who want a to monitor and alert for this, here is how to do it.
(Note: Obviously there are other methods for reporting on the presence of the hotfix but for those without the luxury, this will be a nice little help)
Just a quick note on how to enable agent proxy via PowerShell
Assumptions in this scenario:
SCOM 2012 R2 - UR3 Using Operations Manager Shell You want all Agents with proxy enabled Some basics:
Get-SCOMAgent
Letâs limit our scope..
Get-SCOMAgent | where {$.ProxyingEnabled -match $False}
Letâs enable the proxy for all listed agents
Get-SCOMAgent | where {$.ProxyingEnabled -match $False} | Enable-SCOMAgentProxy
Check the Agents again..
Get-SCOMAgent | where {$_.ProxyingEnabled -match $False}