Forum Discussion
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
exit3 Replies
- Kevin_Stewart
Employee
If you execute the monitor script directly from the command line, passing IP and port as parameters, does it work?
- Dazzla_20011
Nimbostratus
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/shI copied the script across using WINSCP and changed the permissions to 0777.
- Kevin_Stewart
Employee
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.
-
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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