Written by: Stefan Koell 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 !
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.
Change to the Health Model space and select Monitors in the tree. Right-click into the Monitors pane and select New->Custom Unit Monitor
I specified as ID: code4ward.Sample.PowerShellMonitor.Monitor.FileContentCheck
Display Name is: File Content Check Monitor
As Target choose Browse all classes…
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
0 comment(s) so far...