Smartmontools only sending reports from first harddisk

kikkegek
Posts: 341
Joined: Sun Jul 31, 2011 9:28 am

Smartmontools only sending reports from first harddisk

Postby kikkegek » Thu Mar 01, 2012 1:32 pm

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?

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Smartmontools only sending reports from first harddisk

Postby bigfoot65 » Thu Mar 01, 2012 3:01 pm

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.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

kikkegek
Posts: 341
Joined: Sun Jul 31, 2011 9:28 am

Re: Smartmontools only sending reports from first harddisk

Postby kikkegek » Fri Mar 02, 2012 12:56 am

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

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Smartmontools only sending reports from first harddisk

Postby bigfoot65 » Fri Mar 02, 2012 6:01 am

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.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

kikkegek
Posts: 341
Joined: Sun Jul 31, 2011 9:28 am

Re: Smartmontools only sending reports from first harddisk

Postby kikkegek » Fri Mar 02, 2012 1:31 pm

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.,

kikkegek
Posts: 341
Joined: Sun Jul 31, 2011 9:28 am

Re: Smartmontools only sending reports from first harddisk

Postby kikkegek » Fri Mar 02, 2012 1:42 pm

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...

kikkegek
Posts: 341
Joined: Sun Jul 31, 2011 9:28 am

Re: Smartmontools only sending reports from first harddisk

Postby kikkegek » Fri Mar 02, 2012 1:45 pm

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.

kikkegek
Posts: 341
Joined: Sun Jul 31, 2011 9:28 am

Re: Smartmontools only sending reports from first harddisk

Postby kikkegek » Sun Mar 04, 2012 6:32 am

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?

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Smartmontools only sending reports from first harddisk

Postby bigfoot65 » Sun Mar 04, 2012 6:03 pm

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
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

kikkegek
Posts: 341
Joined: Sun Jul 31, 2011 9:28 am

Re: Smartmontools only sending reports from first harddisk

Postby kikkegek » Tue Mar 20, 2012 1:49 am

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.

Who is online

Users browsing this forum: No registered users and 59 guests