Will_F_98397
May 10, 2010Nimbostratus
External Monitor not working
Hello,
I've configured an external monitor for a SOAP page I'm trying to contact as described here: http://devcentral.f5.com/wiki/default.aspx/AdvDesignConfig/HTTPMonitor_cURL_BasicPOST.html I've assigned the monitor to a pool but it doesnt appear to be working. I've added some echo's to the top of the script with output to a file but I still don't see this, it's like the monitor isnt even being called.
I've confirmed the script run's via the CLI and permissions are correct.
Does anyone have any ideas why this may not be working?
-rwxrwxrwx 1 root root 2303 May 10 18:46 curl_monitor.sh monitor externalmonitorforxyz { defaults from external dest *.* DATA "@echo.xml" RECV "Data" run "/usr/bin/monitors/curl_monitor.sh" URI "/XML" } curl_monitor.sh: NODE=`echo ${1} | sed 's/::ffff://'` PORT=${2} PIDFILE="/var/run/`basename ${0}`.${NODE}_${PORT}.pid" kill of 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 echo "hello" >> /tmp/curl.log echo "curl -fNs http://${NODE}:${PORT}${URI} -d "${DATA}" | grep -i "${RECV}" 2>&1 > /dev/null" >> /tmp/curl.log mark node UP if expected response was received if [ $? -eq 0 ] then echo "UP" fi rm -f $PIDFILE exit