to monitor which web sites are using on the hosts

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
nagiostool
Posts: 72
Joined: Wed Jul 20, 2011 2:17 am

to monitor which web sites are using on the hosts

Post 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 ???
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

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

Post 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
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

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

Post 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.
Nicholas Scott
Former Nagios employee
Locked