Forum Discussion
External File monitor failing
We migrated to version 11.6 and I'm having issues with an external monitor failing my pool nodes.
!/bin/sh remove IPv6/IPv4 compatibility prefix (LTM passes addresses in IPv6 format)IP=
echo ${1} | sed 's/::ffff://'
IP=${1}
PORT=${2} PIDFILE="/var/run/
basename ${0}.${IP}_${PORT}.pid"
kill of the last instance of this monitor if hung and log current pid
if [ -f $PIDFILE ] then kill -9
cat $PIDFILE > /dev/null 2>&1
fi
echo "$$" > $PIDFILE
send request & check for expected response
curl -L --ntlm -k -v --user 'svc-dca-emea-f5monitor-gsps@ct.abcxyz.net:passw0rd' http://${IP}:${PORT}/_layouts/AccessDenied.aspx -H "Host: collab001-wfc.sp.abcxyz.net" | grep -i "Denied" 2>&1 > /dev/null
mark node UP if expected response was receivedif [ $? -eq 0 ] then echo "UP" fi rm -f $PIDFILE exit
anyone have a better understanding of cURL that can help with my troubleshooting efforts?
1 Reply
- Max_Q_factor
Cirrocumulus
You might want to try sshing to the F5 and running the curl command but putting the pool member ip and port in instead of the variables like:
curl -L --ntlm -k -v --user 'svc-dca-emea-f5monitor-gsps@ct.abcxyz.net:passw0rd' http://10.0.0.1:80/_layouts/AccessDenied.aspx -H "Host: collab001-wfc.sp.abcxyz.net"then looking for "Denied" using any case.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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