<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<tt>Just curious - if you open the index.php/html, are there any
<?php ?> tags in it? And did you install Nagios by package or
from source?<br>
<br>
kind regards,<br>
Michael<br>
</tt><br>
nadia kheffache wrote the following on 15.07.2009 10:48:
<blockquote cite="mid:518044.92279.qm@web25505.mail.ukl.yahoo.com"
type="cite">
<pre wrap="">Hi Guy,
it work's! thank you, i have juste do this:
cp /usr/local/nagios/share/index.php /usr/local/nagios/share/index.html
Thank you very much
Nadia
--- En date de : Mer 15.7.09, Guy Waugh <a class="moz-txt-link-rfc2396E" href="mailto:guidosh@gmail.com"><guidosh@gmail.com></a> a écrit :
</pre>
<blockquote type="cite">
<pre wrap="">De: Guy Waugh <a class="moz-txt-link-rfc2396E" href="mailto:guidosh@gmail.com"><guidosh@gmail.com></a>
Objet: Re: [Nagios-users] error to access on nagios web
À: "nadia kheffache" <a class="moz-txt-link-rfc2396E" href="mailto:nadiakheffache@yahoo.fr"><nadiakheffache@yahoo.fr></a>, "Nagios Users Mail-list" <a class="moz-txt-link-rfc2396E" href="mailto:nagios-users@lists.sourceforge.net"><nagios-users@lists.sourceforge.net></a>
Date: Mercredi 15 Juillet 2009, 10h29
Hi Nadia,
It's good to make sure you send a copy of all replies
to the list -- that way, people with the same problem later
on get to see the whole conversation :-)
Anyway...
Is there an 'index.html' file in
/usr/local/nagios/share ? If a file called
'index.html' does exist there, is there a line like
this in your apache configuration file:
DirectoryIndex index.html
Regards,
Guy.
On Wed, Jul 15, 2009 at 9:03 AM,
nadia kheffache <a class="moz-txt-link-rfc2396E" href="mailto:nadiakheffache@yahoo.fr"><nadiakheffache@yahoo.fr></a>
wrote:
Hi Guy,
i have these error in my log file:
[root@serveur nagios-plugins-1.4.11]# tail -f
/etc/httpd/logs/error_log
[Wed Jul 15 10:09:50 2009] [error] [client 192.168.3.25]
Directory index forbidden by rule: /usr/local/nagios
/share/
[Wed Jul 15 10:09:51 2009] [error] [client 192.168.3.25]
Directory index forbidden by rule: /usr/local/nagios
/share/
[Wed Jul 15 10:09:52 2009] [error] [client 192.168.3.25]
Directory index forbidden by rule: /usr/local/nagios
/share/
[Wed Jul 15 10:10:15 2009] [error] [client 127.0.0.1]
Directory index forbidden by rule: /var/www/html/
[Wed Jul 15 10:15:15 2009] [error] [client 127.0.0.1]
Directory index forbidden by rule: /var/www/html/
[Wed Jul 15 10:20:15 2009] [error] [client 127.0.0.1]
Directory index forbidden by rule: /var/www/html/
[Wed Jul 15 10:25:15 2009] [error] [client 127.0.0.1]
Directory index forbidden by rule: /var/www/html/
[Wed Jul 15 10:30:15 2009] [error] [client 127.0.0.1]
Directory index forbidden by rule: /var/www/html/
[Wed Jul 15 10:35:15 2009] [error] [client 127.0.0.1]
Directory index forbidden by rule: /var/www/html/
[Wed Jul 15 10:40:15 2009] [error] [client 127.0.0.1]
Directory index forbidden by rule: /var/www/html/
--- En date de : Mer 15.7.09, Guy Waugh <a class="moz-txt-link-rfc2396E" href="mailto:guidosh@gmail.com"><guidosh@gmail.com></a>
a écrit :
</pre>
<blockquote type="cite">
<pre wrap="">De: Guy Waugh <a class="moz-txt-link-rfc2396E" href="mailto:guidosh@gmail.com"><guidosh@gmail.com></a>
</pre>
</blockquote>
<blockquote type="cite">
<pre wrap="">Objet: Re: [Nagios-users] error to access on nagios
</pre>
</blockquote>
<pre wrap="">web
</pre>
<blockquote type="cite">
<pre wrap="">À: "nadia kheffache" <a class="moz-txt-link-rfc2396E" href="mailto:nadiakheffache@yahoo.fr"><nadiakheffache@yahoo.fr></a>
</pre>
</blockquote>
<blockquote type="cite">
<pre wrap="">Cc: <a class="moz-txt-link-abbreviated" href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a>
</pre>
</blockquote>
<blockquote type="cite">
<pre wrap="">Date: Mercredi 15 Juillet 2009, 9h52
</pre>
</blockquote>
<blockquote type="cite">
<pre wrap="">Hi Nadia,
</pre>
</blockquote>
<blockquote type="cite">
<pre wrap="">
</pre>
</blockquote>
<blockquote type="cite">
<pre wrap="">What does the apache error log say?
</pre>
</blockquote>
<blockquote type="cite">
<pre wrap="">
</pre>
</blockquote>
<blockquote type="cite">
<pre wrap="">Regards,
</pre>
</blockquote>
<blockquote type="cite">
<pre wrap="">Guy.
</pre>
</blockquote>
<blockquote type="cite">
<pre wrap="">On Wed, Jul 15, 2009 at 8:29 AM,
</pre>
</blockquote>
<blockquote type="cite">
<pre wrap="">nadia kheffache <a class="moz-txt-link-rfc2396E" href="mailto:nadiakheffache@yahoo.fr"><nadiakheffache@yahoo.fr></a>
</pre>
</blockquote>
<blockquote type="cite">
<pre wrap="">wrote:
</pre>
</blockquote>
<blockquote type="cite">
<pre wrap="">I'm having some issues setting up the web
</pre>
</blockquote>
<pre wrap="">interface for
</pre>
<blockquote type="cite">
<pre wrap="">Nagios. I have follow <a class="moz-txt-link-freetext" href="http://nagios.sourceforge.net/docs/2_0/cgiauth.html">http://nagios.sourceforge.net/docs/2_0/cgiauth.html</a>
</pre>
</blockquote>
<blockquote type="cite">
<pre wrap="">instructions to the letter and I'm getting
</pre>
</blockquote>
<blockquote type="cite">
<pre wrap="">Forbidden
</pre>
</blockquote>
<blockquote type="cite">
<pre wrap="">You don't have permission to access /nagios on
</pre>
</blockquote>
<pre wrap="">this
</pre>
<blockquote type="cite">
<pre wrap="">server.
</pre>
</blockquote>
<pre wrap="">__________________________________________________________________
</pre>
<blockquote type="cite">
<pre wrap="">Apache/2.0.52 (Red Hat) Server at vm-redhat Port 80
</pre>
</blockquote>
<blockquote type="cite">
<pre wrap="">i have a right permission on these file:
</pre>
</blockquote>
<blockquote type="cite">
<pre wrap="">[root@spvcol ~]# ll
</pre>
</blockquote>
<pre wrap="">/usr/local/nagios/etc/htpasswd.users
</pre>
<blockquote type="cite">
<pre wrap="">-rwxrwxr-x 1 apache apache 26 sep 16 2008
</pre>
</blockquote>
<blockquote type="cite">
<pre wrap="">/usr/local/nagios/etc/htpasswd.users
</pre>
</blockquote>
<pre wrap="">------------------------------------------------------------
</pre>
<blockquote type="cite">
<pre wrap="">nagios.conf:
</pre>
</blockquote>
<pre wrap="">"/etc/httpd/conf.d/nagios.conf"
</pre>
<blockquote type="cite">
<pre wrap=""># SAMPLE CONFIG SNIPPETS FOR APACHE WEB SERVER
</pre>
</blockquote>
<blockquote type="cite">
<pre wrap=""># Last Modified: 11-26-2005
</pre>
</blockquote>
<blockquote type="cite">
<pre wrap="">#
</pre>
</blockquote>
<blockquote type="cite">
<pre wrap=""># This file contains examples of entries that need
</pre>
</blockquote>
<blockquote type="cite">
<pre wrap=""># to be incorporated into your Apache web server
</pre>
</blockquote>
<blockquote type="cite">
<pre wrap=""># configuration file. Customize the paths, etc. as
</pre>
</blockquote>
<blockquote type="cite">
<pre wrap=""># needed to fit your system.
</pre>
</blockquote>
<blockquote type="cite">
<pre wrap="">ScriptAlias /nagios/cgi-bin
</pre>
</blockquote>
<blockquote type="cite">
<pre wrap="">"/usr/local/nagios/sbin"
</pre>
</blockquote>
<blockquote type="cite">
<pre wrap=""><Directory "/usr/local/nagios/sbin">
</pre>
</blockquote>
<blockquote type="cite">
<pre wrap=""># SSLRequireSSL
</pre>
</blockquote>
<blockquote type="cite">
<pre wrap=""> Options ExecCGI
</pre>
</blockquote>
<blockquote type="cite">
<pre wrap=""> AllowOverride None
</pre>
</blockquote>
<blockquote type="cite">
<pre wrap=""> Order allow,deny
</pre>
</blockquote>
<blockquote type="cite">
<pre wrap=""> Allow from all
</pre>
</blockquote>
<blockquote type="cite">
<pre wrap=""># Order deny,allow
</pre>
</blockquote>
<blockquote type="cite">
<pre wrap=""># Deny from all
</pre>
</blockquote>
<blockquote type="cite">
<pre wrap=""># Allow from 127.0.0.1
</pre>
</blockquote>
<blockquote type="cite">
<pre wrap=""> AuthName "Nagios Access"
</pre>
</blockquote>
<blockquote type="cite">
<pre wrap=""> AuthType Basic
</pre>
</blockquote>
<blockquote type="cite">
<pre wrap=""> AuthUserFile /usr/local/nagios/etc/htpasswd.users
</pre>
</blockquote>
<blockquote type="cite">
<pre wrap=""> Require valid-user
</pre>
</blockquote>
<blockquote type="cite">
<pre wrap=""></Directory>
</pre>
</blockquote>
<blockquote type="cite">
<pre wrap="">Alias /nagios "/usr/local/nagios/share"
</pre>
</blockquote>
<blockquote type="cite">
<pre wrap=""><Directory "/usr/local/nagios/share">
</pre>
</blockquote>
<blockquote type="cite">
<pre wrap=""># SSLRequireSSL
</pre>
</blockquote>
<blockquote type="cite">
<pre wrap=""> Options None
</pre>
</blockquote>
<blockquote type="cite">
<pre wrap=""> AllowOverride None
</pre>
</blockquote>
<blockquote type="cite">
<pre wrap=""> Order allow,deny
</pre>
</blockquote>
<blockquote type="cite">
<pre wrap=""> Allow from all
</pre>
</blockquote>
<blockquote type="cite">
<pre wrap=""># Order deny,allow
</pre>
</blockquote>
<blockquote type="cite">
<pre wrap=""># Deny from all
</pre>
</blockquote>
<blockquote type="cite">
<pre wrap=""># Allow from 127.0.0.1
</pre>
</blockquote>
<blockquote type="cite">
<pre wrap=""> AuthName "Nagios Access"
</pre>
</blockquote>
<blockquote type="cite">
<pre wrap=""> AuthType Basic
</pre>
</blockquote>
<blockquote type="cite">
<pre wrap=""> AuthUserFile /usr/local/nagios/etc/htpasswd.users
</pre>
</blockquote>
<blockquote type="cite">
<pre wrap=""> Require valid-user
</pre>
</blockquote>
<blockquote type="cite">
<pre wrap=""></Directory>
</pre>
</blockquote>
<pre wrap="">________________________________________________________________
</pre>
<blockquote type="cite">
<pre wrap="">Thank for your help
</pre>
</blockquote>
<pre wrap="">------------------------------------------------------------------------------
</pre>
<blockquote type="cite">
<pre wrap="">Enter the BlackBerry Developer Challenge
</pre>
</blockquote>
<blockquote type="cite">
<pre wrap="">This is your chance to win up to $100,000 in prizes!
</pre>
</blockquote>
<pre wrap="">For a
</pre>
<blockquote type="cite">
<pre wrap="">limited time,
</pre>
</blockquote>
<blockquote type="cite">
<pre wrap="">vendors submitting new applications to BlackBerry App
</pre>
</blockquote>
<blockquote type="cite">
<pre wrap="">World(TM) will have
</pre>
</blockquote>
<blockquote type="cite">
<pre wrap="">the opportunity to enter the BlackBerry Developer
</pre>
</blockquote>
<blockquote type="cite">
<pre wrap="">Challenge. See full prize
</pre>
</blockquote>
<blockquote type="cite">
<pre wrap="">details at: <a class="moz-txt-link-freetext" href="http://p.sf.net/sfu/Challenge">http://p.sf.net/sfu/Challenge</a>
</pre>
</blockquote>
<blockquote type="cite">
<pre wrap="">_______________________________________________
</pre>
</blockquote>
<blockquote type="cite">
<pre wrap="">Nagios-users mailing list
</pre>
</blockquote>
<blockquote type="cite">
<pre wrap=""><a class="moz-txt-link-abbreviated" href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a>
</pre>
</blockquote>
<blockquote type="cite">
<pre wrap=""><a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</a>
</pre>
</blockquote>
<blockquote type="cite">
<pre wrap="">::: Please include Nagios version, plugin version (-v)
</pre>
</blockquote>
<pre wrap="">and
</pre>
<blockquote type="cite">
<pre wrap="">OS when reporting any issue.
</pre>
</blockquote>
<blockquote type="cite">
<pre wrap="">::: Messages without supporting info will risk being
</pre>
</blockquote>
<pre wrap="">sent
</pre>
<blockquote type="cite">
<pre wrap="">to /dev/null
</pre>
</blockquote>
<pre wrap="">
</pre>
</blockquote>
<pre wrap=""><!---->
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: <a class="moz-txt-link-freetext" href="http://p.sf.net/sfu/Challenge">http://p.sf.net/sfu/Challenge</a>
_______________________________________________
Nagios-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a>
<a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</a>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
DI (FH) Michael Friedrich
<a class="moz-txt-link-abbreviated" href="mailto:michael.friedrich@univie.ac.at">michael.friedrich@univie.ac.at</a>
Tel: +43 1 4277 14359
Vienna University Computer Center
Universitaetsstrasse 7
A-1010 Vienna, Austria
</pre>
</body>
</html>