Hello,
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
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 PID
if [ -f $PIDFILE ]
then
kill -9 `cat $PIDFILE` > /dev/null 2>&1
fi
echo “$$” > $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 ]
then
echo “UP”
fi
rm -f $PIDFILE
exit