ldirectord and squid check

Morgan Marodin mmarodin at develon.com
Fri Apr 16 14:18:58 BST 2004


If I use this configuration:
virtual =
     fallback =
     real = gate 5
     protocol = tcp
     service = http
     scheduler = wlc
     persistent = 120
     request = ""
     receive = "Bad Request"

Debug messages are:
[root at midir perl5]# ldirectord -d start
DEBUG2: Running exec(/usr/sbin/ldirectord -d start)
Running exec(/usr/sbin/ldirectord -d start)
DEBUG2: Starting Linux Director v1.77 with pid: 5553
Starting Linux Director v1.77 with pid: 5553
DEBUG2: Running system(/sbin/ipvsadm -A -t -s wlc -p 120 )
Running system(/sbin/ipvsadm -A -t -s wlc -p 120 )
DEBUG2: Added virtual server:
Added virtual server:
DEBUG2: Running system(/sbin/ipvsadm -a -t -r -g -w 1)
Running system(/sbin/ipvsadm -a -t -r -g 
-w 1)
DEBUG2: Added fallback server: (0 x 
(Weight set to 1)
Added fallback server: (0 x (Weight set 
to 1)
DEBUG2: Checking negotiate: real 
Request (virtual=tcp:
DEBUG2: Checking http: 
LWP::UserAgent::new: ()
LWP::UserAgent::request: ()
LWP::UserAgent::send_request: GET
LWP::UserAgent::_need_proxy: Not proxied
LWP::Protocol::http::request: ()
LWP::Protocol::collect: read 731 bytes
LWP::Protocol::collect: read 145 bytes
LWP::UserAgent::request: Simple response: Bad Request
DEBUG2: Disabled server=
DEBUG3: Headers Date: Fri, 16 Apr 2004 13:07:33 GMT
Server: Squid/2.4.STABLE6
Content-Length: 876
Content-Type: text/html
Expires: Fri, 16 Apr 2004 13:07:33 GMT
Client-Date: Fri, 16 Apr 2004 14:10:04 GMT
Client-Response-Num: 1
Mime-Version: 1.0
Proxy-Connection: close
Title: ERRORE: URL cannot be retrivied
X-Cache: MISS from proxy.mydomain.com
X-Squid-Error: ERR_INVALID_URL 0

So ... I try to use nagios plugins to see squid' responces:
[root at midir plugins]# ./check_tcp -H -p 8080
TCP OK -   0.001 second response time on port 8080|time=  0.001

[root at midir plugins]# ./check_http -H -p 8080
HTTP WARNING: HTTP/1.0 400 Bad Request

And if I try with telnet to port 8080:
[root at midir plugins]# telnet 8080
Connected to (
Escape character is '^]'.

HTTP/1.0 200 OK
Date: Fri, 16 Apr 2004 11:11:06 GMT
Server: Apache/2.0.46 (Red Hat)
Last-Modified: Thu, 15 Apr 2004 15:50:23 GMT
ETag: "57c21-a-d8b0dc0"
Accept-Ranges: bytes
Content-Length: 10
Content-Type: text/plain; charset=UTF-8
Age: 7184
X-Cache: HIT from proxy.mydomain.com
Proxy-Connection: close

test page
Connection closed by foreign host.

Do you have any suggestions? There isn't any pluging to check if a port is 
alive or not? Or to check telnet service?


At 13.52 16/04/2004, you wrote:
>Morgan Marodin wrote:
> >
> > Hi.
> >
> > Is possible to check availability of SQUID's realserver with ldirectord?
> > The man page tells about ftp, smtp, http, pop, nntp, imap, ldap or https
> > services.
> >
> > Is there any trick?
>possibly but I don't have a squid setup and I don't know what people do.
>How about having the squid check a webpage on some local machine
>(possibly even on the realservers).
>Joseph Mack PhD, High Performance Computing & Scientific Visualization
>SAIC, Supporting the EPA Research Triangle Park, NC 919-541-0007
>Federal Contact - John B. Smith 919-541-1087 - smith.johnb at epa.gov
>LinuxVirtualServer.org mailing list - lvs-users at LinuxVirtualServer.org
>Send requests to lvs-users-request at LinuxVirtualServer.org
>or go to http://www.in-addr.de/mailman/listinfo/lvs-users

More information about the lvs-users mailing list