Xymon Mailing List Archive search

multiple apache instance trending question

7 messages in this thread

list Steve McConnell · Tue, 29 Jan 2008 15:26:42 -0500 ·
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? 
steve


steve mcconnell
gsk
unix application hosting support
XXX-XXX-XXXX
list Charles Jones · Tue, 29 Jan 2008 13:37:46 -0700 ·
quoted from Steve McConnell
user-d0c05d6d01c9@xymon.invalid 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
list Steve McConnell · Tue, 29 Jan 2008 16:24:02 -0500 ·
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.

That is what I am looking to track 
steve


steve mcconnell
gsk
unix application hosting support
XXX-XXX-XXXX


"Charles Jones" <user-e86b4aeade4e@xymon.invalid> 29-Jan-2008 15:37
Please respond to user-ae9b8668bcde@xymon.invalid

 To
user-ae9b8668bcde@xymon.invalid
cc

Subject
Re: [hobbit] multiple apache instance trending question
quoted from Charles Jones


user-d0c05d6d01c9@xymon.invalid 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
list Charles Jones · Tue, 29 Jan 2008 14:41:28 -0700 ·
You can do that via something like this in bb-hosts:

page Apaches
0.0.0.0 Website1  # http apache=http://vhost1.yourdomain.com/server-status?auto TRENDS:*,apache:apache|apache1|apache2|apache3
0.0.0.0 Website2  # http apache=http://vhost2.yourdomain.com/server-status?auto TRENDS:*,apache:apache|apache1|apache2|apache3
....

This would allow you to track the various apache graphs for each of your sites you have running (available in the trends column)

-Charles
quoted from Steve McConnell


user-d0c05d6d01c9@xymon.invalid wrote:
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.

That is what I am looking to track


user-8132acb49198@xymon.invalid_ <mailto:user-d0c05d6d01c9@xymon.invalid> 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
list Steve McConnell · Tue, 29 Jan 2008 18:54:18 -0500 ·
ahhhh, I *was* making it too hard.

Thanks


steve mcconnell
gsk
unix application hosting support
XXX-XXX-XXXX


"Charles Jones" <user-e86b4aeade4e@xymon.invalid> 29-Jan-2008 16:41
quoted from Steve McConnell
Please respond to user-ae9b8668bcde@xymon.invalid

 To
user-ae9b8668bcde@xymon.invalid
cc

Subject
Re: [hobbit] multiple apache instance trending question


You can do that via something like this in bb-hosts:

page Apaches

0.0.0.0 Website1  # http apache=
http://vhost1.yourdomain.com/server-status?auto TRENDS:*,apache:apache|apache1|apache2|apache3
0.0.0.0 Website2  # http apache=
http://vhost2.yourdomain.com/server-status?auto TRENDS:*,apache:apache|apache1|apache2|apache3
quoted from Charles Jones
....

This would allow you to track the various apache graphs for each of your sites you have running (available in the trends column)

-Charles


user-d0c05d6d01c9@xymon.invalid wrote: 
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. 
That is what I am looking to track 


user-d0c05d6d01c9@xymon.invalid 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
list Tom L. Stewart · Wed, 30 Jan 2008 13:54:13 -0600 ·
We did a simpler method of just creating additional hosts for the
different apaches (by port number) like so (in bb-hosts).

 
0.0.0.0         hostname-80     # noconn http://xxx.xxx.xxx.xxx:80/
apache TRENDS:

*,apache:apache|apache1|apache2|apache3

0.0.0.0         hostname-8080     # noconn http://xxx.xxx.xxx.xxx:8080/
apache TRENDS:

*,apache:apache|apache1|apache2|apache3

 
Where xxx = ip address

 
Tom
quoted from Steve McConnell

 
From: user-d0c05d6d01c9@xymon.invalid [mailto:user-d0c05d6d01c9@xymon.invalid] 
Sent: Tuesday, January 29, 2008 2:27 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] multiple apache instance trending question

 
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?


steve 


steve mcconnell
gsk
unix application hosting support
XXX-XXX-XXXX
list Tom Stewart · Wed, 30 Jan 2008 15:08:41 -0500 ·
Great Name...Truly great name.
quoted from Tom L. Stewart

 
From: Stewart, Tom L. [mailto:user-f210f371749e@xymon.invalid] 
Sent: Wednesday, January 30, 2008 2:54 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] multiple apache instance trending question

 
We did a simpler method of just creating additional hosts for the
different apaches (by port number) like so (in bb-hosts).

 
0.0.0.0         hostname-80     # noconn http://xxx.xxx.xxx.xxx:80/
apache TRENDS:

*,apache:apache|apache1|apache2|apache3

0.0.0.0         hostname-8080     # noconn http://xxx.xxx.xxx.xxx:8080/
apache TRENDS:

*,apache:apache|apache1|apache2|apache3

 
Where xxx = ip address

 
Tom

 
From: user-d0c05d6d01c9@xymon.invalid [mailto:user-d0c05d6d01c9@xymon.invalid] 
Sent: Tuesday, January 29, 2008 2:27 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] multiple apache instance trending question

 
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?


steve 


steve mcconnell
gsk
unix application hosting support
XXX-XXX-XXXX


IMPORTANT: The information contained in this email and/or its attachments is confidential. If you are not the intended recipient, please notify the sender immediately by reply and immediately delete this message and all its attachments.  Any review, use, reproduction, disclosure or dissemination of this message or any attachment by an unintended recipient is strictly prohibited.  Neither this message nor any attachment is intended as or should be construed as an offer, solicitation or recommendation to buy or sell any security or other financial instrument.  Neither the sender, his or her employer nor any of their respective affiliates makes any warranties as to the completeness or accuracy of any of the information contained herein or that this message or any of its attachments is free of viruses.