How to create a Two-State PowerShell Script Monitor using the Authoring Console (Part 4)
Nov
9
Written by:
Monday, November 09, 2009 1:46:29 PM
This is a step-by-step guide in multiple parts:
Part 1 will cover the Probe Actions Module Types: Part 1 is available on SCC or on code4ward
Part 2 will be about creating a Data Source: Part 2 is available on SCC or on code4ward
Part 3 will cover creating a Monitor Type: Part 3 is available on SCC or on code4ward
Part 4 will cover the Unit Monitor itself
As always be careful with the samples provided here. Always use a test environment first to try those examples!
Will only work with OpsMgr 2007 R2 !
Part 4: Unit Monitor
Selecting a Target
In this demo, I will target the Root Management Server class to keep it simple. This way we do not have to go through all the steps to disable the monitor and enable it with an override, etc. Another way to find an appropriate target is to discover one. The environment we are working in, admins can configure their own monitoring by just providing some registry keys and values. This registry information is discovered, an instance of a custom class (which is hosted on a computer) will be created and most properties of this class are holding the configuration values for the monitor. My friend Tenchuu mentioned to publish some blog posts about PowerShell discovery and he also wants to blog about this concept.
Creating the Unit Monitor
That’s it. If you have any suggestions for improvement, questions or general feedback on this series, do not hesitate to contact me or leave a comment. I’ve also attached the complete management pack with this sample monitor.
cheers,
Stefan Koell
http://www.code4ward.net
2 comment(s) so far...
Re: How to create a Two-State PowerShell Script Monitor using the Authoring Console (Part 4)
When you troubleshooting you could create an override for a specific instance or a group of instances to enable debugging. It is such a beautifully composed, informative article.I think your designing work to this is really great . I really appreciate your work to this site.So thanks for it.I hope you can continue this type of hard work to this site in future also..Because this blog is really very informative and it helps me lot...Thnaks...
By jeux de casino online on
Friday, June 11, 2010 8:39:09 AM
|
Re: How to create a Two-State PowerShell Script Monitor using the Authoring Console (Part 4)
Thanks, I appreciate the kind words. You should also check out SystemCenterCentral.com which provides more great samples and a lot of smart peaple are posting their stories using SCOM there.
cheers!
By Stefan Koell on
Friday, June 11, 2010 8:40:19 AM
|