[hobbit] multiple apache instance trending question

Charles Jones jonescr at cisco.com
Tue Jan 29 22:41:28 CET 2008


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


steve.e.mcconnell at gsk.com 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
>
>
>
> _steve.e.mcconnell at gsk.com_ <mailto: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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20080129/17d04f5b/attachment.html>


More information about the Xymon mailing list