rio_sibuea_7750
Apr 23, 2012Nimbostratus
External Monitor on v9.3.0
Hello, This removes the IPv6/IPv4 compatibility prefix. This has to be done because the LTM passes addresses in IPv6 format.IP=`echo ${1} | sed 's/::ffff://'`PORT=${2}PIDFILE="/var/run/`basename ${0}`.${IP}_${PORT}.pid" This will kill off the last instance of this monitor if it is hung and logs current PIDif [ -f $PIDFILE ]thenkill -9 `cat $PIDFILE` > /dev/null 2>&1fiecho "$$" > $PIDFILE This is the meat of the code, it is responsible for sending the request & checking for the expected response.curl -fNs --ntlm -k -v --user 'YourUsername@YourDomain.com:YourPassword' http://${IP}:${PORT}/_layouts/RecycleBin.aspx -H "Host: YourWebsite.com" | grep -i "deleted" 2>&1 > /dev/null This part of the code will mark the node UP if the expected response was received.if [ $? -eq 0 ]thenecho "UP"firm -f $PIDFILEexit
I'm trying to have an NTLM external monitor and currently my system is running v9.3.0.
I tried a script that I got from http://www.thef5guy.com/blog/2010/0...-monitors/
I'm not sure why it doesn't work on my system running v9.3.0. It works fine with my other system running v9.4.7.
Is there any bug/known issue preventing the v9.3.0 system running this external monitor?
Please advise.
Thanks.
Below is the full script:
!/bin/sh