Page 1 of 1

to monitor which web sites are using on the hosts

Posted: Tue Sep 06, 2011 11:16 am
by nagiostool
Hi
i have a small query is it possible to determine which websites are currently being opened on the host ?
I mean by web site monitoring wizard only a particular web site can be monitored .so, is there any means by which
above can be obtained or my modifications can be done to plugins to achieve the above ???

Re: to monitor which web sites are using on the hosts

Posted: Tue Sep 06, 2011 1:28 pm
by mguthrie
Try running the following to see the full list of options for website/http checks.

Code: Select all

cd /usr/local/nagios/libexc
./check_http -h
Then take a look at the following for creating custom checks and Managing Plugins in XI.
http://assets.nagios.com/downloads/nagi ... hp#plugins

Re: to monitor which web sites are using on the hosts

Posted: Tue Sep 06, 2011 1:31 pm
by nscott
It wouldn't be very easy but here is a way that might work for you:

In your main httpd.conf put in this:

Code: Select all

ExtendedStatus On
<Location /server-status>
SetHandler server-status
Order Deny,Allow
Allow from all
</Location>
Note that ExtendedStatus On is OUTSIDE any tag, as in NOT inside in the Location tag. Then restart httpd. Also note that this is very sensitive information and you would probably want to add a Allow from 127.0.0.1 and Deny from all. Then write a scraper script to count each PID and have it tally how many per VirtualHost entry.

So to answer your question it wouldn't be an easy fix, but it can be done.