<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE></TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2769" name=GENERATOR></HEAD>
<BODY text=#000000 bgColor=#ffffff>
<DIV dir=ltr align=left><SPAN class=396570814-17102005><FONT face=Arial 
color=#0000ff size=2>That's it.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=396570814-17102005><FONT face=Arial 
color=#0000ff size=2>This does the job.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=396570814-17102005><FONT face=Arial 
color=#0000ff size=2>But, let me ask you this.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=396570814-17102005><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=396570814-17102005><FONT face=Arial 
color=#0000ff size=2>If I want to check a specific port, do I have to edit the 
checkcommand.cfg to add a custom http ?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=396570814-17102005><FONT face=Arial 
color=#0000ff size=2>Same for accessing a specific path to the web server 
?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=396570814-17102005><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=396570814-17102005><FONT face=Arial 
color=#0000ff size=2>Thanks for your help</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=396570814-17102005><FONT face=Arial 
color=#0000ff size=2>Regards</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=396570814-17102005><FONT face=Arial 
color=#0000ff size=2>Pascal Miquet</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=fr dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>De :</B> Rob Moss [mailto:robmossrm@aol.com] 
<BR><B>Envoyé :</B> lundi 17 octobre 2005 16:02<BR><B>À :</B> Pascal 
MIQUET<BR><B>Cc :</B> 
nagios-users@lists.sourceforge.net<BR><B>Objet :</B> Re: [Nagios-users] 
Check_http[Scanned]<BR></FONT><BR></DIV>
<DIV></DIV>Pascal MIQUET wrote: 
<BLOCKQUOTE 
cite=mid2DB6674E64C314478B384C12B8990F501B7ED7@srv2k3sbs.hafiba.local 
type="cite">
  <META content="MSHTML 6.00.2900.2769" name=GENERATOR>
  <DIV><SPAN class=003464313-17102005><FONT face=Arial size=2>Using NAGIOS 2 
  Nagios Plugins 1.4.2</FONT></SPAN></DIV>
  <DIV><SPAN class=003464313-17102005><FONT face=Arial size=2>If I issue the 
  command ./check_http -H 192.168.1.4  I get the warning HTTP/1.1 403 
  Fobidden</FONT></SPAN></DIV>
  <DIV><SPAN class=003464313-17102005><FONT face=Arial size=2>with the -v option 
  I get the content of the default web server, which is a Centos 
  3.5</FONT></SPAN></DIV>
  <DIV><SPAN class=003464313-17102005></SPAN> </DIV>
  <DIV><SPAN class=003464313-17102005><FONT face=Arial size=2>On the web server 
  side, I got a Directory index forbidden by rule : 
  /var/www/html/</FONT></SPAN></DIV>
  <DIV><SPAN class=003464313-17102005></SPAN> </DIV>
  <DIV><SPAN class=003464313-17102005><FONT face=Arial size=2>So all seems that 
  the server side needs to be tuned to get the right 
  response.</FONT></SPAN></DIV>
  <DIV><SPAN class=003464313-17102005><FONT face=Arial size=2>Note that if I 
  issue the command check_http -H 192.168.1.4 -u /nagios the response is 
  OK</FONT></SPAN></DIV>
  <DIV><SPAN class=003464313-17102005></SPAN></DIV></BLOCKQUOTE><BR>This is the 
webserver configuration causing the problem.<BR><BR>To work around this, drop an 
index file (usually named 'index.html') into the /var/www/html 
directory..<BR><BR>If that doesn't work, you need to check your configuration 
and see why it's giving a 403 forbidden error, usually to do with directory 
permissions, or missing index file..<BR><BR>rob.<BR><BR></BODY></HTML>