Forum Discussion
Srijana_137175
Nimbostratus
Apr 10, 2014DNS health probe configuration in NODE
I am trying to configure DNS health probing (different DNS port with different IP) to NODES that are under a POOL.
Example - currently all nodes under a pool are setup with single probing (DNS 5...
Cory_50405
Noctilucent
Apr 11, 2014Here's the script we have in place for the SSH/script health check. We're using it to determine the health status of Splunk forwarders for logging purposes:
!/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.error
kill -9 `cat $PIDFILE` > /dev/null 2>&1
fi
echo "$$" > $PIDFILE
send request & check for expected response
ssh splunk@${IP} -i /config/ssh/ssh_host_dsa_key "/home/splunk/healthcheck.sh" > /dev/null 2>&1
mark node UP if expected response was received
if [ $? -eq 0 ]
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