I have a monitor that is using the PowerShell scripting to return a numeric value that defines the health state.
I can display a tile in a dashboard to show the health state (green, amber, red). I would like the custom label to display that value from the property bag.
The properties available in the status tile are properties discovered for the object. You’d find the property bag on the alert, if that helps.
PowerShell is probably the best option. Query the object health and the alert alongside each other and combine into one object with the three properties of interest (displayname, healthstate, propertybag).
Hi Mark
The property bag is “internal” to the monitor when the monitor is running. You can’t access this directly from outside of the script. If you have defined the value as a property of the target class then we can display that property but be aware that from a SCOM perspective, you need to be careful about creating properties that change regularly as they will cause config churn. See "What is config churn? – Kevin Holman’s Blog " and the section on size versus free space as a property of the class.
What you could do is create a module where the same PowerShell script drives a monitor (as it does now) but also drives a rule which collects the Property Bag as a performance metric. And then we could display the performance metric on the SquaredUp Dashboard. This requires advanced SCOM development knowledge which Kevin Holman introduces here - Advanced Cookdown Management Pack Authoring – Kevin Holman’s Blog
Hopefully that makes sense. If you’d like to discuss further and see if we can work out a solution then either respond to this thread or DM me and I’ll take a look.
Regards
Graham
Technical Product Manager - SquaredUp Dashboard Server