更多硬盘状态显示 #73

Closed
opened 2026-01-15 11:39:48 +08:00 by yan · 7 comments
Owner

Originally created by @0xffffharry on GitHub (Nov 23, 2023).

Originally assigned to: @kmvan on GitHub.

Is your feature request related to a problem? Please describe.

目前系统中挂载多块硬盘,并且想显示各硬盘的使用温度,希望可以支持,感谢

Describe the solution you'd like

Describe alternatives you've considered

Additional context

Originally created by @0xffffharry on GitHub (Nov 23, 2023). Originally assigned to: @kmvan on GitHub. **Is your feature request related to a problem? Please describe.** <!-- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] --> 目前系统中挂载多块硬盘,并且想显示各硬盘的使用温度,希望可以支持,感谢 **Describe the solution you'd like** <!-- A clear and concise description of what you want to happen. --> **Describe alternatives you've considered** <!-- A clear and concise description of any alternative solutions or features you've considered. --> **Additional context** <!-- Add any other context or screenshots about the feature request here. -->
yan added the feature request label 2026-01-15 11:39:48 +08:00
yan closed this issue 2026-01-15 11:39:50 +08:00
Author
Owner

@kmvan commented on GitHub (Nov 23, 2023):

显示多块硬盘可以,目前是显示探针所在的硬盘分区。
显示硬盘温度这个需要研究研究

@kmvan commented on GitHub (Nov 23, 2023): 显示多块硬盘可以,目前是显示探针所在的硬盘分区。 显示硬盘温度这个需要研究研究
Author
Owner

@0xffffharry commented on GitHub (Nov 23, 2023):

php存在诸多限制,有考虑使用其他语言重写并发布二进制可执行文件吗

@0xffffharry commented on GitHub (Nov 23, 2023): php存在诸多限制,有考虑使用其他语言重写并发布二进制可执行文件吗
Author
Owner

@kmvan commented on GitHub (Nov 23, 2023):

正有此计划

Nov 23, 2023 19:32 wrote on 0xffffharry @.***>:

php存在诸多限制,有考虑使用其他语言重写并发布二进制可执行文件吗


Reply to this email directly, view it on GitHubhttps://github.com/kmvan/x-prober/issues/210#issuecomment-1824268201, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AA5JMQSBMHDNXW2JFFBYL43YF4X4BAVCNFSM6AAAAAA7XEEI4KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRUGI3DQMRQGE.
You are receiving this because you were assigned.Message ID: @.***>

@kmvan commented on GitHub (Nov 23, 2023): 正有此计划 Nov 23, 2023 19:32 wrote on 0xffffharry ***@***.***>: php存在诸多限制,有考虑使用其他语言重写并发布二进制可执行文件吗 — Reply to this email directly, view it on GitHub<https://github.com/kmvan/x-prober/issues/210#issuecomment-1824268201>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AA5JMQSBMHDNXW2JFFBYL43YF4X4BAVCNFSM6AAAAAA7XEEI4KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRUGI3DQMRQGE>. You are receiving this because you were assigned.Message ID: ***@***.***>
Author
Owner

@kmvan commented on GitHub (Dec 26, 2023):

今天抽空我尝试了一下,使用 /proc/mounts 来获取所有磁盘分区,然后通过 disk_total_spacedisk_free_space 来显示各个分区的可用容量信息。但发现除了 root 用户权限能获取全部磁盘信息外,默认 www-data 用户只能获取本文件所在的磁盘信。所以似乎获取全部磁盘信息难以实现,/proc 目录内也没有其他关于磁盘使用量的模块了。这个功能还真有点难度,我会找找其他方法实现。

@kmvan commented on GitHub (Dec 26, 2023): 今天抽空我尝试了一下,使用 `/proc/mounts` 来获取所有磁盘分区,然后通过 `disk_total_space` 和 `disk_free_space` 来显示各个分区的可用容量信息。但发现除了 root 用户权限能获取全部磁盘信息外,默认 www-data 用户只能获取本文件所在的磁盘信。所以似乎获取全部磁盘信息难以实现,`/proc` 目录内也没有其他关于磁盘使用量的模块了。这个功能还真有点难度,我会找找其他方法实现。
Author
Owner

@kmvan commented on GitHub (Dec 26, 2023):

想了下,打算用Go来重构,能在shell中显示和网页显示,也能获取更多信息。

@kmvan commented on GitHub (Dec 26, 2023): 想了下,打算用Go来重构,能在shell中显示和网页显示,也能获取更多信息。
Author
Owner

@kmvan commented on GitHub (Dec 29, 2023):

如果你的PHP环境可以执行 shell_exec 函数,那下个版本可以显示其他硬盘空间。

@kmvan commented on GitHub (Dec 29, 2023): 如果你的PHP环境可以执行 shell_exec 函数,那下个版本可以显示其他硬盘空间。
Author
Owner

@kmvan commented on GitHub (Dec 30, 2023):

已更新到8.17版本,使用了 shell_exec 系统函数来增加显示磁盘空间。
如果问题欢迎继续讨论。

@kmvan commented on GitHub (Dec 30, 2023): 已更新到8.17版本,使用了 shell_exec 系统函数来增加显示磁盘空间。 如果问题欢迎继续讨论。
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: yan/archived-x-prober#73