Hi I'm just starting to use SCOM 2012 to monitor our AIX servers.
I have used the Linux Shell 2 state monitor to successfully capture an error like so:
SCX_OperatingSystem_OUTPUT | |
---|---|
ReturnValue |
TRUE |
ReturnCode |
0 |
StdOut |
sysadmin: /opt at 95% |
I'm trying to display the StdOut in my email notification. I've tried embedding this in the email without success
$Data/Context///*[local-name()="StdOut"]
I've also run a powershell Get-Member on the output of Get-ScomAlert
get-SCOMalert -Criteria "ResolutionState = 0 AND Severity = 2 AND IsMonitorAlert = 1" | Where-Object {$_.Id -eq "0d0f51a4-8be0-4b7d-80fa-ad3827f1308a"} | gm
And can't see any useful properties.
This is my first post here, thanks for any suggestions.
Regards
Jeremy