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:57] 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
-<code>+</code>
  
 <code> <code>
Line 12: Line 24:
  
  
-<code bash> 
-wget --quiet -O - "http://host.domain.tldserver-status?auto" | grep '^Scoreboard:' 
-</code> 
doc/appunti/linux/sa/cacti_apache.1741003051.txt.gz · Last modified: 2025/03/03 12:57 by niccolo