[XML] ApacheStats version 0.4

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

klaubert
Posts: 2
Joined: Tue Jun 21, 2005 9:08 am

Version 0.6

Post by klaubert »

Where I can found version 0.6? In project page is just 0.4 (that is great)!

tnx

kbt
User avatar
Pumpi
Cacti User
Posts: 259
Joined: Wed Jan 14, 2004 3:23 am
Location: Germany

Post by Pumpi »

Hello,

I'm trying to run this script on my new Fedora Core 4 Test System with Cactid 0.8.6e but I have no success:

Run the script from command line I get:

perl ws_apachestats.pl localhost
<HTML>
<HEAD><TITLE>An Error Occurred</TITLE></HEAD>
<BODY>
<H1>An Error Occurred</H1>
403 Forbidden
</BODY>
</HTML>



H have already :

Code: Select all

<Location /server-status>
    SetHandler server-status
    Order allow,deny
    Allow from 127.0.0.1
    Allow from localhost
    Deny from all
</Location>
and

Code: Select all

ExtendedStatus On
and

Code: Select all

Listen 127.0.0.1:80 
in my httpd.conf

Any ideas ?
User avatar
Pumpi
Cacti User
Posts: 259
Joined: Wed Jan 14, 2004 3:23 am
Location: Germany

Post by Pumpi »

Problem fixed with some httpd.conf tweaking ....

:wink:
dennysp
Posts: 5
Joined: Thu Feb 24, 2005 4:56 pm

Post by dennysp »

I'm also getting that error, would you mind sharing what you did to correct it?
User avatar
Pumpi
Cacti User
Posts: 259
Joined: Wed Jan 14, 2004 3:23 am
Location: Germany

Post by Pumpi »

My settings now are (httpd.conf)

Listen *:80

ExtendedStatus On

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



<VirtualHost localhost>
<Location /server-status>
SetHandler server-status
Allow from localhost
Allow from 127.0.0.1
Deny from all
</Location>
</VirtualHost>
psm
Posts: 1
Joined: Wed Jul 06, 2005 3:47 pm
Location: Lannion, Britany, France

Post by psm »

Hi,

This module is working great after some conf adjustements, however, when trying to graph "WebServer - Apache Statistics - Bytes / Request" i got this error from RRDTool on the Debug Graph Management:

Code: Select all

ERROR: Could not parse color in ''
Any ideas ?
I tried to change the color but no success :|
I got this even if the "WebServer - Apache Statistics - kBits / s" graph is working properly.
Any help would be appreciate !
User avatar
Pumpi
Cacti User
Posts: 259
Joined: Wed Jan 14, 2004 3:23 am
Location: Germany

Post by Pumpi »

Perhaps same problem irishpadres already mentioned:
Look in the Graph Template of the particular graph you are having problems with. Make sure you don't have any Area, Stack, Line1, Line2, or Line3 graph items configured with color as None. These types require that a color is defined
stigmata
Posts: 49
Joined: Tue Nov 23, 2004 10:26 am

Post by stigmata »

first: thx for apachestats - great work! ;)

other thing, the scripts creates no "WebServer - Apache Statistics - Bytes / Request" and "WebServer - Apache Statistics - Thread Details (%)" graphs - whats goin wrong?

apache.conf:

### Allow server status reports, with the URL of http://servername/server-status
<IfModule mod_status.c>
<Location /server-status>
SetHandler server-status
<IfModule mod_access.c>
Order deny,allow
Deny from all
allow from 192.168.1.199
#Allow from .your_domain.com
</IfModule>
</Location>
ExtendedStatus On
</IfModule>

the other graphs ("WebServer - Apache Statistics - Thread Details", "WebServer - Apache Statistics - kBits / s", WebServer - Apache Statistics - Hits / s") works without any problems!

Why displays the "WebServer - Apache Statistics - Hits / s" graph the hits per seconds? I prefer display per minute - is it possible to change this? how? :)

Regards,
stigmata
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Fix for Graph Problems, 2 new Graphs

Post by gandalf »

rebel, CactiPadawan, psm, stigmata
The solution for your graph problems are described in the follwoing post: http://forums.cacti.net/viewtopic.php?p=44950#44950.
There's a successor to apachestats-0.4 as well, including CPULoad and Thread Scoreborad (designed after the screenshot of Rolf Poser).
If you're going to use the new templates, be sure to pay attention to the warnings if you're already using the old templates
Reinhard
jlynch
Posts: 2
Joined: Sun Aug 15, 2004 2:18 am
Contact:

Optimisation of Apache.

Post by jlynch »

Ok so we have had .4 of this script running for some time now and have a good history of our useage and server/apache loads can seomone help interpret the out put for optimising Apache? For example if our average hits per second is x and a max is y would we set min spare servers to x and maxspare servers to y?

Any thoughts on utilising this great data?


Justin
lsilva
Posts: 2
Joined: Fri Mar 27, 2009 8:17 am

Graph Scale

Post by lsilva »

Guys,

My server has a very little number of requests/sec:

Current Time: Monday, 06-Apr-2009 10:30:44 BRT
Restart Time: Friday, 03-Apr-2009 13:15:07 BRT
Parent Server Generation: 2
Server uptime: 2 days 21 hours 15 minutes 36 seconds
Total accesses: 29 - Total Traffic: 33 kB
CPU Usage: u.65 s.14 cu0 cs0 - .000317% CPU load
.000116 requests/sec - 0 B/second - 1165 B/request
2 requests currently being processed, 8 idle workers

In Cacti, the Y axis shows "10m".....Shouldn't it show 0,1, or something lower than 10m?
Attachments
Current graph
Current graph
apache.png (21.78 KiB) Viewed 4951 times
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests