Forum Discussion
Cory_50405
Noctilucent
Here's my external monitor. Nothing in here about DNS lookups:
!/bin/sh remove IPv6/IPv4 compatibility prefix (LTM passes addresses in IPv6 format)IP=
echo ${1} | sed 's/::ffff://'
PORT=${2}
set the pid file location and name
PIDFILE="/var/run/
basename ${0}
.${IP}.${PORT}.pid"
kill off the last instance of this monitor if hung and log current pid
if [ -f $PIDFILE ] then
echo "EAV exceeded runtime needed to kill ${IP}:${PORT}" | logger -p local0.errorkill -9
cat $PIDFILE
> /dev/null 2>&1
fi
echo "$$" > $PIDFILE
send request & check for expected response
ssh splunkf5@${IP} -i /config/ssh/ssh_host_dsa_key "/home/splunkf5/healthcheck.sh" > /dev/null 2>&1
mark node UP if expected response was receivedif [ $? -eq 0 ] then echo "UP" fi rm -f $PIDFILE exit
What_Lies_Bene1
Sep 04, 2013Cirrostratus
OK, thanks.