openmamba-makereport: add smartctl output for hard disks health monitoring

This commit is contained in:
Silvan Calarco 2011-10-17 16:26:20 +02:00
parent dde1bd7369
commit 5bdb2b7bff

View File

@ -203,6 +203,11 @@ catcommand "/sbin/route -n" "Routing table"
catfile "/etc/sysconfig/network" "General network configuration"
catfile "/etc/resolv.conf" "DNS configuration"
# Disks
for d in /dev/sd[a-z]; do
catcommand "smartctl -ia $d" "S.M.A.R.T. status for device $d"
done
# Installation
catcommand "rpm -qa --last | head -n 100" "Last installed packages"
catfile "/var/log/install-*" "Installation log"