User Tools

Site Tools


doc:appunti:linux:sa:cacti_apache

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
doc:appunti:linux:sa:cacti_apache [2025/03/03 12:56] niccolodoc:appunti:linux:sa:cacti_apache [2025/03/03 14:32] (current) niccolo
Line 1: Line 1:
 ====== Script ss_apache_stats.php per Cacti ====== ====== Script ss_apache_stats.php per Cacti ======
 +
 +Download the PHP script from https://github.com/Busindre/Apache-mod_status-Cacti/blob/master/ss_apache_stats.php
 +
 +FIXME How to enable in Apache
 +
 +===== Testing with wget =====
 +
 +<code bash>
 +wget --quiet -O - "http://host.domain.tldserver-status?auto" | grep '^Scoreboard:'
 +</code>
 +
 +===== Testing the PHP on the command line =====
  
 <code> <code>
 php /usr/share/cacti/site/scripts/ss_apache_stats.php host.domain.tld php /usr/share/cacti/site/scripts/ss_apache_stats.php host.domain.tld
-  apache_total_hits:400269 apache_total_kbytes:4712916 apache_cpuload:1.30209 
-  apache_busy_workers:1 apache_idle_workers:74 thread_W:74 threadS:0 threadR:0 
-  threadW:1 threadK:0 threadD:0 threadC:0 threadL:0 threadG:0 threadI:0 thread_O:75 
 </code> </code>
 +
 +<code>
 +apache_total_hits:400269 apache_total_kbytes:4712916 apache_cpuload:1.30209
 +apache_busy_workers:1 apache_idle_workers:74 thread_W:74 threadS:0 threadR:0
 +threadW:1 threadK:0 threadD:0 threadC:0 threadL:0 threadG:0 threadI:0 thread_O:75
 +</code>
 +
  
doc/appunti/linux/sa/cacti_apache.1741002979.txt.gz · Last modified: 2025/03/03 12:56 by niccolo