nagios monitors localhost and i get http warnings/error/forbidden on the service
Marc Powell
marc at ena.com
Tue Jun 3 15:03:31 CEST 2008
On Jun 3, 2008, at 4:14 AM, Yaniv wrote:
> Hello
>
> I just started using nagios…
> I have installed yesterday the latest stable build and plugins…
>
> Service State Information
> Current Status:
> WARNING
> (for 0d 11h 27m 56s) (Has been acknowledged)
> Status Information:
> HTTP WARNING: HTTP/1.1 403 Forbidden\
Note that it's handy to include the matching service and command
definitions for troubleshooting.
> [Mon Jun 02 18:10:59 2008] [error] [client 127.0.0.1] Directory
> index forbidden by Options directive: /var/www/html/
/var/www/html, the site directory for the apache web host that you're
checking, doesn't have a default index page (i.e. index.html,
index.htm or whatever apache is configured to accept). You don't allow
directory listing of that directory in apache so apache generates a
403 Forbidden error as a result. The nagios plugin is reporting
exactly as it should and you do have an HTTP 'problem'.
>
> And the access_log
>
> tail access_log
> 192.168.11.200 - nagiosadmin [02/Jun/2008:18:39:13 +0300] "GET /
> nagios/stylesheets/extinfo.css HTTP/1.1" 304 - "http://192.168.11.163/nagios/cgi-bin/extinfo.cgi?type=2&host=localhost&service=HTTP
> " "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.14)
> Gecko/20080404 Firefox/2.0.0.14"
>
This didn't include the actual check above.
If you're only wanting to check that apache is running on localhost,
I'd suggest just creating a blank index.html file in /var/www/html. If
you're wanting to verify that a specific virtual host is running,
you'll want to add a -H and possibly -u parameter to check_http. You
can run 'check_http --help' to see the parameters it understands. This
is getting into more advanced topics and I'd suggest reading the
documentation and examining the sample config files so that you
understand the interaction between service{} check_commands and
command{} definitions.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list