For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

Dazzla_20011's avatar
Dazzla_20011
Icon for Nimbostratus rankNimbostratus
Nov 01, 2013

Microsoft Sharepoint 2010 External Monitor for NTLM Problem

I'm having a problem with an External Monitor I've created for Microsoft Sharepoint 2010, I'm trying to use the monitor posted on website http://www.thef5guy.com/blog/2010/08/sharepoint-2010-ntlm-and-big-ip-health-monitors/ I've just altered the curl section slightly.

Using the following curl command I can access the page if I input the variables so not sure why the monitor isn't working so any help much appreciated. A tcpdump on one of the pool members doesn't capture any packets so it suggests the monitor isnt functioning at all for some reason.

curl -H "Host: portalu" -fNs --ntlm -k --user "16894@production.internal:K******3" / "http://${IP}:${PORT}/Pages/Welcome.aspx" | grep -i "Microsoft" 2>&1 > /dev/null"

CODE

IP=echo ${1} | sed 's/::ffff://'
PORT=${2}
PIDFILE="/var/run/basename ${0}.${IP}_${PORT}.pid" if [ -f $PIDFILE ]

then
kill -9 cat $PIDFILE > /dev/null 2>&1
fi
echo "$$" > $PIDFILE

curl -H "Host: portalu" -fNs --ntlm -k --user "16894@production.internal:Kathryn2013" / "http://${IP}:${PORT}/Pages/Welcome.aspx" | grep -i "Microsoft" 2>&1 > /dev/null

if [ $? -eq 0 ] then
echo "UP"
fi

rm -f $PIDFILE
exit

3 Replies

  • If you execute the monitor script directly from the command line, passing IP and port as parameters, does it work?

     

  • Looking at the external monitor troubleshooting website if I do the following this should be correct. Apologies very little experience with the command line all through the GUI.

     

    [root@f5-int-ltm1:Active] / /usr/bin/monitors/sharepoint_test 10.72.4.111 80 -bash: /usr/bin/monitors/sharepoint_test: No such file or directory

     

    If I change it to include .sh the following is received.

     

    root@f5-int-ltm1:Active] / /usr/bin/monitors/sharepoint_test.sh 10.72.4.111 80 bad interpreter: No such file or directory /bin/sh

    I copied the script across using WINSCP and changed the permissions to 0777.

     

  • A few things:

     

    • The external monitor profile actually expects these scripts in /config/monitors. You can put them elsewhere but then there's no guarantee they'll get backed up or synced.

       

    • Once inside the directory where the monitor script exists, type "ls" to see what its real name is. From that directory, try to execute the file with required parameters:

       

      ./sharepoint_test.sh 10.10.10.10 80

       

    • It may just be missing from your cut and paste, but the above script is missing the "!/bin/sh" on the first line, though technically it should probably be "!/bin/bash" since this is a Bash script. This line tells the system which interpreter to use.