I decided to share a small PHP script with the habrasoobshchestvo, which saves my time a little.
The essence of the problem
At home there is a server that is connected to a small local network and part-time works as an exchanger. With all sorts of rubbish, it is clogged instantly and periodically you need to move and throw away the "furniture".
Script description
The script generates a list of all hard drives and their partitions. For each partition, the mount point, the percentage of free disk space, and the total partition capacity are allocated. Subsequently, I added a display of the current temperature of the hard drive using the
hddtemp package, as it turned out, it helps a lot in determining the cooling efficiency.
')
Positive points
- Ease of presenting information - all on one page.
- No need to configure anything (except maybe sudo)
- Accessibility from any device with access to the network in which the script works
- No need to ssh in order to examine the entire system
- Compact size of the script and undemanding of resources
- Free space information is always up to date.
Negative points
- Not everyone is comfortable running the browser.
- There is no caching and every page refresh "pulls" the system.
System requirements
- Linux
- Php
- hddtemp (requires sudo as configured)
What it looks like
Download (ifolder)
Download (rapidshare)
P.S. Many thanks to
DileSoft , for the plus in karma thanks to which I was able to publish my first topic, I hope it will be useful to someone.
UPD Soon there will be a free minute to complete the graphics so that you can monitor the temperature fluctuations and free space on the disks, in general, if there are interesting ideas for finalizing the script, I will be glad to hear and take into account.