Simple Apache access logs monitor
- Python 100%
| .gitignore | ||
| apmon.py | ||
| example.png | ||
| LICENSE | ||
| README.md | ||
| requirements.txt | ||
apmon
Terminal dashboard for Apache httpd.
It shows:
- the Apache scoreboard (from
server-status?auto) with color-coded states - live-tailed Apache access logs from
/var/log/apache2/*.log
Requirements
- Python 3.11+
- Apache
mod_statusenabled and reachable athttp://localhost/server-status?auto - Read access to
/var/log/apache2/*.log
Python dependencies are listed in requirements.txt.
Install
apmon.py is executable and has a shebang pointing at the repo's virtualenv Python (apachemonitorvenv/bin/python). That means you can run it directly without “activating” a venv in your shell; it will use that interpreter automatically.
You still need to install dependencies into that same virtualenv.
python3 -m venv apachemonitorvenv
./apachemonitorvenv/bin/pip install -r requirements.txt
Run
./apmon.py
If you see errors fetching the scoreboard, verify Apache exposes server-status locally and that access restrictions allow localhost.
Screenshot
License
WTFPL. See LICENSE.
