Forum Discussion
SQL Monitor question / problem...
Is it possible to run a SQL query and depending on the result put a pool member up or down? The problem here is that the SQL query is not running against the pool member.
- RyannnnnnnnnAltocumulus
Yes. Both the MSSQL and MySQL monitors have fields where you can put an alias address (the address of the SQL server you want to check) and depending on whether the check is successful or not your pool member(s) will be marked UP/DOWN.
- patonbikeCirrus
Thank you - I see those fields, but I don't have the ability to modify the field at least not from the monitor page. It just says :
-
All Addresses
- All Ports
-
All Addresses
- patonbikeCirrus
The only other way I can think of is to do an iRule.
I have a pool which is not actually connected to the VS. Assign monitor to that pool.
Then I could do an iRule which says, if MySqlServerPool has available members, then use this node, else use this other node.
It is a bit of a hack... and seems unnecessary, but it would probably work. Please let me know if there is a cleaner way to do it.
- patonbikeCirrus
Any idea why I can't assign the alias address/port?
- Ryan_80361Cirrostratus
Yes. Both the MSSQL and MySQL monitors have fields where you can put an alias address (the address of the SQL server you want to check) and depending on whether the check is successful or not your pool member(s) will be marked UP/DOWN.
- patonbikeCirrus
Thank you - I see those fields, but I don't have the ability to modify the field at least not from the monitor page. It just says :
-
All Addresses
- All Ports
-
All Addresses
- patonbikeCirrus
The only other way I can think of is to do an iRule.
I have a pool which is not actually connected to the VS. Assign monitor to that pool.
Then I could do an iRule which says, if MySqlServerPool has available members, then use this node, else use this other node.
It is a bit of a hack... and seems unnecessary, but it would probably work. Please let me know if there is a cleaner way to do it.
- patonbikeCirrus
Any idea why I can't assign the alias address/port?
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com