How karthikeyan131196/r-mon works
R-Mon is a self-hosted Linux and Windows server monitor. Agents collect host metrics and optional process, service, and event data, then report to the monitoring server; the server stores reports, evaluates alert rules, and serves authenticated dashboard views and settings. Alerts can be sent through email or webhooks. The README documents these product flows; source excerpts show key server, storage, alerting, and agent behavior, but do not expose every API route or internal call.
Main entry points: app.py HTTP and WebSocket API · rmon_agent.py Agent collector · alerts.py Alert engine · app.js Web dashboard
Components 16
Agent collection
- Agent collector
agent/rmon_agent.py - Host metrics
agent/rmon_agent.py - Processes, services, events
agent/rmon_agent.py - Buffered sender
agent/rmon_agent.py
Server runtime
- HTTP and WebSocket API
server/rmon_server/app.py - Runtime configuration
server/rmon_server/config.py - Login and sessions
server/rmon_server/auth.py
Storage and alerts
- Monitoring database
server/rmon_server/db.py - Alert engine
server/rmon_server/alerts.py
Dashboard
- Web dashboard
server/rmon_server/static/app.js - Login page
server/rmon_server/static/login.js
Tools and notifications
- Network checks
server/rmon_server/tools.py - Notification dispatcher
server/rmon_server/notify.py
Other components
- Operator
- Monitored host
- Email and webhooks
Connections 17
- Monitored host → Agent collector: runs on
README.md - Agent collector → Host metrics: collects
README.md - Agent collector → Processes, services, events: collects
README.md - Agent collector → Buffered sender: submits reports
agent/rmon_agent.py - Buffered sender → HTTP and WebSocket API: posts reports
README.md - Operator → Login page: signs in
README.md - Login page → HTTP and WebSocket API: uses API
README.md - Operator → Web dashboard: views and configures
README.md - Web dashboard → HTTP and WebSocket API: requests data
README.md - HTTP and WebSocket API → Login and sessions: verifies sessions
server/rmon_server/app.py - HTTP and WebSocket API → Runtime configuration: uses settings
server/rmon_server/app.py - HTTP and WebSocket API → Monitoring database: reads and writes
server/rmon_server/app.py - HTTP and WebSocket API → Alert engine: evaluates reports
server/rmon_server/app.py - HTTP and WebSocket API → Network checks: routes checks
server/rmon_server/app.py - Alert engine → Monitoring database: stores alert state
server/rmon_server/alerts.py - Alert engine → Notification dispatcher: queues events
README.md - Notification dispatcher → Email and webhooks: sends alerts
server/rmon_server/notify.py