Forum Discussion
A_124585
Nimbostratus
Mar 21, 2014Variable in custom HTTP monitor
I want to be able to pass the name of the Pool Member being monitored in the HTTP custom monitor.
I have to monitor my pool members via a third party. Currently, I have a separate monitor for e...
JRahm
Admin
Mar 24, 2014I'm not sure exactly what information you need for each monitor, but if you were able to specify it in the pool member description field, you can then use in your external monitor script a tmsh command to extract out that description for the monitor calls. In the script (standard template):
Remove IPv6/IPv4 compatibility prefix (LTM passes addresses in IPv6 format)
IP=`echo $1 | sed 's/::ffff://'`
Save the port for use in the shell command
PORT=$2
So you could use this $IP:$PORT information with a call to tmsh list ltm pool and pull out the information necessary to make the monitor call itself to test up/down status.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects