<br><font size=2 face="Arial">ahhhh, I *was* making it too hard.</font>
<br>
<br><font size=2 face="Arial">Thanks</font>
<br>
<br><font size=2 face="Arial"><br>
<br>
steve mcconnell<br>
gsk<br>
unix application hosting support<br>
919-282-3052</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>"Charles Jones"
<jonescr@cisco.com></b> </font>
<p><font size=1 face="sans-serif">29-Jan-2008 16:41</font>
<table border>
<tr valign=top>
<td bgcolor=white>
<div align=center><font size=1 face="sans-serif">Please respond to hobbit@hswn.dk</font></div></table>
<br>
<td width=59%><font size=1 face="sans-serif">       
</font>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif">hobbit@hswn.dk</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">Re: [hobbit] multiple apache instance
trending question</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=3>You can do that via something like this in bb-hosts:<br>
<br>
page Apaches<br>
0.0.0.0 Website1  # http apache=</font><a href="http://vhost1.yourdomain.com/server-status?auto"><font size=3 color=blue><u>http://vhost1.yourdomain.com/server-status?auto</u></font></a><font size=3>
TRENDS:*,apache:apache|apache1|apache2|apache3<br>
0.0.0.0 Website2  # http apache=</font><a href="http://vhost2.yourdomain.com/server-status?auto"><font size=3 color=blue><u>http://vhost2.yourdomain.com/server-status?auto</u></font></a><font size=3>
TRENDS:*,apache:apache|apache1|apache2|apache3<br>
....<br>
<br>
This would allow you to track the various apache graphs for each of your
sites you have running (available in the trends column)<br>
<br>
-Charles<br>
<br>
</font><font size=3 color=blue><u><br>
</u></font><a href=mailto:steve.e.mcconnell@gsk.com><font size=3 color=blue><u>steve.e.mcconnell@gsk.com</u></font></a><font size=3>
wrote: </font>
<br><font size=2 face="Arial"><br>
Thanks for the reply, I had neglected to add that in to my tracking, which
I have now done.  But I don't think that will get me the Apache Worker
status (# busy and idle) , Apache CPU stats, and requests per second.</font><font size=3>
<br>
</font><font size=2 face="Arial"><br>
That is what I am looking to track <br>
</font><font size=3><br>
<br>
</font><font size=3 color=blue><u><br>
</u></font><a href=mailto:steve.e.mcconnell@gsk.com><font size=3 color=blue><u>steve.e.mcconnell@gsk.com</u></font></a><font size=3>
wrote: </font><font size=2 face="Arial"><br>
<br>
I have a new hobbit installation which is collecting and trending the apache
status data correctly.</font><font size=3> </font><font size=2 face="Arial"><br>
<br>
For various reasons, I have about 7 separate apache instances on each server
that I would like to trend individually as well. <br>
<br>
To accomplish this, I think that I would have to do the following in order
to get hobbit (4.2.0)  to trend this data:</font><font size=3> </font><font size=2 face="Arial"><br>
<br>
edit ~/bbnet/bbtest-net.c and copy the apache section (lines 601-637) the
requisite number of times changing the subsequent apache references to
something like 2apache, then 3apache, etc. <br>
Modify the  ~/hobbitd/rrd/do_apache.c file basically copying the entire
thing starting at line 13 (int do_apache_rrd(char *hostname, char *testname,
char *msg, time_t tstamp) but changing each instance of apache to 2apache,
then 3apache, etc. Then recompile and redeploy. <br>
<br>
After redeploying, I would also need to modify hobbitgraph.cfg copying
the apache section and modifying with 2apache, 3apache, etc for the name
of the graph as well as the rrd files.</font><font size=3> </font><font size=2 face="Arial"><br>
<br>
At this point, I think I should point out that I don't program in C (many
would say in any other language either.)</font><font size=3> </font><font size=2 face="Arial"><br>
<br>
Is there anything else that I am missing? and am I making this too hard?
</font><font size=3><br>
<br>
I assume all of the apache instances are not running out of the same directory,
so why not track the processes by their full path in  hobbit-clients.cfg:
<br>
<br>
PROC /usr/local/apache1/bin/httpd TRACK=apache1<br>
PROC /usr/local/apache2/bin/httpd TRACK=apache2<br>
...<br>
<br>
-Charles </font>
<br>
<br>