User Tools

Site Tools


doc:appunti:linux:sa:cacti_apache

Script ss_apache_stats.php per Cacti

Testing with wget

wget --quiet -O - "http://host.domain.tldserver-status?auto" | grep '^Scoreboard:'

Testing the PHP on the command line

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
doc/appunti/linux/sa/cacti_apache.txt · Last modified: 2025/03/03 14:32 by niccolo