Hello all, i have setup a windows script to run and pull back some data back from my environment, too keep this question on topic I'm going to be focusing on the results and the alert i would like to get. Right now the script is running every hour and looking for a true/false condition, if true it returns back a value of 1 and false gives me a 0. I then have this information being graphed in a multiple statistics chart. Also I have more than 10 stats that i am graphing so i have broken them out into several monitors within my template. The information is recording properly as expected from the graphs.
Now moving on to the alert I would like.
I have setup an alert to monitor the component scoped around the application name. The trigger condition should be if any of the stats come back as a 1 it will trigger the alert (setting a warning/error level in the monitor can not be used as the alert has be time sensitive and i don't want it kicking off just alerts by making the application monitor go into an error state).
I then want to get an email regarding which monitor and specific stat being monitor set off the alert. This only works partially, I receive an alert regarding the monitor that would have caused the alert but it is always the first stat in the list that i get information on, not the one that actually caused the alert. Any suggestions on how i can get the email to specify either just the stat data that caused the alert or worst case all stats tracked on the one monitor and their respective value at the time.