Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

pkg.rbrt.fr/servmon

Package Overview
Dependencies
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pkg.rbrt.fr/servmon

Go Modules
Version
v0.1.1
Version published
Created
Source

ServMon

KISS (Keep It Simple, Stupid) server monitoring tool with email alerts.

For those who want to keep it simple instead of using complex setups like Prometheus, Grafana, and Alertmanager.

Features

  • CPU & Memory Monitoring - Alert on high usage
  • Disk Monitoring - Monitor multiple partitions
  • HTTP Health Checks - Monitor endpoint availability
  • Journalctl Monitoring - Scan systemd logs for errors
  • Reboot Detection - Email notification on system reboot
  • Email Alerts - Rich formatting with severity levels
  • Smart Cooldowns - Prevent alert spam

Installation

go install pkg.rbrt.fr/servmon@latest

Configuration

Edit ~/.servmon.yaml or /etc/servmon/config.yaml:

alert_thresholds:
  cpu:
    threshold: 90
    duration: 5m0s
    cooldown: 30m0s
    check_interval: 10s

  memory:
    threshold: 80
    cooldown: 30m0s
    check_interval: 10s

  disks:
    - path: /
      threshold: 90
      cooldown: 4h0m0s
      check_interval: 1m0s

  http:
    url: http://localhost:8080/health
    timeout: 5s
    sample_rate: 10
    failure_threshold: 20
    check_interval: 1m0s
    cooldown: 15m0s

  journalctl:
    enabled: true
    check_interval: 5m0s
    lookback_period: 5m0s
    error_threshold: 10
    priority: err
    cooldown: 30m0s

  reboot:
    enabled: true
    uptime_threshold: 10m0s

email:
  smtp_server: smtp.gmail.com
  smtp_port: 587
  from: alerts@yourdomain.com
  to: admin@yourdomain.com
  username: alerts@yourdomain.com
  password: your-app-password

Usage

Run Manually

servmon --config ~/.servmon.yaml

Systemd Service

# Start
sudo systemctl start servmon

# Enable auto-start
sudo systemctl enable servmon

# View logs
sudo journalctl -u servmon -f

# Check status
sudo systemctl status servmon

License

MIT.

FAQs

Package last updated on 10 Jan 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts