LVS daemon not showing.
Fredrik Johansson <[email protected]>
| Newsgroups | gmane.linux.redhat.piranha |
|---|---|
| Message-ID | <[email protected]> |
Hi!
Following the nice guide made by Peter Baitz(noticed some errors though), but I
still have some questions:
* When starting upp the lvs-daemon doesnt show(both in piranha-gui and ps ax),
just the nanny daemons? Everything seems to work... Is this correct behavior? If
not, what could be wrong?
* We're using the apache-tomcat server. For testing that its up I did this
little script that seems to work(at least in shell):
------- checkwww.sh
WEBTEST=`/usr/bin/lynx -dump -connect_timeout=1 $1/pub/index.html 2>&1|egrep -i
'unable to connect to remote host'\|'Internal Server Error'|wc -l`
if [ ${WEBTEST} -ge 1 ]; then
echo "FAIL"
else
echo "OK"
fi
-------
But when adding it to the lvs.cf he doesnt seem to run the script.
------- from lvs.cf
persistent = 900
expect = "OK"
send_program = "/etc/sysconfig/ha/checkwww.sh %h"
-------
What can be wrong?
This is a bit confusing, I tried both 'send' and 'send_program' but when should
I use what? In PB's HOWTO he's using 'send' for the smtp-test script but this
seems wrong?
The default testing of http works...
I'm using a rh 7.2 with:
kernel-2.4.9-34
ipvsadm-1.20-7
piranha-0.6.1-3
/Fredrik
Ps. Peter, if youre reading this the errors I found was somewhat minor but youre
still testing smtp on the http port and the other way around in your
lvs.cf-example. Anyway thanks for the howto! :-)