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 ???
to monitor which web sites are using on the hosts
-
nagiostool
- Posts: 72
- Joined: Wed Jul 20, 2011 2:17 am
Re: to monitor which web sites are using on the hosts
Try running the following to see the full list of options for website/http checks.
Then take a look at the following for creating custom checks and Managing Plugins in XI.
http://assets.nagios.com/downloads/nagi ... hp#plugins
Code: Select all
cd /usr/local/nagios/libexc
./check_http -hhttp://assets.nagios.com/downloads/nagi ... hp#plugins
Re: to monitor which web sites are using on the hosts
It wouldn't be very easy but here is a way that might work for you:
In your main httpd.conf put in this:
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.
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>So to answer your question it wouldn't be an easy fix, but it can be done.
Nicholas Scott
Former Nagios employee
Former Nagios employee