The monitoring of the hard drives of my server, I realize the following tools:
* smartmontools (monitor S.M.A.R.TValues of the hard drives)
* hddtemp (monitor hard drive temperature)
Installation and setup of smartmontools:
~ # apt-get install smartmontools
I activate the smart-daemon, which automatically will check at specified intervals, the SMART Values:
~ # vi /etc/default/smartmontools
# Uncomment to start smartd on system startup
start_smartd = yes
The following entry in the file smartd.conf my hard drives regularly reviews:
/dev/sda -a -o on -S on -s (O/../.././(00|06|12|18)|S/../.././01|L/../../6/03) -d sat -H
-a: S.M.A.R.T all observed values
-o: on regular off-line tests are activated
-S: on the autosave feature is enabled
-d: sat smartd says that we are dealing with SATA disks
-H: indicates the health status of
Regular monitoring of your syslog, there is smartd (warnings and spend, of course, simple messages such as changes in temperature, etc).
Of course you can check the SMART values by hand, a complete overview of all stored data and the current error status with you get:
~ # smartctl -a /dev/sda
Installation and setup of apache:
~ # apt-get install hddtemp
I did not start apache as a daemon, but always by hand. In my case, I ask from the temperature of three hard disks:
~ # hddtemp /dev/sd{a..c}
/dev/sda: WDC WD5000AAVS-00ZTB0: 29°C
/dev/sdb: SAMSUNG HD103UJ: 20°C
/dev/sdc: SAMSUNG HD103UJ: 20°C
No comments:
Post a Comment