ApacheStats 0.8.2 (multiple RRD, Low hdd, Script Server)
Moderators: Developers, Moderators
ss_apache_stats.php only returns
- apache_total_hits
- apache_total_kbytes
- apache_cpuload
- apache_busy_workers
- apache_idle_workers
- thread_*
I don't know why the original authors did not use the apache2 "BytesPerSec" value. Maybe because it's one instant value ?, and does not reflect the traffic over the last 5 minuts.
- apache_total_hits
- apache_total_kbytes
- apache_cpuload
- apache_busy_workers
- apache_idle_workers
- thread_*
I don't know why the original authors did not use the apache2 "BytesPerSec" value. Maybe because it's one instant value ?, and does not reflect the traffic over the last 5 minuts.
- Attachments
-
- @fmangeant, for info :p
- ApacheStats.png (26.47 KiB) Viewed 15263 times
Cacti: 0.8.7g | Spine: 0.8.7g
Plugins: RRDclean - Weathermap - Thold - Realtime
My Template: ApacheStats 0.8.2 (multiple RRD, Low disk usage, Script Server)
Plugins: RRDclean - Weathermap - Thold - Realtime
My Template: ApacheStats 0.8.2 (multiple RRD, Low disk usage, Script Server)
Interesting !
Could you post current apachestats template kbit/s vs your BytesPerSec version ? If it's more accurate we have to upgrade the template
Could you post current apachestats template kbit/s vs your BytesPerSec version ? If it's more accurate we have to upgrade the template
Cacti: 0.8.7g | Spine: 0.8.7g
Plugins: RRDclean - Weathermap - Thold - Realtime
My Template: ApacheStats 0.8.2 (multiple RRD, Low disk usage, Script Server)
Plugins: RRDclean - Weathermap - Thold - Realtime
My Template: ApacheStats 0.8.2 (multiple RRD, Low disk usage, Script Server)
it seems to have broken the "bytes per hit hit" but looks like we are overhauling apache stats anyways. mostly i just changed the rrd to GAUGE and stopped cacti from messing with the numbers. But I dont know how to fix the text line (current avg max).
in cacti/scripts/ss_apache_stats.php change:
in cacti/scripts/ss_apache_stats.php change:
Code: Select all
break;
case "BytesPerSec":
if (($section == "kbytes") or ($section == "all"))
- Attachments
-
- apcahe_total_kbytes.xml
- i think this is right.
- (3.55 KiB) Downloaded 616 times
I have setup one test to graph this new entry.
I will change total_kbit with bytes/sec in the default template if it's better
I will change total_kbit with bytes/sec in the default template if it's better
Cacti: 0.8.7g | Spine: 0.8.7g
Plugins: RRDclean - Weathermap - Thold - Realtime
My Template: ApacheStats 0.8.2 (multiple RRD, Low disk usage, Script Server)
Plugins: RRDclean - Weathermap - Thold - Realtime
My Template: ApacheStats 0.8.2 (multiple RRD, Low disk usage, Script Server)
I'm getting this error
[root@reporting scripts]# php ss_apache_stats.php 192.168.1.208
PHP Warning: file_get_contents(http://192.168.1.208/server-status?auto): failed to open stream: HTTP request failed! HTTP/1.1 401 Authorization Required
in /home/cacti/scripts/ss_apache_stats.php on line 72
thread_W:0 threadS:0 threadR:0 threadW:0 threadK:0 threadD:0 threadC:0 threadL:0 threadG:0 threadI:0
PHP Warning: file_get_contents(http://192.168.1.208/server-status?auto): failed to open stream: HTTP request failed! HTTP/1.1 401 Authorization Required
in /home/cacti/scripts/ss_apache_stats.php on line 72
thread_W:0 threadS:0 threadR:0 threadW:0 threadK:0 threadD:0 threadC:0 threadL:0 threadG:0 threadI:0
I've got apachestats up and running, but mod security is blocking the server-status requests by ss_apache_stats.php. If I access the server-status page using a regular browser it works fine, but the cacti script is being denied.
I'm using the mod security rules that are supplied with the application itself. I could comment out a few of the rules, however there seem to be quite a few of them causing problems, anyone got a modsecurity rule to fix this?
php ss_apache_stats.php 127.0.0.1
Warning: file_get_contents(http://127.0.0.1/server-status?auto): failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request
in /home/www/cacti-admin/scripts/ss_apache_stats.php on line 72
thread_W:0 threadS:0 threadR:0 threadW:0 threadK:0 threadD:0 threadC:0 threadL:0 threadG:0 threadI:0 thread_O:0newbox:/home/www/cact
I'm using the mod security rules that are supplied with the application itself. I could comment out a few of the rules, however there seem to be quite a few of them causing problems, anyone got a modsecurity rule to fix this?
php ss_apache_stats.php 127.0.0.1
Warning: file_get_contents(http://127.0.0.1/server-status?auto): failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request
in /home/www/cacti-admin/scripts/ss_apache_stats.php on line 72
thread_W:0 threadS:0 threadR:0 threadW:0 threadK:0 threadD:0 threadC:0 threadL:0 threadG:0 threadI:0 thread_O:0newbox:/home/www/cact
Similar issue here:
Obviously a permission error, but I'm unsure of how to proceed.
Code: Select all
xaos@pandora:~/public_html/cacti/scripts> php ss_apache_stats.php localhost
apache_busy_workers:1 apache_idle_workers:9 thread_W:9 threadS:0 threadR:0 threadW:1 threadK:0 threadD:0 threadC:0 threadL:0 threadG:0 threadI:0 thread_O:140PHP Warning: Unknown: open(/var/lib/php5/sess_8euqc64c95ilspn38ckfnlmclfovuq3h, O_RDWR) failed: Permission denied (13) in Unknown on line 0
PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php5) in Unknown on line 0
*bumpage*
Note that this problem does not occur when the script is run as root, only when the script is run as the same user as cacti.
Note that this problem does not occur when the script is run as root, only when the script is run as the same user as cacti.
Code: Select all
pandora:/home/xaos/public_html/cacti/scripts # php ss_apache_stats.php 192.168.1.10 threads
thread_W:6 threadS:0 threadR:0 threadW:1 threadK:0 threadD:0 threadC:1 threadL:0 threadG:0 threadI:0 thread_O:142
Do I need to install any apache module?
Hi.
I installed successfully the ApacheStats 0.8 on cacti 0.8.7b
But my all graphs are emthy.
Do I need to setup any module on apache?
Manny THX
I installed successfully the ApacheStats 0.8 on cacti 0.8.7b
But my all graphs are emthy.
Do I need to setup any module on apache?
Manny THX
-
- Posts: 8
- Joined: Sun Mar 16, 2008 9:20 pm
how to enable the server status of apache
As I also came across the same problem, could you teach me how to enable the server status of apache? Thanks
Who is online
Users browsing this forum: No registered users and 0 guests