diff options
| author | Petter Reinholdtsen <pere@hungry.com> | 2015-12-20 07:09:46 +0000 |
|---|---|---|
| committer | Petter Reinholdtsen <pere@hungry.com> | 2015-12-20 07:09:46 +0000 |
| commit | 34fb6ae70737208905f08b1a8de8cec06d12d754 (patch) | |
| tree | 08a6a9e420b7e4ca70be718ed4b7299f26af28ef /collect.d | |
| parent | 947b67d8711f9313ec66ae4c19e39e4f2b75b92b (diff) | |
| download | sitesummary-34fb6ae70737208905f08b1a8de8cec06d12d754.tar.gz sitesummary-34fb6ae70737208905f08b1a8de8cec06d12d754.tar.bz2 sitesummary-34fb6ae70737208905f08b1a8de8cec06d12d754.tar.xz | |
Collect output from hdparm -I for every disk device (Closes: #785285).
Diffstat (limited to 'collect.d')
| -rw-r--r-- | collect.d/system | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/collect.d/system b/collect.d/system index c5be33d..c741cda 100644 --- a/collect.d/system +++ b/collect.d/system @@ -42,6 +42,11 @@ if [ -f /proc/mdstat ] ; then cat /proc/mdstat > mdstat fi +# Collect hard disk information +for diskdev in $(grep 'sd.$' /proc/partitions|awk '{print $4}'|sort); do + hdparm -I /dev/$diskdev || true +done > hdparm-I + # Collect mount points, for nagios configuration cp /etc/fstab fstab cat /proc/mounts > procmounts |
