Hi all,
I have a SQL User experience monitor that runs a query. This query looks at a database that contains messages in several message areas, does a count, and adds up values from each. It reports this value to Orion. If the total is over 15000, Orion sends an alert. This works fine, but here is what I want it to do:
When there are over 15000 messages total, I would like a second query to run. This query looks at the individual message areas to see if the count is over 750. It then returns however many rows it needs to to show all of the message areas that have over 750 messages. I would like to take these rows and send them in as part of an alert. Basically the alert should be structured something like:
Warning: There are 15,024 messages
List of inboxes with over 750 messages:
Inbox 1: 775
Inbox 2: 827
Inbox 3: 755
Any ideas on how to do this? I have the SQL query that lists the inbox names, I just have to figure out how to get that information into an alert.
Do I need a custom application monitor to run this query on a regular basis to store the data in Orion? Can I have a trigger set off a SQL query on a SQL server that isn't the Orion DB?
Thanks for any advice you can give. pm