Forum Discussion
hexueli_36169
Nimbostratus
Mar 19, 2010How to setup external monitor with extended ping?
I'm running into a situation to setup extended ping monitor for LDAP servers. It seems the LDAP server sometimes may lose its IP routing info and be only available on its default VLAN. When this happe...
hexueli_36169
Nimbostratus
Apr 07, 2010Hi Aron,
I tried with this external monitor script:
node_ip=`echo $1 | sed 's/::ffff://'`
pidfile="/var/run/`basename $0`.$node_ip..$2.pid"
if [ -f $pidfile ]
then
kill -9 `cat $pidfile` > /dev/null 2>&1
fi
echo "$$" > $pidfile
ping -I `awk 'BEGIN {RS="}\n";FS=RS} /^self 153.88.99/ {print $1;} ' /config/bigip_base.conf |head -1|awk '{print $2}'` -c 1 -W 1 &node_ip | grep rtt
if [ $? -eq 0 ]
then
echo "UP"
fi
rm -f $pidfile
exit
------------
Note, I replaced "node_ip" with "&node_ip" in the ping command line, is that right?
Pool members are set with port 389 and external monitor can either set a specific alias port or all ports, I've tested both, and unfortunately, it still doesn't work - all pool members are dtected down.
Any idea?
Thanks!
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