Xymon Mailing List Archive search

Apache Graph

9 messages in this thread

list Stefan Freisler · Thu, 9 Nov 2006 16:22:46 +0100 ·
Hi,
who can i create an Apache Graph?

On my server is an apache installed and apche.rrd is created but no data 
will collect an graph isn's drawn.

There are no test to look for Apache.

 what is to do to have this test an graph?

thx
Stefan
list Tom Georgoulias · Thu, 09 Nov 2006 10:32:03 -0500 ·
quoted from Stefan Freisler
user-75055581652a@xymon.invalid wrote:
Hi,
who can i create an Apache Graph?

On my server is an apache installed and apche.rrd is created but no data 
will collect an graph isn's drawn.

There are no test to look for Apache.

 what is to do to have this test an graph?
Here are a few things to test:

Is apache was configured to allow the server-status to be displayed?

Can you can access the server-status page on the server you are trying 
to monitor through your web browser?

Can you get the server status data with a wget from your hobbit server?


Tom
-- 
Tom Georgoulias
Systems Engineer
McClatchy Interactive
list Lars Ebeling · Thu, 9 Nov 2006 17:59:59 +0100 ·
You have to test this:

http://hostname/server-status If this does not work, you have to change your httpd.conf add or remove # from the server status lines, like this:

<Location /server-status>                                          SetHandler server-status                                       Order deny,allow                                               Deny from all                                                  Allow from XXX.XXX.XXX.XXX YYY.YYY.YYY.YYY
</Location>                                                    
Change ExtendedStatus to On

Then you have to change you bb-hosts
Add this among the tests for your Apacheserver:

... telnet apache=http://XXX.XXX.XXX/server-status?auto 
And this to the LARRD:

LARD:*,apache:apache|apache1|apache2|apache3,.........

Hope this helps

REgards
Lars
  ----- Original Message -----   From: user-75055581652a@xymon.invalid   To: user-ae9b8668bcde@xymon.invalid   Sent: Thursday, November 09, 2006 4:22 PM
  Subject: [hobbit] Apache Graph
quoted from Tom Georgoulias


  Hi,   who can i create an Apache Graph? 
  On my server is an apache installed and apche.rrd is created but no data will collect an graph isn's drawn. 
  There are no test to look for Apache. 
   what is to do to have this test an graph? 
  thx   Stefan
list Stef Coene · Tue, 5 Dec 2006 20:04:58 +0100 ·
Hi,

I tried to get the apache graphs working.  Everything is working, they show up on the trends page, I can see the apache.rrd file and it is upated each 5 minutes.  However, there are no updates, so the graph shows NaNQ.

This is for an apache server, part of an oracle mid tier installation.  If you know oracle, it is possible they changed the layout of the server-status page.  I attached the server-status page.  Can somebody checks the layout of this page or has a solution for my problem ?


Stef
list Lars Ebeling · Tue, 5 Dec 2006 20:36:57 +0100 ·
This is what I get when running  http://host/server-status?auto .   Iam running Apache 2 on a HP-UX 11.11

Lars

----- Original Message ----- From: "Stef Coene" <user-dbffe946c0f4@xymon.invalid>
To: <user-ae9b8668bcde@xymon.invalid>
Sent: Tuesday, December 05, 2006 8:04 PM
quoted from Stef Coene
Subject: [hobbit] apache graph

Hi,

I tried to get the apache graphs working.  Everything is working, they show up
on the trends page, I can see the apache.rrd file and it is upated each 5
minutes.  However, there are no updates, so the graph shows NaNQ.

This is for an apache server, part of an oracle mid tier installation.  If you
know oracle, it is possible they changed the layout of the server-status
page.  I attached the server-status page.  Can somebody checks the layout of
this page or has a solution for my problem ?


Stef
list Stef Coene · Tue, 5 Dec 2006 21:27:53 +0100 ·
Hi,

The apache server is listening on port 7792 and I forgot to add ?auto to the 
url in bb-hosts.  But only the TA and TKB counters are updated.  I have the 
same problem on a linux box (apache 2)

