Operations Manager

Operations Manager Mail Notification

A while back Tao over at http://blog.tyang.org release a nice PowerShell script to help create nice mail notifications for Operations Manager. Me and my good friend Mattias over at http://onelehmus.com/ found some things we wished where in the script and we also found an issue with the link to the web console.

Since then I also found this post https://blogs.msdn.microsoft.com/tysonpaul/2014/08/04/scom-enhanced-email-notification-script-version-2-1/ with a newer version of the same script but for some reason the formatting has been changed from the console look a like to a table based mail and I really like the initial formatting by Tao that makes the email look like the console information most of us are used to looking at.

Setup

For detailed information on how to set this up please visits Tao’s initial post here http://blog.tyang.org/2012/08/16/scom-enhanced-email-notification-script-version-2/

So here is what has been changed:

WebConsole Link

The web console link now only shows up if there is a web console installed and configured and looks like this taking you straight to the alert.

WebLink

The web link is extracted from the SDK the same way other settings are gathered.

Knowledge article links

The next thing we wanted to change was that in several alerts knowledgebase articles there are links to external resources for further information or debugging. Since the rest of the mail is a HTML based email making those links clickable would be really nice.

This makes them look a bit like this.

ExternalResources

Knowledge article language

As a last thing we added the option to specify which languages the knowledge article will appear in. You can the select the language code for the one you one or specify ALL to receive all available languages.

If you want all available languages the command line would then look something like this

PowerShell.exe -Command "& '"E:\Script\SCOMMail\SCOMEnhancedEmailNotification.ps1"'" -alertID '$Data/Context/DataItem/AlertId$' -Recipients @('HelpDesk;HelpDesk@viamonstra.com') –Languages ALL

If you want to specify the languages use the language code for each language you want to receive knowledge articles for like this

PowerShell.exe -Command "& '"E:\Script\SCOMMail\SCOMEnhancedEmailNotification.ps1"'" -alertID '$Data/Context/DataItem/AlertId$' -Recipients @('HelpDesk;HelpDesk@viamonstra.com') –Languages ENU

CommandLine

The script can be downloaded from here https://1drv.ms/f/s!ArAh2CEqOjRkkflr0QtNbAmOdF3uSQ

Hope this helps you get improve the information in your email alerts.

 

/Peter

Advertisements

Azure Operation Insights – New Intelligence Packs

Recently Microsoft relased two new Intelligence packs for Operational Insights.

The two new packs are Active Directory Assesment and Security and Audit.
Check these out to recieve information about active accounts, AD recommendations and more.

Enabling these are easy, log on to your azure insights account and click on the Intelligence Pack button.

For each of the Intelligence packs you want to install, klick add and OK and you are all set to get some new data.
Please note that depending on the pack you have installed, gathering of the required data may take up to 48 hours.

azureinsights

System Center 2012 R2 – Cumulative Update 5

It’s that time again, upgrade time. Nothing quite like it. Will something break? Will everything work?
Well as normal you should start planning and upgrading to CU5 for System Center 2012 R2 products.

Read more about each products in the links below.

Operations Manager More information
Virtual Machine Manager More information
Data Protection Manager More Information
Service Manager More information

I have already upgraded Operations Manager and Virtual Machine Manager and everything is still going strong so now it is your turn happy upgrading and leave a comment in the section below if something breaks or if you want to share that everything just works.

Connecting VMM and Operations Manager

When building a fabric domain most want to connect Virtual Machine Manager and Operations Manager to get alerts and information. However many seem to fail with this due to not using the correct credentials.

First off you need to download and import the SQL MP for OpsMgr. They have been removed from the catalog and can now be found here: http://www.microsoft.com/en-us/download/details.aspx?id=10631 Download, extract and import them into OpsMgr.

Next we need a service account with Admin privileges in OpsMgr. Create the account and add the account to an AD group and add the AD group to the OpsMgr Admins. While you are in the process of creating accounts we will need another account that OpsMgr will use to connect to VMM. This account does NOT need any privileges at all.

Now go to the VMM console on the VMM server. Go to Settings and then System Center Settings and click on the Operations Manager Server.

Next up is to follow the guide and enter the server name to the OpsMgr server and the credentials. First off is the credentials VMM will use to connect to OpsMgr, this is the account that need to have admin privileges on the OpsMgr Management group. You can also select if you want to enable PRO and Maintenance information. Click next and add the credentials OpsMgr will use to connect to VMM. VMM will give this account all the needed privileges so you don’t have to preconfigure anything for it.

You are now done. VMM and OpsMgr will now have a nice long chat and you can expect some more alerts in OpsMgr.

If you want to get the most out of this you should get a subscription to Azure Operational Insights and connect that to OpsMgr. That way you will get capacity information from VMM and a lot more cool features.