I have done some pretty extensive research and cannot find something comprehensive enough to tell me how to systematically do the following.
- Collect information via powershell and based upon this data change state in a monitor. (actually this part works)
- Pass data collected using the PropertyBag API and that shows when exploring to this in the health explorer to a notification
So what I have researched and found so far.
- Alerting subsystem has a VERY limited subset of information with which to draw upon (primarily the custom fields are it)
- Monitor scripts do not generate alerts, they are reacted to and then generated.
- Rules seem to be capable of more but do not affect state.
- Scripts that are used via command channels can do some of this but there are a lot of replies (posts) that say that the methods people post cause multiple iterations of the same alert to be generated. And in some rare cases there is a delay or inconsistency in generating the alerts
I didn't think what I was looking to do was that hard. Apparently there is still some missing logic in how the monitoring occurs in SCOM.
To me, if you have such a robust system to allow scripted monitors to determine state that information collected in that determination would not have value in the alerts and subsequent notifications to key personnel.
Daren