Creates an Apache log by constantly requesting server-status on an Apache server. Stores log into SQLite3 database. Used on
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Anton Šijanec ba1a172d1e
fixed username to sijanec
2 years ago
README.md fixed username to sijanec 2 years ago
server-status-logger.php updated 2 years ago

README.md

server-status-logger

Creates an Apache log by constantly requesting server-status on an Apache server. Stores log into SQLite3 database. Used on http://razor.arnes.si/~asija3/dnevnik.php usage:

git clone https://github.com/sijanec/server-status-logger
cd server-status-logger
./server-status-logger.php http://example.example/server-status sqlite3.db

note: this program by default with zero sleep time between requests uses the whole cpu (core). That is an appropriate behaviour for most servers, since you will have to request server-status very quickly to capture all requests. If you have only one CPU (core), consider threading with systemd or limiting cpu percentage with cpulimit.