I couldn't find an out-of-the-box solution for seeing the current connections on each virtual server for a F5 loadbalancer so I created a poller for this. Now my goal is to alert when some of them go above a certain number. I am only working with one of the virtual servers as a test. It appears that I need to do some sort of SQL query to do this but I do not know how to create an alert from this. Below is my SQL query that works in MS Studio. I can also use it to return a value into the email I have being generated. What am I missing?
SELECT CustomPollerStatusTable.NumValue
FROM CustomPollerStatusTable
WHERE (
CustomPollerStatusTable.PollerID = '7BEEB32A-8FD8-4EA8-9003-031C9FFDC391' and
CustomPollerStatusTable.FullLabel = '/Common/SomeVirtualServer on ProdF5' and
CustomPollerStatusTable.NumValue >=300
)
I tried to do this using the Advanced SQL Alert but the pre-defined stuff is messing me up. I tried the below code to trick it but I think I don't understand how this works.
SELECT CustomPollerStatusTable.CustomPollerAssignmentID, CustomPollerStatusTable.CompressedRowID, CustomPollerStatusTable.FullLabel FROM CustomPollerStatusTable
WHERE 0 = 1
SELECT CustomPollerStatusTable.NumValue
FROM CustomPollerStatusTable
WHERE (
CustomPollerStatusTable.PollerID = '7BEEB32A-8FD8-4EA8-9003-031C9FFDC391' and
CustomPollerStatusTable.FullLabel = '/Common/SomeVirtualServer on ProdF5' and
CustomPollerStatusTable.NumValue >=300
)