Package: sitesummary-client Version: 0.1.17 Severity: wishlist Tags: patch
When tracking hard drives, it is useful to know their serial numbers. This patch will add code to collect it. 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 Something to include in sitesummary-client? -- Happy hacking Petter Reinholdtsen -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org