Re: LVS daemon not showing.
Fredrik Johansson <[email protected]>
| Newsgroups | gmane.linux.redhat.piranha |
|---|---|
| Message-ID | <[email protected]> |
Hi! > My guess would be pulse is not running. Why? /etc/sysconfig/ha/lvs.cf > foo? pulse is not running, I hant got the backup-lvs running yet. > What are you running that uses tomcat? Is this a recompiled apache or > just mod_jk? Its mod_jk. But if the tomcat-server goes down apache responds ok on every http-request but showing a "Internal Server Error" > I would use something like (remserv=$1) at the begining of the script > and replace the $1 with $remserv or something like that. My guess is %h > is not being passed to your script for some reason. I know for a fact > that piranha is very purticular when it comes to syntax, so make sure > what you expect piranha is getting as feedback from the script is > actually what it's getting. Strace should be usefull here. I tried that now. And ran a nanny daemon at nondaemon+verbose. Its very strange. When I run nanny with this: send_program = "/etc/sysconfig/ha/checkwww %h" The output is: ---- nanny: starting LVS client monitor for 172.16.6.10:80 nanny: Send_program len=31, text=""/etc/sysconfig/ha/checkwww %h"" nanny: Send_string is NULL nanny: Expect_string len=2, text="OK" nanny: Found 1 argument(s) nanny: Invoking: "/etc/sysconfig/ha/checkwww nanny: The following exited abnormally: nanny: Got result ((null)) from command sent to (10.0.11.10) nanny: Ran the external sending program to (10.0.11.10) but didn't get anything back ---- But when I remove the %h and the quotes: send_program = /etc/sysconfig/ha/checkwww ---- nanny: starting LVS client monitor for 172.16.6.10:80 nanny: Send_program len=26, text="/etc/sysconfig/ha/checkwww" nanny: Send_string is NULL nanny: Expect_string len=2, text="OK" nanny: Found 0 argument(s) nanny: Invoking: /etc/sysconfig/ha/checkwww nanny: Got result (OK) from command sent to (10.0.11.10) ----- Just to make everything more wierd: send_program = /etc/sysconfig/ha/checkwww "%h Parses "OK"? Shouldnt it be an error? (%h dont work) ----- nanny: starting LVS client monitor for 172.16.6.10:80 nanny: Send_program len=26, text="/etc/sysconfig/ha/checkwww" nanny: Send_string is NULL nanny: Expect_string len=2, text="OK" nanny: Found 0 argument(s) nanny: Invoking: /etc/sysconfig/ha/checkwww nanny: Got result (OK) from command sent to (10.0.11.10) ----- Seems to me that it is a bug in nanny? %h doesnt seem to expand either? Nanny --version output: Program Version: nanny 1.46 Built: 19/Mar/2002 A component of: piranha-0.6.1-3 /Fredrik