- Yodeck API poller (every 10 min, paginated, 310 players) - SQLite persistence (players + activity logs) - SNMP v2c agent via net-snmp pass_persist - Zabbix API auto host creation/update (6.0+) - Flask web dashboard with live player status and log - Docker deployment with persistent volume - dev_server.py for local testing without Docker Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
20 lines
519 B
Python
20 lines
519 B
Python
import logging
|
|
import os
|
|
|
|
logging.basicConfig(
|
|
level=logging.INFO,
|
|
format='%(asctime)s %(levelname)s %(name)s: %(message)s',
|
|
)
|
|
|
|
from app.config import WEB_PORT, DB_PATH
|
|
from app.database import init_db
|
|
from app.scheduler import start_scheduler
|
|
from app.web import create_app
|
|
|
|
if __name__ == '__main__':
|
|
os.makedirs(os.path.dirname(os.path.abspath(DB_PATH)), exist_ok=True)
|
|
init_db()
|
|
start_scheduler()
|
|
flask_app = create_app()
|
|
flask_app.run(host='0.0.0.0', port=WEB_PORT, use_reloader=False)
|