summaryrefslogblamecommitdiffstats
path: root/README.md
blob: 92553405123965c4eff6041b854329cdc1d9e440 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                                                                                                                                     





                                                                          
                                                                                                                                                                                                                                                                                                                                                   
# 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/asija3/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`.