Basic Nagios Check_http question

Matthew Wilson matthewwilson at dsl.pipex.com
Thu Oct 9 19:27:58 CEST 2003


Hi Larry,
I don't use this plugin but from looking at the help (./check_http --help) a
few things seem wrong:

If you are using an IP you need -I not -H
The plugin is looking to connect to a URL, not to find a file.  Therefore
you need to specify the document's web address, rather than it's physical
path.  Therefore on my system I would use

check_http -H localhost -u /nagios/main.html

as nagios is at http://localhost/nagios/

hope that helps
Matthew Wilson
----- Original Message ----- 
From: "Larry Crowder" <CrowderLG at ldschurch.org>
To: <nagios-users at lists.sourceforge.net>
Sent: Thursday, October 09, 2003 6:14 PM
Subject: [Nagios-users] Basic Nagios Check_http question



Larry C

(Command I use.  This is on the Nagios server and checks the Nagios
main.html on its own directory structure.  I use a real IP address but use
localhost here)
./check_http -H localhost  -a nagios:nagios -u
/usr/local/nagios/share/main.html
(Results)
HTTP WARNING: HTTP/1.1 404 Not Found

(I checked with ls to make sure I was looking in the right directory)

ls /usr/local/nagios/share
contexthelp  docs  images  index.html  main.html  media  robots.txt
side.html  ssi  stylesheets


Larry



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
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