Forum Discussion
usernametaken75
Nimbostratus
Jul 22, 2014External Monitor - second node always marked down
We have a situation with version 10.2.2 of the BigIP LTM product whereby an external monitor will work fine for one member of a pool, but when the second server is added to the pool, the second serve...
Kevin_Davies_40
Nacreous
Jul 23, 2014Paste the monitor code? If it doesnt format correctly create a gist and paste the link here.
- usernametaken75Jul 23, 2014
Nimbostratus
!/bin/sh @() $Id: //depot/maint/bigip10.2.2/tm_daemon/monitors/sample_monitor2 $ these arguments supplied automatically for all external pingers: $1 = IP (nnn.nnn.nnn.nnn notation or hostname) $2 = port (decimal, host byte order) $3 and higher = additional arguments In this sample script, $3 is the regular expression pidfile="/var/run/pinger.$1..$2.pid" if [ -f $pidfile ] then kill -9 `cat $pidfile` > /dev/null 2>&1 fi echo "$$" > $pidfile node_ip=`echo $1 | sed 's/::ffff://'` status=`ssh -A root@$node_ip ssh -A $3 -C 'su - tester -c ~/somescript.sh' |/bin/grep UP` if [ $status == UP ] then echo "up\n" fi rm -f $pidfile
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