Forum Discussion
Cory_50405
Noctilucent
May 03, 2013External monitor issues
I'm trying to get an external monitor working and not having much luck. This virtual server is meant to do per-packet UDP load balancing across two pool members. The health check's intent is to SSH...
Kevin_Stewart
Employee
May 03, 2013Silly question, but will this script work if you run it directly from the command line, with an IP address parameter? You're using an alias service port in your monitor so you shouldn't have an issue applying the monitor to your IP:0 pool. Otherwise, I've tested it on 11.3 and don't see anything specifically wrong with your config. I did make a minor modification though to react to a specific remote response vs. an exit status.
!/bin/sh
remove IPv6/IPv4 compatibility prefix (LTM passes addresses in IPv6 format)
IP=`echo ${1} | sed 's/::ffff://'`
set the pid file location and name
PIDFILE="/var/run/`basename ${0}`.${IP}.${PORT}.pid"
if [ -f $PIDFILE ]
then
kill -9 -`cat $PIDFILE` > /dev/null 2>&1
fi
echo "$$" > $PIDFILE
send request & check for expected response
SSHRES=`ssh splunkf5@${IP} -i /config/ssh/ssh_host_dsa_key /home/splunkf5/healthcheck.sh`
mark node UP if expected response was received
if [ $SSHRES == "good" ]
then
echo "UP"
fi
rm -f $PIDFILE
exit
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