Forum Discussion
JRahm
Admin
Oct 28, 2015Host header EVA health monitor
Posting on behalf on community member:
I was wondering the best way to approach for host header health monitors, instead of changing Host: portion of the send string to for each individual application that will call for a separate health monitor for each application, if using an external health monitor would be possible to cover all Host: "" possibilities.
Here is what I was thinking of using with proper modifications.
pidfile="/var/run/pinger.$1.$2.pid"
if [ -f $pidfile ]
then
kill -9 `cat $pidfile` > /dev/null 2>&1
fi
echo "$$" > $pidfile
node_ip=`echo $1 | sed 's/::ffff://'`
echo "GET /f5-monitor/f5-monitor.jsp" | /usr/bin/openssl s_client -quiet -connect $node_ip:$2 2> /dev/null | /bin/grep -E -i CLUSTER_IS_ALIVE > /dev/null
status1=$?
if [ $status1 -eq 0 ]
then
echo "up"
fi
rm -f $pidfile
Let me know your thoughts and feedback
Thanks
No RepliesBe the first to reply
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