Could someone please help me to create an HTTP application health monitor to send a POST request that should similar working as below XML script. This is eating huge amount of CPU on my LTM pairs.
That’s why I decided to change the monitor, Post I created a new monitor with Send string:
POST /cgi-bin/brb.exe HTTP/1.1\r\nHost: \r\nConnection: Close\r\n\r\nRezViewAmfTestRQ User TokenVER||0
&
Recieve string:
RESPONSE.rver.RCD
Interval: 60
Timeout: 181
Unfortunately it doesn’t work, Some of the pool status is coming online after sometime but not for all.
Below is the post pinger XML script which we are using for monitoring.
cat post_pinger
=======================================================================================================
!/bin/sh
F5 Networks and BIG/ip(c) Copyright
No part of the software may be reproduced or transmitted in any form or by
any means, electronic or mechanical, for any purpose, without express
written permission of F5 Networks, Inc. It is against the law to copy the
software. No part of this program may be reproduced or transmitted in any
form or by any means, electronic or mechanical, including photocopying,
recording, or information storage and retrieval systems, for any purpose
other than the purchasers personal use, without the express written
permission of F5 Networks, Inc. Copyright (c) 1999 BIG/ip Software. All
rights reserved. Our services are only available for legal users of the
program for instance in case we extend our services by offering updating of
files through Internet.
these arguments supplied automatically for all external pingers:
$1 = IP (nnn.nnn.nnn.nnn notation or hostname)
$2 = port (decimal, host byte order)
$3 and higher = additional arguments
In this sample script, $3 is the regular expression
pidfile=“/var/run/pinger.$1..$2.pid”
if [ -f $pidfile ]
then
kill -9 `cat $pidfile` > /dev/null 2>&1
fi
node_ip=`echo $1 | sed ‘s/::ffff://’`
echo “$$” > $pidfile
/usr/bin/monitors/post “http://$node_ip:$2/cgi-bin/brb.exe” < /usr/bin/monitors/pegs_xmlgw.txt | grep RESPONSE.rver.RCD
status=$?
if [ $status -eq 0 ]
then
echo “up”
fi
rm -f $pidfile
================================================================================================================
cat xmlgw.txt
+++++++++++++
RezViewAmfTestRQ User TokenVER||0
================================================================================================================