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...
hoolio
Cirrostratus
Mar 22, 2010You'll need to use a non-floating self IP as each unit in a redundant pair performs monitor checks while active or standby. To get a non-floating self IP, can you replace the 10.10.10.2 IP in the ping command with this awk line from hwidjaja?
http://devcentral.f5.com/Default.aspx?tabid=53&forumid=32&tpage=1&view=topic&postid=814027814206
`awk 'BEGIN {RS="}\n";FS=RS} /^self 1.1.1/ {print $1;} ' /config/bigip_base.conf |head -1|awk '{print $2}'`
Make sure to replace 1.1.1 with the first three octets of the non-floating self IP address you want to match
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 1.1.1/ {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
Do you have the pool members set for port 0 or a specific port like 389? Can you set a specific port on the pool members and use the external monitor with no alias port?
Thanks, Aaron
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