<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3314" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=073050403-24112008><FONT face=Arial 
color=#0000ff size=2>Hi Ralph</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=073050403-24112008><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=073050403-24112008><FONT face=Arial 
color=#0000ff size=2>This script works a treat.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=073050403-24112008></SPAN><SPAN 
class=073050403-24112008><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=073050403-24112008><FONT face=Arial 
color=#0000ff size=2>Thanks</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=073050403-24112008><FONT face=Arial 
color=#0000ff size=2>    Vernon</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Ralph Mitchell 
[mailto:ralphmitchell@gmail.com] <BR><B>Sent:</B> Saturday, 22 November 2008 
12:23 AM<BR><B>To:</B> hobbit@hswn.dk<BR><B>Subject:</B> Re: [hobbit] Testing 
external web through a proxy<BR></FONT><BR></DIV>
<DIV></DIV>Looks like your proxy requires authentication via Kerberos or NTLM or 
GSS-Negotiate.  Dunno if Xymon can do those.  Luckily the curl tool 
(httpp://<A href="http://curl.haxx.se">curl.haxx.se</A>) *can* do those...  
I haven't had to use them, but it should not be too hard to bang out an ext 
script to do the check.  Something along these 
lines:<BR><BR>     #!/bin/sh<BR>     
curl -x <A 
href="http://ourproxy.ourdomain.com:8080">http://ourproxy.ourdomain.com:8080</A> 
\<BR>           
--proxy-anyauth -U hobbituser:hobbitpassword 
\<BR>           -s -S -L -o 
/dev/null <A 
href="http://www.google.com/">http://www.google.com/</A><BR>     
if [ "$?" -eq "0" ]; then<BR>       
COLOR=green<BR>       MESSAGE="Pinged Google 
OK"<BR>     else<BR>       
COLOR=RED<BR>       MESSAGE="Failed to reach 
Google"<BR>     fi<BR>     $BB $BBDISP 
"status www,google,com.home $COLOR `date`<BR>$MESSAGE"<BR><BR>Obviously that can 
be expanded quite a lot...  :)  Drop it somewhere on your Xymon server 
(maybe in server/ext) and set up a block in server/etc/hobbitlaunch.cfg to fire 
it off as often as you want.  You may need to give the full path for curl, 
which is probably /usr/bin/curl.<BR><BR>Ralph Mitchell<BR><BR><BR>
<DIV class=gmail_quote>On Fri, Nov 21, 2008 at 1:30 AM, Everett, Vernon <SPAN 
dir=ltr><<A 
href="mailto:Vernon.Everett@woodside.com.au">Vernon.Everett@woodside.com.au</A>></SPAN> 
wrote:<BR>
<BLOCKQUOTE class=gmail_quote 
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
  <DIV><FONT face="Arial, sans-serif" size=2>
  <DIV>Hi all</DIV>
  <DIV> </DIV>
  <DIV>I am trying to test our interent connectivity by checking Google through 
  our proxy.</DIV>
  <DIV>(Once I get this right, I want to start testing some of our external web 
  pages in the same manner)</DIV>
  <DIV> </DIV>
  <DIV>I have configured this in bb-hosts</DIV>
  <DIV><A href="http://0.0.0.0" 
  target=_blank>0.0.0.0</A>         <A 
  href="http://www.google.com" target=_blank><FONT 
  color=#0000ff><U>www.google.com</U></FONT></A>          
  # noconn <A 
  href="http://hobbituser:hobbitpassword@ourproxy.ourdomain.com:8080/http://www.google.com" 
  target=_blank><FONT 
  color=#0000ff><U>http://hobbituser:hobbitpassword@ourproxy.ourdomain.com:8080/http://www.google.com</U></FONT></A></DIV>
  <DIV> </DIV>
  <DIV>And I get this.</DIV>
  <DIV><FONT face="Courier New, monospace"><A 
  href="http://hobbit/hobbit/gifs/yellow.gif" target=_blank><FONT 
  color=#0000ff><U>yellow</U></FONT></A> <A href="http://www.google.com.au/" 
  target=_blank><FONT color=#0000ff><U>http://www.google.com.au/</U></FONT></A> 
  - Proxy Authentication Required<BR><BR>HTTP/1.1 407 Proxy Authentication 
  Required ( The ISA Server requires authorization to fulfill the request. 
  Access to the Web Proxy filter is denied.  )<BR>Via: 1.1 <FONT 
  face="Courier New, monospace">PXYHOSTNAME<BR></FONT>Proxy-Authenticate: 
  Negotiate<BR>Proxy-Authenticate: Kerberos<BR>Proxy-Authenticate: 
  NTLM<BR>Connection: Keep-Alive<BR>Proxy-Connection: Keep-Alive<BR>Pragma: 
  no-cache<BR>Cache-Control: no-cache<BR>Content-Type: 
  text/html<BR>Content-Length: 4118  
  <BR><BR>Seconds:     0.02</FONT></DIV>
  <DIV><FONT face="Courier New, monospace"></FONT> </DIV>
  <DIV>Any assistance appreciated.</DIV>
  <DIV> </DIV>
  <DIV>Regards</DIV>
  <DIV>    Vernon</DIV>
  <DIV> </DIV></FONT><PRE>NOTICE: This email and any attachments are confidential. 
They may contain legally privileged information or 
copyright material. You must not read, copy, use or 
disclose them without authorisation. If you are not an 
intended recipient, please contact us at once by return 
email and then delete both messages and all attachments.
</PRE></DIV></BLOCKQUOTE></DIV><BR><pre>
NOTICE: This email and any attachments are confidential. 
They may contain legally privileged information or 
copyright material. You must not read, copy, use or 
disclose them without authorisation. If you are not an 
intended recipient, please contact us at once by return 
email and then delete both messages and all attachments.
</pre></BODY></HTML>