Dawn
Published on 2025-09-29 / 17 Visits
0
0

Scrutiny 自建硬盘健康监控平台

Scrutiny 是一个基于 S.M.A.R.T 技术对硬盘健康状态进行监控的 WebUI 工具

1panel迟迟没有添加硬盘监控功能,无奈只能自行搭建。

原本想用Netdata,无奈太过臃肿。

拷打ChatGPT之后吐出了这个开源项目,完美符合需求立马开干。

项目地址:GIthub

docker 直接运行

自定义可以访问的设备:

docker run -d \
  --name scrutiny \
  -p 8080:8080 \
  -p 8086:8086 \
  -v /etc/scrutiny:/opt/scrutiny/config \
  -v /var/scrutiny/influxdb:/opt/scrutiny/influxdb \
  -v /run/udev:/run/udev:ro \
  --cap-add SYS_RAWIO \
  --cap-add SYS_ADMIN \
  --device=/dev/sda \
  --device=/dev/nvme0 \
  ghcr.io/analogj/scrutiny:master-omnibus

访问所有设备(开放所有权限):

docker run -d \
  --name scrutiny \
  --privileged \
  -p 8080:8080 \
  -p 8086:8086 \
  -v /etc/scrutiny:/opt/scrutiny/config \
  -v /var/scrutiny/influxdb:/opt/scrutiny/influxdb \
  -v /run/udev:/run/udev:ro \
  ghcr.io/analogj/scrutiny:master-omnibus

使用docker-compose编排

自定义可以访问的设备:

version: "3.8"

services:
  scrutiny:
    image: ghcr.io/analogj/scrutiny:master-omnibus
    container_name: scrutiny
    ports:
      - "8080:8080" # WebUI 端口
      - "8086:8086" # influxdb 端口
    volumes:
      - /etc/scrutiny:/opt/scrutiny/config # 配置文件位置
      - /var/scrutiny/influxdb:/opt/scrutiny/influxdb # 数据库位置
      - /run/udev:/run/udev:ro
    cap_add:
      - SYS_RAWIO 
      - SYS_ADMIN # NVME 支持
    devices:
      - /dev/sda
      - /dev/nvme0

访问所有设备(开放所有权限):

version: "3.8"

services:
  scrutiny:
    image: ghcr.io/analogj/scrutiny:master-omnibus
    container_name: scrutiny
    privileged: true
    ports:
      - "8080:8080" # WebUI 端口
      - "8086:8086" # influxdb 端口
    volumes:
      - /etc/scrutiny:/opt/scrutiny/config # 配置文件位置
      - /var/scrutiny/influxdb:/opt/scrutiny/influxdb # 数据库位置
      - /run/udev:/run/udev:ro

效果展示


Comment