summaryrefslogblamecommitdiffstats
path: root/README.md
blob: ea38a6c3b16cb9de822d3110b33332bc6053e196 (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/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`.