We are attempting to monitor the size of our Log Send Queue and Redo Queue on our cluster. I know that we can monitor these via SSMS, but we'd like to come up with a way to have them monitored automatically and, if possible, send out an email alert when they get over a certain size.
I am a relative SQL newbie, and have found a way to use a SELECT statement to see the values, but I'm not sure if I can use an IF statement, or some other method to trigger an alert.
Any recommendations?
Thanks
Jon