Apache Status auf der Kommandozeile abfragen
Mit Hilfe von ftasv kann der Status eines Apache-Servers auf der Kommandozeile abgefragt werden. Dies ist besonders nützlich, wenn die Server-Status-Seite des Apaches durch ein Problem nicht mehr erreichbar ist. Im FreeBSD Portbaum findet man ftasv unter www/ftasv:
# cd /usr/ports/www/ftasv && make install clean
Damit ftasv verwendet werden kann, muss das Status-Modul aktiviert und der Apache entsprechend konfiguriert werden:
LoadModule status_module libexec/apache2/mod_status.so
<IfModule mod_status.c>
ScoreBoardFile /var/run/apache_status
ExtendedStatus On
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from localhost
</Location>
</IfModule>
Nachdem die neue Konfiguration aktiviert wurde, kann der Apache-Status als root mit ftasv ausgelesen werden:
# ftasv /var/run/apache_status 6473 _ 83.76.xx.xx tinderbox.chruetertee.ch GET /tb/templates/paefchen/tinderstyle.css HTTP/1.1 6805 K 83.76.xx.xx tinderbox.chruetertee.ch GET /tb/ HTTP/1.1 7026 _ 83.76.xx.xx tinderbox.chruetertee.ch GET /tb/templates/paefchen/images/hdr_fill.png HTTP/1.1 7094 _ 93.186.xx.xx tinderbox.chruetertee.ch GET /tb/index.php?action=latest_buildports_rss HTTP/1.1 7331 _ tinderbox.chruetertee.ch tinderbox.chruetertee.ch GET /server-status?auto HTTP/1.1 7589 C 83.76.xx.xx tinderbox.chruetertee.ch GET /tb/templates/paefchen/tinderstyle.js HTTP/1.1 41883 _ 83.76.xx.xx tinderbox.chruetertee.ch GET /tb/templates/paefchen/images/hdr_fill.png HTTP/1.1 42153 _ 212.47.xx.xx tinderbox.chruetertee.ch GET /tinderbox/index.php HTTP/1.1 42155 C 83.76.xx.xx tinderbox.chruetertee.ch GET /tb/templates/paefchen/images/hdr_fill.png HTTP/1.1
Mehr Informationen findet man in der Datei /usr/local/share/doc/ftasv/README.