<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE>Re: [Nagios-users] Check Squid Proxy ?</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>Use check_http.<BR>
<BR>
<BR>
--<BR>
Marc<BR>
<BR>
Sent from a very tiny wireless device with a very tiny unlit keyboard.<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: Brian Ipsen <Brian.Ipsen@andebakken.dk><BR>
To: nagios-users@lists.sourceforge.net <nagios-users@lists.sourceforge.net><BR>
Sent: Sat Nov 23 12:53:27 2002<BR>
Subject: [Nagios-users] Check Squid Proxy ?<BR>
<BR>
Hi!<BR>
<BR>
 How do I check that my Squid Proxy actually is running - and working (and<BR>
not just check the administrative port 3128) ??<BR>
<BR>
The check_tcp plugin could be of help.... but not quite... If I do like this<BR>
in a shell it works:<BR>
<BR>
# ./check_tcp -H 192.168.0.178 -p 8080 -s 'GET <A HREF="http://www.google.com">http://www.google.com</A><BR>
HTTP/1.0<BR>
<BR>
' -e 'HTTP/1.0 200 OK' -w 5 -c 10<BR>
0 1<BR>
TCP OK - 0 second response time on port 8000 [HTTP/1.0 200 OK<BR>
<BR>
The only problem is that command_line parameter in checkcommands.cfg doesn't<BR>
take an argument on several lines... and using \n or \r in the "-s"<BR>
parameter for check_tcp doesn't get translated .. What to do then ?<BR>
<BR>
/Brian<BR>
<BR>
<BR>
<BR>
<BR>
-------------------------------------------------------<BR>
This sf.net email is sponsored by:ThinkGeek<BR>
Welcome to geek heaven.<BR>
<A HREF="http://thinkgeek.com/sf">http://thinkgeek.com/sf</A><BR>
_______________________________________________<BR>
Nagios-users mailing list<BR>
Nagios-users@lists.sourceforge.net<BR>
<A HREF="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</A><BR>
</FONT>
</P>

</BODY>
</HTML>