By default, when you install Munin in Cpanel missing several good konfiga to do them by hand. For me, one of them is the monitoring of the temperature of disks.
Basically, it is a trivial configuration
1. We must determine the type of our drives – He may be one of the following : ata, scsi, sat[,auto][,N][+TYPE], usbcypress[,X], usbjmicron[,x][,N], usbsunplus, marvell, areca,N/E, 3ware,N, hpt,L/M/N, megaraid,N, cciss,N, auto, test. The easiest way to do this is through the cat “/proc/ide” or “/proc/scsi”. To me:
# cat /proc/scsi/scsi Attached devices: Host: scsi0 Channel: 00 Id: 00 Lun: 00 Vendor: ATA Model: WDC WD1003FBYZ-0 Rev: 01.0 Type: Direct-Access ANSI SCSI revision: 05 Host: scsi1 Channel: 00 Id: 00 Lun: 00 Vendor: ATA Model: WDC WD1003FBYX-0 Rev: 01.0 Type: Direct-Access ANSI SCSI revision: 05 Host: scsi4 Channel: 00 Id: 00 Lun: 00 Vendor: ATA Model: TOSHIBA DT01ACA1 Rev: MS2O Type: Direct-Access ANSI SCSI revision: 05
As you can see I have 3 drive type ATA.
2. To start to monitor the temperature must describe in munin node drives us. In the file add the following entries/etc/munin/plugin-conf.d/hddtemp_smartctl type
# cat /etc/munin/plugin-conf.d/hddtemp_smartctl [hddtemp_smartctl] user root env.drives sda sdb env.args_sda -d ata env.args_sdb -d ata
We can hit a test config as follows
# env drives="sda sdb sdc" args_sda="-d ata" args_sdb="-d ata" args_sdc="-d ata" /etc/munin/plugins/hddtemp_smartctl sda.value 32 sdb.value 33 sdc.value 33
If you get the values so all is OK. If you get an error you should verify that it correctly described. Should restart munin-a nod to izčakte 10-15 min to populirat some data and start to draw graphics. You can check for errors/var/log/munin/munin-node.log and their easy removal.
If you want to receive email when a critical temperature of disks must add a description such as critical:
[example.com] address 127.0.0.1 use_node_name yes hddtemp_smartctl.sda.critical 55 hddtemp_smartctl.sdb.critical 55