<!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">
<a class="moz-txt-link-abbreviated" href="mailto:steve.e.mcconnell@gsk.com">steve.e.mcconnell@gsk.com</a> wrote:
<blockquote
 cite="mid:OF693AD856.14CDB5C3-ON852573DF.006C76A7-852573DF.0070566D@gsk.com"
 type="cite"><br>
  <font face="Arial" size="2">I have a new hobbit installation which is
collecting and trending the apache status data correctly.</font>
  <br>
  <br>
  <font face="Arial" size="2">For various reasons, I have about 7
separate
apache instances on each server that I would like to trend individually
as well. </font>
  <br>
  <br>
  <font face="Arial" size="2">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>
  <br>
  <br>
  <font face="Arial" size="2">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. </font>
  <br>
  <font face="Arial" size="2">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.
  </font><br>
  <br>
  <font face="Arial" size="2">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>
  <br>
  <br>
  <font face="Arial" size="2">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>
  <br>
  <br>
  <font face="Arial" size="2">Is there anything else that I am missing?
and am I making this too hard? </font>
  <br>
  <br>
  <font face="Arial" size="2"></font></blockquote>
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<br>
</body>
</html>