Forum Discussion
Greg__33907
Nimbostratus
Oct 15, 2008HTTPS monitor on a specific port
Hey guys,
I've had a read through the forums but havent found anything that can help.
I am using an LTM running v4.6.4
I am trying to monitor a node using https to a specific port (in this case 11789)
A standard https monitor to the x.x.x.x:11789 node works with a request of
GET /portal/page/status
so long as there is no set receive string.
However the moment I specify the correct read string "PPE is working." it marks it down.
Looking at this through my browser it works correctly but the LTM won't have any of it. Does anyone know how I can check what the LTM is seeing or know what I may be doing wrong?
Many thanks
Greg
- hoolio
Cirrostratus
You can enable debug on the monitoring daemon, bigd: - Alok_3817
Nimbostratus
Well, if that doesnt work, there one thing you can try, creating a custom monitor using "cURL" it some times so happens that the cert negotiation of the openssl installed doesnt work well. In that case, when we set a send string and the string is encrypted, the server is not able to undertand it and vice versa this can be a problem on the server side as well...!/bin/sh TMPFILE="/var/run/`basename ${0}`.${NODE}_${PORT}.pid" kill of the last instance of this monitor if hung and log current pid if [ -f $TMPFILE ] then kill -9 `cat $TMPFILE` > /dev/null 2>&1 fi echo "$$" > $TMPFILE NODE=`echo ${1} | sed 's/::ffff://'` PORT=${2} send request & check for expected response curl -k http://${NODE}:${PORT}${URI} | grep -i "${RECV}" 2>&1 > /dev/null mark node UP if expected response was received if [ $? -eq 0 ] then echo "UP" fi rm -f $PIDFILE exit
monitor mycustommonitor { run "https-curl" URI "/test.html" RECV "I am UP" }
- dennypayne
Employee
A lot of applications require a properly-formatted HTTP 1.1 request for the monitor to work. Your browser is supplying that by default, along with host headers, etc.GET /portal/page/status HTTP/1.1\n\nHost:www.hostname.com\n\n
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects