Xymon Mailing List Archive search

Apache tag

7 messages in this thread

list Kevin Hanrahan · Sat, 5 Feb 2005 22:07:30 -0500 ·
 
Please explain the apache performance tag further. I added the following to
my bb-hosts for a host running apache:

apache=http://192.168.1.25/hobbit/

It is in fact the hobbit host. I get no apache column or anything
related....where did I make my mistake?


KEvin
list Charles Jones · Sat, 05 Feb 2005 22:48:07 -0700 ·
    PERFORMANCE MONITORING TESTS

apache[=URL]
    If you are running an Apache webserver, adding this tag makes
    /bbtest-net
    <http://192.168.0.103/hobbit/help/manpages/man1/bbtest-net.1.html>;(1)/
    collect performance statistics from the Apache webserver by querying
    the URL *http://IP.ADDRESS.OF.HOST/server-status?auto*. The response
    is sent as a data-report and processed by the Hobbit hobbitd_larrd
    module into an RRD file and an "apache" graph. If your webserver
    requires e.g. authentication, or runs on a different URL for the
    server-status, you can provide the full URL needed to fetch the
    server-status page, e.g.
    *apache=http://LOGIN:PASSWORD at 10.0.0.1/server-status?auto* for a
    password protected server-status page, or
    *apache=http://10.0.0.1:8080/apache/server-status?auto* for a server
    listening on port 8080 and with a different path to the
    server-status page.

    Note that you need to enable the server-status URL in your Apache
    configuration. The following configuration is needed:

        <Location /server-status>
            SetHandler server-status
            Order deny,allow
            Deny from all
            allow from 127.0.0.1
        </Location>
        ExtendedStatus On

    Change "127.0.0.1" to the IP-address of the server that runs your
    network tests.
quoted from Kevin Hanrahan


Kevin Hanrahan wrote:
Please explain the apache performance tag further. I added the following to
my bb-hosts for a host running apache:

apache=http://192.168.1.25/hobbit/

It is in fact the hobbit host. I get no apache column or anything
related....where did I make my mistake?
 
list Kevin Hanrahan · Sun, 6 Feb 2005 09:54:28 -0500 ·
thanks for the reply. I did exactly as in the example before I wrote the
previous email and got nothing. That is why I was asking for help or further
clarification. 
From: Charles Jones [mailto:user-e86b4aeade4e@xymon.invalid] Sent: Saturday, February 05, 2005 12:48 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Apache tag
Importance: Low
quoted from Charles Jones


PERFORMANCE MONITORING TESTS


apache[=URL] 
If you are running an Apache webserver, adding this tag makes bbtest-net

<http://192.168.0.103/hobbit/help/manpages/man1/bbtest-net.1.html>; (1)
quoted from Charles Jones
collect performance statistics from the Apache webserver by querying the URL
http://IP.ADDRESS.OF.HOST/server-status?auto
<http://IP.ADDRESS.OF.HOST/server-status?auto>; . The response is sent as a
data-report and processed by the Hobbit hobbitd_larrd module into an RRD
file and an "apache" graph. If your webserver requires e.g. authentication,
or runs on a different URL for the server-status, you can provide the full
URL needed to fetch the server-status page, e.g.
apache=http://LOGIN:PASSWORD at 10.0.0.1/server-status?auto

<http://LOGIN:PASSWORD at 10.0.0.1/server-status?auto>  for a password
protected server-status page, or
apache=http://10.0.0.1:8080/apache/server-status?auto
<http://10.0.0.1:8080/apache/server-status?auto>;  for a server listening on
quoted from Charles Jones
port 8080 and with a different path to the server-status page. 

Note that you need to enable the server-status URL in your Apache
configuration. The following configuration is needed: 
    <Location /server-status>         SetHandler server-status         Order deny,allow         Deny from all         allow from 127.0.0.1     </Location>     ExtendedStatus On 
Change "127.0.0.1" to the IP-address of the server that runs your network
tests. 

Kevin Hanrahan wrote: 
 
Please explain the apache performance tag further. I added the following to

my bb-hosts for a host running apache:


apache=http://192.168.1.25/hobbit/ <http://192.168.1.25/hobbit/>; 
quoted from Charles Jones


It is in fact the hobbit host. I get no apache column or anything

