January 13, 20251 yr 0)💡工作原理 unRAID 内建有 apcupsd 创建 sh脚本 收集USP电源状态的信息。 然后通过 snmpd 扩展给其他设备或软件使用 1)🔦连接并配置好 UPS 2)🗃️下载 UPS电源状态 监控脚本 终端内输入命令 cd /mnt/user/appdata && \ wget https://raw.githubusercontent.com/0awe/rpi-snmp-ups-synology-nas/master/apcupsd.sh && \ chmod +x apcupsd.sh 脚本 Github 仓库: Quote https://github.com/0awe/rpi-snmp-ups-synology-nas 3)🏵️安装并配置 SNMP 插件 插件设置添加一行,保存 pass .1.3.6.1.4.1.318.1.1.1 /bin/sh /mnt/user/appdata/apcupsd.sh 4)🪄测试是否工作 终端内输入命令,注意按实际情况替换为 unRAID 的内网ip snmpwalk -v 2c -c public 192.168.168.4 .1.3.6.1.4.1.318.1.1.1 正常的话,会输出类似内容 Quote SNMPv2-SMI::enterprises.318.1.1.1.1.1.1.0 = STRING: "Back-UPS BK650M2-CH " SNMPv2-SMI::enterprises.318.1.1.1.2.2.1.0 = Gauge32: 100 5)🔗群晖 DSM系统 设置
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.