[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [hobbit] Apache tag
- To: "'hobbit (at) hswn.dk'" <hobbit (at) hswn.dk>
- Subject: RE: [hobbit] Apache tag
- From: Kevin Hanrahan <Kevin (at) ewormhole.com>
- Date: Sun, 6 Feb 2005 23:44:46 -0500
That was excellent advice! It is working nicely now. Thank you sir!
Kevin
_____
From: Charles Jones [mailto:jonescr (at) cisco.com]
Sent: Sunday, February 06, 2005 11:28 PM
To: hobbit (at) hswn.dk
Subject: Re: [hobbit] Apache tag
Importance: Low
Okay, first you must make the indicated addition to your apache httpd.conf
(or you can make a hobbit.conf in apaches conf.d directory).
Then, you must restart apache for the change to take effect
(/etc/init.d/httpd restart).
Then, manually test the server-stats url to make sure it's working, by using
your browser and going to http://your.server.com/server-status?auto
<http://your.server.com/server-status?auto> (you can also go to
http://your.server.com/server-status/
<http://your.server.com/server-status/> to get some nice extended apache
performance info). You should get back something like this:
Total Accesses: 131577
Total kBytes: 796036
CPULoad: 1.0401
Uptime: 21595
ReqPerSec: 6.09294
BytesPerSec: 37746.7
BytesPerReq: 6195.16
BusyWorkers: 43
IdleWorkers: 13
Scoreboard:
RR__RWR___RR_R_RR_RRRRRRRRR_RRRRRRR__RRR_RRRRCRRRRR_RRRR....................
............................................................................
............................................................................
............................
Now, assuming you are getting back the server-status info, time to make sure
your bb-hosts is correctly configured to collect and graph the data. Heres
what I have in mine:
1.2.3.4 my.server.com # conn ssh http://1.2.3.4 <http://1.2.3.4>
apache=http://1.2.3.4/server-status?auto <http://1.2.3.4/server-status?auto>
LARRD:*,apache:apache|apache1|apache2|apache3
From what you said of your setup, I'm guessing your only problem is using
the wrong url for the apache tag (you used
"apache=http://192.168.1.25/hobbit/ <http://192.168.1.25/hobbit/> " which
just won't work - that's the kind of URL you would use for the http tag).
Hope this helped.
-Charles
Kevin Hanrahan wrote:
thanks for the reply. I did exactly as in the example before I wrote the
previous email and got nothing. That is why I was asking for help or further
clarification.
_____
From: Charles Jones [mailto:jonescr (at) cisco.com <mailto:jonescr (at) cisco.com> ]
Sent: Saturday, February 05, 2005 12:48 AM
To: hobbit (at) hswn.dk <mailto:hobbit (at) hswn.dk>
Subject: Re: [hobbit] Apache tag
Importance: Low
PERFORMANCE MONITORING TESTS
apache[=URL]
If you are running an Apache webserver, adding this tag makes bbtest-net
<http://192.168.0.103/hobbit/help/manpages/man1/bbtest-net.1.html> (1)
collect performance statistics from the Apache webserver by querying the URL
http://IP.ADDRESS.OF.HOST/server-status?auto
<http://IP.ADDRESS.OF.HOST/server-status?auto> . The response is sent as a
data-report and processed by the Hobbit hobbitd_larrd module into an RRD
file and an "apache" graph. If your webserver requires e.g. authentication,
or runs on a different URL for the server-status, you can provide the full
URL needed to fetch the server-status page, e.g.
apache=http://LOGIN:PASSWORD (at) 10.0.0.1/server-status?auto
<http://LOGIN:PASSWORD (at) 10.0.0.1/server-status?auto> for a password
protected server-status page, or
apache=http://10.0.0.1:8080/apache/server-status?auto
<http://10.0.0.1:8080/apache/server-status?auto> for a server listening on
port 8080 and with a different path to the server-status page.
Note that you need to enable the server-status URL in your Apache
configuration. The following configuration is needed:
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
allow from 127.0.0.1
</Location>
ExtendedStatus On
Change "127.0.0.1" to the IP-address of the server that runs your network
tests.
Kevin Hanrahan wrote:
Please explain the apache performance tag further. I added the following to
my bb-hosts for a host running apache:
apache=http://192.168.1.25/hobbit/ <http://192.168.1.25/hobbit/>
It is in fact the hobbit host. I get no apache column or anything
related....where did I make my mistake?