related....where did I make my mistake?
list Charles Jones · Sun, 06 Feb 2005 21:28:19 -0700 ·
Okay, first you must make the indicated addition to your apache httpd.conf (or you can make a hobbit.conf in apaches conf.d directory).

Then, you must restart apache for the change to take effect (/etc/init.d/httpd restart).

Then, manually test the server-stats url to make sure it's working, by using your browser and going to http://your.server.com/server-status?auto  (you can also go to http://your.server.com/server-status/ to get some nice extended apache performance info).  You should get back something like this:

Total Accesses: 131577
Total kBytes: 796036
CPULoad: 1.0401
Uptime: 21595
ReqPerSec: 6.09294
BytesPerSec: 37746.7
BytesPerReq: 6195.16
BusyWorkers: 43
IdleWorkers: 13

Scoreboard: RR__RWR___RR_R_RR_RRRRRRRRR_RRRRRRR__RRR_RRRRCRRRRR_RRRR........................................................................................................................................................................................................

Now, assuming you are getting back the server-status info, time to make sure your bb-hosts is correctly configured to collect and graph the data.  Heres what I have in mine:

1.2.3.4    my.server.com  # conn ssh http://1.2.3.4 apache=http://1.2.3.4/server-status?auto LARRD:*,apache:apache|apache1|apache2|apache3

 From what you said of your setup, I'm guessing your only problem is using the wrong url for the apache tag (you used "apache=http://192.168.1.25/hobbit/"; which just won't work - that's the kind of URL you would use for the http tag).

Hope this helped.

-Charles
quoted from Kevin Hanrahan


Kevin Hanrahan wrote:
thanks for the reply. I did exactly as in the example before I wrote the previous email and got nothing. That is why I was asking for help or further clarification.

*From:* Charles Jones [mailto:user-e86b4aeade4e@xymon.invalid]
*Sent:* Saturday, February 05, 2005 12:48 AM
*To:* user-ae9b8668bcde@xymon.invalid
*Subject:* Re: [hobbit] Apache tag
*Importance:* Low


    PERFORMANCE MONITORING TESTS

apache[=URL]
    If you are running an Apache webserver, adding this tag makes
    /bbtest-net
    <http://192.168.0.103/hobbit/help/manpages/man1/bbtest-net.1.html>;(1)/
    collect performance statistics from the Apache webserver by
    querying the URL *http://IP.ADDRESS.OF.HOST/server-status?auto*.
    The response is sent as a data-report and processed by the Hobbit
    hobbitd_larrd module into an RRD file and an "apache" graph. If
    your webserver requires e.g. authentication, or runs on a
    different URL for the server-status, you can provide the full URL
    needed to fetch the server-status page, e.g.
    *apache=http://LOGIN:PASSWORD at 10.0.0.1/server-status?auto* for a
    password protected server-status page, or
    *apache=http://10.0.0.1:8080/apache/server-status?auto* for a
    server listening on port 8080 and with a different path to the
    server-status page.

    Note that you need to enable the server-status URL in your Apache
    configuration. The following configuration is needed:

        <Location /server-status>
            SetHandler server-status
            Order deny,allow
            Deny from all
            allow from 127.0.0.1
        </Location>
        ExtendedStatus On

    Change "127.0.0.1" to the IP-address of the server that runs your
    network tests.


Kevin Hanrahan wrote:
Please explain the apache performance tag further. I added the following to
my bb-hosts for a host running apache:

apache=http://192.168.1.25/hobbit/

It is in fact the hobbit host. I get no apache column or anything
related....where did I make my mistake?
 
list Kevin Hanrahan · Sun, 6 Feb 2005 23:44:46 -0500 ·
That was excellent advice! It is working nicely now. Thank you sir!
 
Kevin
quoted from Charles Jones


From: Charles Jones [mailto:user-e86b4aeade4e@xymon.invalid] 
Sent: Sunday, February 06, 2005 11:28 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Apache tag
Importance: Low


Okay, first you must make the indicated addition to your apache httpd.conf
(or you can make a hobbit.conf in apaches conf.d directory). 

Then, you must restart apache for the change to take effect
(/etc/init.d/httpd restart).

Then, manually test the server-stats url to make sure it's working, by using
your browser and going to http://your.server.com/server-status?auto
<http://your.server.com/server-status?auto>;   (you can also go to
http://your.server.com/server-status/
<http://your.server.com/server-status/>;  to get some nice extended apache
performance info).  You should get back something like this:


Total Accesses: 131577