rrdtool info apache.rrd | grep last_ds
ds[TA].last_ds = "5257984"
ds[TKB].last_ds = "15938577"
ds[BW].last_ds = "UNKN"
ds[IW].last_ds = "UNKN"
ds[CPU].last_ds = "UNKN"
ds[REQPERSEC].last_ds = "UNKN"

This is the server-status page:
Total Accesses: 5258069
Total kBytes: 15939014
CPULoad: .00565547
Uptime: 7100739
ReqPerSec: .740496
BytesPerSec: 2298.57
BytesPerReq: 3104.1
BusyServers: 2
IdleServers: 18
Scoreboard:


Stef
list Steve Aiello · Tue, 5 Dec 2006 15:38:47 -0500 ·
Is "ExtendedStatus On" in your httpd.conf ?  Otherwise not all the stats
will be shown.  Note that this option can "The collection of extended
status information can slow down the server." per the apache 2.0 docs.
quoted from Stef Coene
-----Original Message-----
From: Stef Coene [mailto:user-dbffe946c0f4@xymon.invalid] Sent: Tuesday, December 05, 2006 3:28 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] apache graph: UPDATE


Hi,

The apache server is listening on port 7792 and I forgot to add ?auto to the url in bb-hosts.  But only the TA and TKB counters are updated.  I have the same problem on a linux box (apache 2)

rrdtool info apache.rrd | grep last_ds
ds[TA].last_ds = "5257984"
ds[TKB].last_ds = "15938577"
ds[BW].last_ds = "UNKN"
ds[IW].last_ds = "UNKN"
ds[CPU].last_ds = "UNKN"
ds[REQPERSEC].last_ds = "UNKN"

This is the server-status page:
Total Accesses: 5258069
Total kBytes: 15939014
CPULoad: .00565547
Uptime: 7100739
ReqPerSec: .740496
BytesPerSec: 2298.57
BytesPerReq: 3104.1
BusyServers: 2
IdleServers: 18
Scoreboard:


Stef

list Stef Coene · Tue, 5 Dec 2006 21:55:41 +0100 ·
On Tuesday 05 December 2006 21:38, Aiello, Steve (GE, Corporate, consultant) 
quoted from Steve Aiello
wrote:
Is "ExtendedStatus On" in your httpd.conf ?  Otherwise not all the stats
will be shown.  Note that this option can "The collection of extended
status information can slow down the server." per the apache 2.0 docs.
Yes, I enabled debugging for rrd and this is in the log:

2006-12-05 21:50:18 hobbitd_rrd: Got message 5 @@data#5|1165351818.947607|
172.30.0.36||igfniasprd01|apache
2006-12-05 21:50:18 startpos 22029, fillpos 22029, endpos -1
2006-12-05 21:50:18 RRD update param 00: 'rrdupdate'
2006-12-05 21:50:18 RRD update param 
01: '/home/users/hobbit/data/rrd/igfniasprd01/apache.rrd'
2006-12-05 21:50:18 RRD update param 02: '-t'
2006-12-05 21:50:18 RRD update param 03: 'TA:TKB:BW:IW:CPU:REQPERSEC'
2006-12-05 21:50:18 RRD update param 
04: '1165351818:5258570:15942591:3:17:.00566578:.740424'
2006-12-05 21:50:18 Want msg 6, startpos 22029, fillpos 22029, endpos -1, 
usedbytes=0, bufleft=506354

This is the info in the rrd file
rrdtool info apache.rrd | grep last
last_update = 1165351818
ds[TA].last_ds = "5258570"
ds[TKB].last_ds = "15942591"
ds[BW].last_ds = "UNKN"
ds[IW].last_ds = "UNKN"
ds[CPU].last_ds = "UNKN"
ds[REQPERSEC].last_ds = "UNKN"

So it looks like only the first 2 numbers are stored and the rest is ignored.


Stef
list Stef Coene · Tue, 5 Dec 2006 21:59:52 +0100 ·
Pff, it's working.  I grep'ed for last_ds in the rrd file and that's not the 
last value in the rrd like I thought.


Stef