pve显示温度和硬盘信息

p
Table of Content

这玩意的修改到处都有,但感觉这位老哥写的不错 https://tty228.github.io/ 支持zenpower,支持硬盘休眠,防出错处理。问题是他使用的获取传感器值的方法有些问题,例如用smartctl 获取/dev/nvme设备信息时,由于web是跑在www-data用户权限在,无法访问/dev/nvme。导致脚本不正常了。所以需要给smartctl setuid一下: chmod +s /sbin/smartctl(直接chmod 777 /dev/nvme0无法解决问题)。

About the author

Add comment

By z0p0