<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Pascal MIQUET wrote:
<blockquote cite="mid2DB6674E64C314478B384C12B8990F501B7ED7@srv2k3sbs.hafiba.local" type="cite">
<meta http-equiv="Content-Type" content="text/html; ">
<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>