[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] multiple apache instance trending question
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] multiple apache instance trending question
- From: Charles Jones <jonescr (at) cisco.com>
- Date: Tue, 29 Jan 2008 13:37:46 -0700
- Authentication-results: sj-dkim-4; header.From=jonescr (at) cisco.com; dkim=pass ( sig from cisco.com/sjdkim4002 verified; );
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; l=4304; t=1201639069; x=1202503069; c=relaxed/simple; s=sjdkim4002; h=Content-Type:From:Subject:Content-Transfer-Encoding:MIME-Version; d=cisco.com; i=jonescr (at) cisco.com; z=From:=20Charles=20Jones=20<jonescr (at) cisco.com> |Subject:=20Re=3A=20[hobbit]=20multiple=20apache=20instance =20trending=20question |Sender:=20; bh=eWjTy+KEN0lcHiowyTz/FiIKf6BU1c8Qlj36P6t32aY=; b=NCGDF3VZwcWYBgueNRpPZDgu7fn0tzGbYEb5nYc1GbrDpRhCvDYAWoopbK z7/AuSaYIVwmcU96HEfb46gbkKH3D59cWdZ99/c59nwgbbLkg0ffqp4z3sTE bkNA7H3dZ1;
- References: <OF693AD856.14CDB5C3-ON852573DF.006C76A7-852573DF.0070566D (at) gsk.com>
- User-agent: Thunderbird 2.0.0.9 (X11/20071115)
steve.e.mcconnell (at) gsk.com wrote:
I have a new hobbit installation which is collecting and trending the
apache status data correctly.
For various reasons, I have about 7 separate apache instances on each
server that I would like to trend individually as well.
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:
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.
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.
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.
At this point, I think I should point out that I don't program in C
(many would say in any other language either.)
Is there anything else that I am missing? and am I making this too hard?
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:
PROC /usr/local/apache1/bin/httpd TRACK=apache1
PROC /usr/local/apache2/bin/httpd TRACK=apache2
...
-Charles