[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

How to configure SMART monitoring with munin for 3ware RAID



Just for the record, here's a howto for monitoring the individual disks in a
3ware RAID using munin. The syntax for finding the drives on a 2.6 kernel
is not exactly intuitive.

1. Install smartmontools and edit /etc/smartd.conf, adding this sort of
thing:

# Monitor 4 ATA disks connected to a 3ware 8500 controller. Start short 
# self-tests every day at 2am and rolling long self-tests Sundays 
# starting at midnight.
# Get the drive numbers from http://localhost:888/ 
/dev/twe0 -d 3ware,0 -H -C 0 -U 0 -m your@e-mail.net -o on -S on -s
(S/../.././02|L/../../7/00)
/dev/twe0 -d 3ware,1 -H -C 0 -U 0 -m your@e-mail.net -o on -S on -s
(S/../.././02|L/../../7/01)
/dev/twe0 -d 3ware,2 -H -C 0 -U 0 -m your@e-mail.net -o on -S on -s
(S/../.././02|L/../../7/02)
/dev/twe0 -d 3ware,3 -H -C 0 -U 0 -m your@e-mail.net -o on -S on -s
(S/../.././02|L/../../7/03)

/etc/init.d/restart smartmontools
Check syslog for receipts

Install munin and munin-node and edit /etc/munin/plugin-conf.d/munin-node,
adding:

[hddtemp_smartctl]
user root
env.drives hda hdb twe0_0 twe0_1 twe0_2 twe0_3 
env.type_twe0_0 3ware,0
env.type_twe0_1 3ware,1
env.type_twe0_2 3ware,2
env.type_twe0_3 3ware,3

[smart_*]
user root
group disk

[smart_twe0-0]
env.smartargs -H -i -c -l error -l selftest -l selective -a -d 3ware,0

[smart_twe0-1]
env.smartargs -a -d 3ware,1

[smart_twe0-2]
env.smartargs -a -d 3ware,2

[smart_twe0-3]
env.smartargs -a -d 3ware,3


Create symlinks in /etc/munin/plugins

smart_twe0-0 -> /usr/share/munin/plugins/smart_
smart_twe0-1 -> /usr/share/munin/plugins/smart_
smart_twe0-2 -> /usr/share/munin/plugins/smart_
smart_twe0-3 -> /usr/share/munin/plugins/smart_


/etc/init.d/munin-node restart
Check /var/log/munin/*log to verify the plugins are working -- you'll get
errors if they're not.

Dave






Reply to: