How alessandromatera/lanowl works
lanowl is a self-hosted network-monitoring and maintenance application. Its main workflow watches devices and the internet, investigates incidents with read-only checks and a local model, then reports findings through alerts and the dashboard. Separate capabilities cover discovery, security reviews, updates, backups, and owner-approved actions. The README documents these workflows; sampled code confirms key boundaries such as passive probes and approval-gated actions. Some source modules are unsampled, so the graph avoids asserting their internal call wiring.
Main entry points: actions.py Approved actions · web.py Dashboard · wanwatch.py Internet watcher · discovery.py Device discovery
Components 25
Network monitoring
- Incident alerts
src/lanowl/alerts.py - Internet watcher
src/lanowl/wanwatch.py - Network probes
src/lanowl/probes.py - RouterOS access
src/lanowl/routeros.py - Device discovery
src/lanowl/discovery.py - Network facts
src/lanowl/netfacts.py - Health reporting
src/lanowl/report.py
Diagnosis and intelligence
- AI investigator
src/lanowl/agent.py - Diagnostic checks
src/lanowl/checks.py - Model context
src/lanowl/prompts.py - History and records
src/lanowl/records.py
Security and discovery
- Security review
src/lanowl/exposure.py - Host log review
src/lanowl/hostlog.py - Vulnerability scans
src/lanowl/cves.py
Device maintenance
- Update checks
src/lanowl/updates.py - Device backups
src/lanowl/backups.py - Approved actions
src/lanowl/actions.py - Container updates
src/lanowl/containers.py
Application interface
- Runtime coordinator
src/lanowl/main.py - Dashboard
src/lanowl/web.py - Setup and settings
src/lanowl/settingsweb.py - Login controls
src/lanowl/login.py - Notification sinks
src/lanowl/sinks.py
Other components
- Network owner
- Ollama model
Connections 20
- Network owner → Dashboard: views status
README.md - Network owner → Dashboard: asks questions
README.md - Network owner → Approved actions: approves fixes
README.md - Internet watcher → Incident alerts: reports blips
README.md - Device discovery → Network owner: presents devices
README.md - Security review → Network owner: presents findings
README.md - Update checks → Network owner: reports updates
README.md - Device backups → Network owner: offers backups
README.md - Approved actions → Network owner: requests approval
src/lanowl/actions.py - Network owner → Approved actions: confirms proposals
src/lanowl/actions.py - Diagnostic checks → Network probes: runs diagnostics
src/lanowl/checks.py - AI investigator → Diagnostic checks: uses checks
src/lanowl/checks.py - AI investigator → Ollama model: investigates incidents
- Dashboard → Setup and settings: serves settings
src/lanowl/web.py - Dashboard → Login controls: uses login
src/lanowl/web.py - Health reporting → Incident alerts: feeds alerting
src/lanowl/report.py - Internet watcher → RouterOS access: reads router data
src/lanowl/wanwatch.py - Device discovery → RouterOS access: reads router tables
src/lanowl/discovery.py - Update checks → Container updates: checks containers
src/lanowl/updates.py - Approved actions → Container updates: updates containers
src/lanowl/actions.py