Skip to content

efnats/diskmind-agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

diskmind-agent

Push agent for diskmind.net - SMART disk health monitoring for Linux and macOS.

Collects SMART data from your drives via smartctl and pushes it to your diskmind dashboard.

diskmind dashboard

Quick start

sudo curl -sSL -o /usr/local/bin/diskmind_scan https://raw.githubusercontent.com/efnats/diskmind-agent/main/diskmind_scan
sudo chmod +x /usr/local/bin/diskmind_scan
sudo diskmind_scan --push

On first run, the agent walks you through setup - create an account at diskmind.net and link your server with a one-time code.

Requirements

  • Linux or macOS
  • smartmontools (smartctl)
  • curl
  • Root access (for smartctl)

Options

diskmind_scan [OPTIONS]

  --push [URL]       Push data to server (default: https://diskmind.net)
  --host HOSTNAME    Override hostname (default: system hostname)
  --token TOKEN      API token (also reads from /etc/diskmind/token)
  --log FILE         Log to file with timestamps (for cron)
  --buffer-dir DIR   Buffer directory for offline scans
                     (default: /var/lib/diskmind/buffer)

Self-hosted

If you run your own diskmind server, point --push at it:

sudo diskmind_scan --push http://your-server:8085

How it works

The agent runs smartctl --scan-open to discover all drives, reads their SMART attributes, and sends the data as CSV to the diskmind server. If the server is unreachable, scans are buffered locally and synced on the next successful push.

License

MIT

About

Push agent for diskmind.net - SMART disk health monitoring

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages