<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
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).
<br>
<br>
Then, you must restart apache for the change to take effect
(/etc/init.d/httpd restart).<br>
<br>
Then, manually test the server-stats url to make sure it's working, by
using your browser and going to
<a class="moz-txt-link-freetext" href="http://your.server.com/server-status?auto">http://your.server.com/server-status?auto</a> (you can also go to
<a class="moz-txt-link-freetext" href="http://your.server.com/server-status/">http://your.server.com/server-status/</a> to get some nice extended apache
performance info). You should get back something like this:<br>
<br>
<pre>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........................................................................................................................................................................................................
</pre>
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:<br>
<br>
1.2.3.4 my.server.com # conn ssh <a class="moz-txt-link-freetext" href="http://1.2.3.4">http://1.2.3.4</a>
apache=<a class="moz-txt-link-freetext" href="http://1.2.3.4/server-status?auto">http://1.2.3.4/server-status?auto</a>
LARRD:*,apache:apache|apache1|apache2|apache3<br>
<br>
>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=<a class="moz-txt-link-freetext" href="http://192.168.1.25/hobbit/">http://192.168.1.25/hobbit/</a>" which just won't work - that's the
kind of URL you would use for the http tag).<br>
<br>
Hope this helped.<br>
<br>
-Charles<br>
<br>
<br>
<br>
Kevin Hanrahan wrote:
<blockquote
cite="midEF22302EC121A246A79988281A534DFC082D@hermes.ewormhole"
type="cite">
<meta http-equiv="Content-Type" content="text/html; ">
<meta content="MSHTML 6.00.2800.1479" name="GENERATOR">
<div align="left" dir="ltr"><span class="107341414-06022005"><font
color="#0000ff" face="Arial" size="2">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. </font></span></div>
<br>
<div class="OutlookMessageHeader" align="left" dir="ltr" lang="en-us">
<hr tabindex="-1"><font face="Tahoma" size="2"><b>From:</b> Charles
Jones [<a class="moz-txt-link-freetext" href="mailto:jonescr@cisco.com">mailto:jonescr@cisco.com</a>] <br>
<b>Sent:</b> Saturday, February 05, 2005 12:48 AM<br>
<b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:hobbit@hswn.dk">hobbit@hswn.dk</a><br>
<b>Subject:</b> Re: [hobbit] Apache tag<br>
<b>Importance:</b> Low<br>
</font><br>
</div>
<h2>PERFORMANCE MONITORING TESTS</h2>
<dl compact="compact">
<dt>apache[=URL] </dt>
<dd>If you are running an Apache webserver, adding this tag makes <i><a
href="http://192.168.0.103/hobbit/help/manpages/man1/bbtest-net.1.html">bbtest-net</a>(1)</i>
collect performance statistics from the Apache webserver by querying
the URL <b><a href="http://IP.ADDRESS.OF.HOST/server-status?auto">http://IP.ADDRESS.OF.HOST/server-status?auto</a></b>.
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. <b>apache=<a
href="http://LOGIN:PASSWORD@10.0.0.1/server-status?auto">http://LOGIN:PASSWORD@10.0.0.1/server-status?auto</a></b>
for a password protected server-status page, or <b>apache=<a
href="http://10.0.0.1:8080/apache/server-status?auto">http://10.0.0.1:8080/apache/server-status?auto</a></b>
for a server listening on port 8080 and with a different path to the
server-status page.
<p><font color="#ff0000">Note that you need to enable the
server-status URL in your Apache configuration</font>. The following
configuration is needed: </p>
<p> <Location /server-status> <br>
SetHandler server-status <br>
Order deny,allow <br>
Deny from all <br>
allow from 127.0.0.1 <br>
</Location> <br>
ExtendedStatus On </p>
<p>Change "127.0.0.1" to the IP-address of the server that runs
your network tests. </p>
</dd>
</dl>
<br>
Kevin Hanrahan wrote:
<blockquote
cite="midEF22302EC121A246A79988281A534DFC082C@hermes.ewormhole"
type="cite">
<pre wrap="">
Please explain the apache performance tag further. I added the following to
my bb-hosts for a host running apache:
apache=<a class="moz-txt-link-freetext"
href="http://192.168.1.25/hobbit/">http://192.168.1.25/hobbit/</a>
It is in fact the hobbit host. I get no apache column or anything
related....where did I make my mistake?
</pre>
</blockquote>
<br>
</blockquote>
<br>
</body>
</html>