Page 1 of 2
Smartmontools only sending reports from first harddisk
Posted: Thu Mar 01, 2012 1:32 pm
by kikkegek
hi guys,
I have installed the smartmontools to monitor my two harddisks in my HDA.
I have added these two lines to the /etc/smartd.conf file:
Code: Select all
/dev/sda -n standby -a -I 194 -W 6,45,55 -R 5 -M daily -M test -m root
/dev/sdb -n standby -a -I 194 -W 6,45,55 -R 5 -M daily -M test -m root
but for some reason I only get daily reports from the /dev/sda and not from /dev/dsb
both harddisks are ok and SMART is ON:
Code: Select all
[root@amahi etc]# smartctl -i /dev/sda
smartctl 5.40 2010-10-16 r3189 [i386-redhat-linux-gnu] (local build)
Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net
=== START OF INFORMATION SECTION ===
Model Family: Western Digital Caviar Green (Adv. Format) family
Device Model: WDC WD10EARS-00Y5B1
Serial Number: WD-WCAV55702137
Firmware Version: 80.00A80
User Capacity: 1,000,204,886,016 bytes
Device is: In smartctl database [for details use: -P show]
ATA Version is: 8
ATA Standard is: Exact ATA specification draft version not indicated
Local Time is: Thu Mar 1 21:30:51 2012 CET
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
and
Code: Select all
[root@amahi etc]# smartctl -i /dev/sdb
smartctl 5.40 2010-10-16 r3189 [i386-redhat-linux-gnu] (local build)
Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net
=== START OF INFORMATION SECTION ===
Model Family: SAMSUNG SpinPoint F1 DT series
Device Model: SAMSUNG HD753LJ
Serial Number: S13UJ1KQ331160
Firmware Version: 1AA01109
User Capacity: 750,156,374,016 bytes
Device is: In smartctl database [for details use: -P show]
ATA Version is: 8
ATA Standard is: ATA-8-ACS revision 3b
Local Time is: Thu Mar 1 21:31:44 2012 CET
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
why am I getting only one report? any ideas?
Re: Smartmontools only sending reports from first harddisk
Posted: Thu Mar 01, 2012 3:01 pm
by bigfoot65
Hello,
I am using the same guidance from the wiki and have no problems. Check your syntax to ensure there is no special characters that got copied into the /etc/smartd.conf file. The wiki sometimes carries extra hidden or special characters that may cause things not to work correctly.
Re: Smartmontools only sending reports from first harddisk
Posted: Fri Mar 02, 2012 12:56 am
by kikkegek
Hello,
I am using the same guidance from the wiki and have no problems. Check your syntax to ensure there is no special characters that got copied into the /etc/smartd.conf file. The wiki sometimes carries extra hidden or special characters that may cause things not to work correctly.
I'll add the lines by hand 2nite. But untill now I have lways just copied and pasted the lines from the wikis and never had problems...
I'll report back, thanks for the heads up.
could you post your lines from the smartd.conf file? for reference
Re: Smartmontools only sending reports from first harddisk
Posted: Fri Mar 02, 2012 6:01 am
by bigfoot65
Mine look exactly like the wiki, except I have lines for sdb, sdc, sdd. Did you restart the smartctl service? When you make changes, that is necessary.
Re: Smartmontools only sending reports from first harddisk
Posted: Fri Mar 02, 2012 1:31 pm
by kikkegek
Mine look exactly like the wiki, except I have lines for sdb, sdc, sdd. Did you restart the smartctl service? When you make changes, that is necessary.
I restarted the smartd service this afternoon.
I get two test messages, one from /dev/sda and one from /dev/sdb
then I get one report from /dev/sda
and /dev/sdb doesnt mail any report.
very strange.,
Re: Smartmontools only sending reports from first harddisk
Posted: Fri Mar 02, 2012 1:42 pm
by kikkegek
restarted the smartd service again after I checked the smartd.conf file again and received two testmails and one report from /dev/sda....but no report from /dev/sdb
very odd...
Re: Smartmontools only sending reports from first harddisk
Posted: Fri Mar 02, 2012 1:45 pm
by kikkegek
checked the log file
Code: Select all
# less /var/log/messages
Mar 2 21:38:06 amahi smartd[17353]: smartd received signal 15: Terminated
Mar 2 21:38:06 amahi smartd[17353]: smartd is exiting (exit status 0)
Mar 2 21:38:06 amahi smartd[2092]: smartd 5.40 2010-10-16 r3189 [i386-redhat-linux-gnu] (local build)#012Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net#012
Mar 2 21:38:06 amahi smartd[2092]: Opened configuration file /etc/smartd.conf
Mar 2 21:38:06 amahi smartd[2092]: Configuration file /etc/smartd.conf parsed.
Mar 2 21:38:06 amahi smartd[2092]: Device: /dev/sda, type changed from 'scsi' to 'sat'
Mar 2 21:38:06 amahi smartd[2092]: Device: /dev/sda [SAT], opened
Mar 2 21:38:06 amahi smartd[2092]: Device: /dev/sda [SAT], found in smartd database.
Mar 2 21:38:07 amahi smartd[2092]: Device: /dev/sda [SAT], is SMART capable. Adding to "monitor" list.
Mar 2 21:38:07 amahi smartd[2092]: Device: /dev/sdb, type changed from 'scsi' to 'sat'
Mar 2 21:38:07 amahi smartd[2092]: Device: /dev/sdb [SAT], opened
Mar 2 21:38:07 amahi smartd[2092]: Device: /dev/sdb [SAT], found in smartd database.
Mar 2 21:38:17 amahi smartd[2092]: Device: /dev/sdb [SAT], is SMART capable. Adding to "monitor" list.
Mar 2 21:38:17 amahi smartd[2092]: Monitoring 2 ATA and 0 SCSI devices
Mar 2 21:38:17 amahi smartd[2092]: Executing test of mail to root ...
Mar 2 21:38:17 amahi smartd[2092]: Test of mail to root: successful
Mar 2 21:38:17 amahi smartd[2092]: Device: /dev/sda [SAT], 16 Currently unreadable (pending) sectors
Mar 2 21:38:17 amahi smartd[2092]: Sending warning via mail to root ...
Mar 2 21:38:17 amahi smartd[2092]: Warning via mail to root: successful
Mar 2 21:38:17 amahi smartd[2092]: Device: /dev/sda [SAT], initial Temperature is 33 Celsius (Min/Max ??/33)
Mar 2 21:38:17 amahi smartd[2092]: Executing test of mail to root ...
Mar 2 21:38:17 amahi smartd[2092]: Test of mail to root: successful
Mar 2 21:38:17 amahi smartd[2092]: Device: /dev/sdb [SAT], initial Temperature is 21 Celsius (Min/Max ??/21)
Mar 2 21:38:17 amahi smartd[2116]: smartd has fork()ed into background mode. New PID=2116.
Re: Smartmontools only sending reports from first harddisk
Posted: Sun Mar 04, 2012 6:32 am
by kikkegek
can anybody check if my log file is OK? seems OK to me.
I checked and I keep only receiving daily reports from my first disk /dev/sda and none for the second disk /dev/dsb
offtopic:
some good news is that the unreadable sector count has dropped one sector from 16 to 15. is that good?
Code: Select all
Device: /dev/sda [SAT], 15 Currently unreadable (pending) sectors
@Bigfoot65:
so do you receive daily reports from all your harddrives? and a seperate email for each drive?
Re: Smartmontools only sending reports from first harddisk
Posted: Sun Mar 04, 2012 6:03 pm
by bigfoot65
Hello,
The log file looks normal to me.
I receive a consolidated report via LogWatch. However, you will only get emails for drives where there are issues. That's why you do not get one for sdb as its ok at the moment. You get an initial test email when starting/restarting the service then nothing else until there is a problem detected.
If you install LogWatch via the wiki guidance, you will get a nice report every day to inlcude other things on the HDA.
http://wiki.amahi.org/index.php/Monitor ... via_E-mail
Re: Smartmontools only sending reports from first harddisk
Posted: Tue Mar 20, 2012 1:49 am
by kikkegek
he Bigfoot,
I saw my unreadable sectors increwase from 16 to 53 lately so I am sending it back to be replaced.
thanks to smarttools and you guys I was on time.
I still am not able to sent the reports to an external address...need to figure that out.