⬆️ ⬇️

Script for quick review of information about hard drives

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



Negative points





System requirements







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.

Source: https://habr.com/ru/post/66623/



All Articles