Total kBytes: 796036

CPULoad: 1.0401

Uptime: 21595

ReqPerSec: 6.09294

BytesPerSec: 37746.7

BytesPerReq: 6195.16

BusyWorkers: 43

IdleWorkers: 13


Scoreboard:
RR__RWR___RR_R_RR_RRRRRRRRR_RRRRRRR__RRR_RRRRCRRRRR_RRRR....................
............................................................................
............................................................................
............................
Now, assuming you are getting back the server-status info, time to make sure
your bb-hosts is correctly configured to collect and graph the data.  Heres
what I have in mine:

1.2.3.4    my.server.com  # conn ssh http://1.2.3.4 <http://1.2.3.4>;
apache=http://1.2.3.4/server-status?auto <http://1.2.3.4/server-status?auto>;
quoted from Charles Jones
LARRD:*,apache:apache|apache1|apache2|apache3

From what you said of your setup, I'm guessing your only problem is using
the wrong url for the apache tag (you used

"apache=http://192.168.1.25/hobbit/ <http://192.168.1.25/hobbit/>; " which
quoted from Charles Jones
just won't work - that's the kind of URL you would use for the http tag).

Hope this helped.

-Charles


Kevin Hanrahan wrote: 

thanks for the reply. I did exactly as in the example before I wrote the
previous email and got nothing. That is why I was asking for help or further
clarification. 


From: Charles Jones [mailto:user-e86b4aeade4e@xymon.invalid <mailto:user-e86b4aeade4e@xymon.invalid> ] 
Sent: Saturday, February 05, 2005 12:48 AM
To: user-ae9b8668bcde@xymon.invalid <mailto:user-ae9b8668bcde@xymon.invalid> 
Subject: Re: [hobbit] Apache tag
Importance: Low


PERFORMANCE MONITORING TESTS


apache[=URL] 

If you are running an Apache webserver, adding this tag makes bbtest-net
<http://192.168.0.103/hobbit/help/manpages/man1/bbtest-net.1.html>; (1)
collect performance statistics from the Apache webserver by querying the URL
http://IP.ADDRESS.OF.HOST/server-status?auto
<http://IP.ADDRESS.OF.HOST/server-status?auto>; . The response is sent as a
data-report and processed by the Hobbit hobbitd_larrd module into an RRD
file and an "apache" graph. If your webserver requires e.g. authentication,
or runs on a different URL for the server-status, you can provide the full
URL needed to fetch the server-status page, e.g.
apache=http://LOGIN:PASSWORD at 10.0.0.1/server-status?auto
<http://LOGIN:PASSWORD at 10.0.0.1/server-status?auto>  for a password
protected server-status page, or
apache=http://10.0.0.1:8080/apache/server-status?auto
<http://10.0.0.1:8080/apache/server-status?auto>;  for a server listening on
port 8080 and with a different path to the server-status page. 


Note that you need to enable the server-status URL in your Apache
configuration. The following configuration is needed: 

    <Location /server-status> 
        SetHandler server-status 
        Order deny,allow 
        Deny from all 
        allow from 127.0.0.1 
    </Location> 
    ExtendedStatus On 

Change "127.0.0.1" to the IP-address of the server that runs your network
tests. 


Kevin Hanrahan wrote: 

 
Please explain the apache performance tag further. I added the following to

my bb-hosts for a host running apache:


apache=http://192.168.1.25/hobbit/ <http://192.168.1.25/hobbit/>; 


It is in fact the hobbit host. I get no apache column or anything

related....where did I make my mistake?
list Henrik Størner · Mon, 7 Feb 2005 08:19:48 +0000 (UTC) ·
In <user-52495c5a7289@xymon.invalid> Charles Jones <user-e86b4aeade4e@xymon.invalid> writes:

[detailed description of how to setup the apache monitoring]

Very nice. I hope you don't mind if I include this in the docs ?


Regards,
henrik
list Charles Jones · Mon, 07 Feb 2005 02:38:38 -0700 ·
quoted from Henrik Størner
Henrik Storner wrote:
In <user-52495c5a7289@xymon.invalid> Charles Jones <user-e86b4aeade4e@xymon.invalid> writes:

[detailed description of how to setup the apache monitoring]

Very nice. I hope you don't mind if I include this in the docs ?
 
user-f91fdb354e7f@xymon.invalid to help anyone that I can :-)

-Charles