RE: [Spong-users] Spong http
Brought to you by:
apremselaar,
sljohnson
|
From: Samaroo, R. <rsa...@NO...> - 2001-02-14 20:01:54
|
Hi David,
Thanks for the info.. I had tried 1 before and it didn't work.
I then use 2 and was able to figure out where the problem was..The default
path directory was misspelt only on a few web servers..
Once again thanks..
Rabin..
-----Original Message-----
From: David Bronder [mailto:dav...@ui...]
Sent: Wednesday, February 14, 2001 12:36 PM
To: rsa...@NO...
Cc: spo...@li...
Subject: Re: [Spong-users] Spong http
You can either modify the defaults, modify the settings for just the
web servers in question, or create expected content on those web
servers.
The de-facto standard filename for an index page is index.html. If
that's not what your web servers are configured to use, or if some
of them don't have index pages in the document root, you'll get a
404 (not found) if you explicitly request /index.html. Most likely
the servers coming up green have the index.html.
Option 1:
Look in your spong.conf file for $HTTPURLS{"DEFAULT"}. If it's set
something like this:
$HTTPURLS{"DEFAULT"} = [ "http://_HOST_/index.html" ];
you can try changing it to this:
$HTTPURLS{"DEFAULT"} = [ "http://_HOST_/" ];
That will make spong-network look for whatever the web server thinks
is the top-level index page. You could also change it to look for
some other URL that will be available on all (or most) of your web
servers.
Option 2:
For each of the web servers where you're getting 404s, you can add
an entry to spong.conf like the following:
$HTTPURLS{"www1"} = [ "http://_HOST_/some/file" ];
where "some/file" is served by that web server. The value of this
hash is a list, so you can have it check multiple URLs for a given
host. The _HOST_ string is replaced in the check with the hostname
of the server being checked.
We use /robots.txt for some of our servers.
Also, review the Spong documentation and FAQ regarding use of fully
qualified hostnames with Spong.
Option 3:
For each of the web servers where you're getting 404s, you can
create an index.html in the document root. I don't recommend this
option, since you really want Spong to conform to what you need to
monitor, not make the stuff you're monitoring conform to Spong. :)
Finally, remember to restart spong-network after you make changes to
the %HTTPURLS hash.
Good luck!
=Dave
Samaroo, Rabin wrote:
>
> Hello Spong-Guru's,
>
> I am monitoring some web servers and a few of them show Yellow with the
> messages below when I clicked on it..
>
> I tried changing the default in both the host and the spong server and
same
> problem.. However I have other clients with the same configuration and it
> works!!
>
> Any idea of where to look and what configuration changes needs to be made?
>
>
> Summary: warning - 404 - _HOST_/index.html
>
>
----------------------------------------------------------------------------
> ----
>
> ->HEAD /index.html HTTP/1.1
> Host: www1:80
> HTTP/1.1 404 Not found
> Server: Netscape-Enterprise/3.6 SP2
> Date: Wed, 14 Feb 2001 17:07:17 GMT
> Content-type: text/html
> Content-length: 207
>
--
Hello World. David Bronder - Systems
Admin
Segmentation Fault ITS-SPA, Univ. of
Iowa
Core dumped, disk trashed, quota filled, soda warm.
dav...@ui...
|