SMART info?

Status
Not open for further replies.

asokolsky

Cadet
Joined
Mar 11, 2012
Messages
5
First, big thanks & kudos to FreeNAS8 team!
The install onto a flash card (stuck in PATA adapter) went smoothly. I am getting transfer rates of 76MByte/sec for read and 39MBytes/sec for write from a single WDC WD5000AAKS-00V1A0 hard drive. For more on my experience and config see http://nasfuss.blogspot.com/2012/03/freenas-8.html
So far my biggest problem is my inability to find an SMTP server which would accept e-mail from the NAS box. I suspect I am not alone in this. But this has nothing to do with FreeNAS. On the other hand I would not mind if my FreeNAS box would deliver this info to me through iXsystems. In exchange I would not mind iXsystems collecting some info on the software I run.

Now to my question. Having access to SMART realtime information and report is critically important for me. While smartctl works fine in the shell, is there a way to have it exposed in GUI?

Thanks again!
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,994
First, if you're having problems using email you could use gmail as it works fine. I suspect you are not configuring your email setting properly.

If you're willing to use email then here is a thread for you and although I haven't posted my final [pretty] code, it does work. http://forums.freenas.org/showthread.php?6211-Setup-SMART-Reporting-via-email

How to configure email for gmail (screenshots)

1) Configure your Network DNS and IP Addresses. If you use DHCP I'd recommend changing that although you shouldn't have to change that to make this work. The take away from here is the Gateway and Nameserver.
NetworkGateway.JPG
The Take way from here is the IP address is assigned. Don't be confused by my two IP addresses, the second is an alias and not required.
NetworkInterfaces.JPG

2) Configure the root email address, where the reports go to, doesn't have to be your gmail address but it's a good place to start.
RootUser.JPG

3) Configure the email SMTP. Under User name Do Not enter @gmail.com, just enter the email name.
EmailSetup.JPG

4) Reboot if you made changes in step 1.

5) Try to send a test email. It should work fine.
 

asokolsky

Cadet
Joined
Mar 11, 2012
Messages
5
Thanks, joeschmuck!
Makes sense! What I failed to realize was that because I use a 2-step verification for gmail I need to provide not my e-mail account password but "application-specific" password. Once I generated and provided one it all worked!
http://support.google.com/accounts/bin/answer.py?hl=en&answer=180744
http://support.google.com/accounts/bin/answer.py?hl=en&answer=185833

By virtue of omission I presume that you agree on my point about SMART and just not in position to comment on the work in progress. Fair enough.

Thanks a bunch!
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,994
It would be nice to see the SMART results in a GUI but I'm not holding my breath and that is why I created the script file which will email the results to you. I did update the script last night (new second script) which works like a charm. I spin my drives down if they haven't been accessed in 3 hours. I don't want to spin them back up just to get a SMART status so the new script will wait until the drives have to spin up again and then report the SMART status. If the drives are always spinning, then you get the results immediately.

2-step verification, didn't even know gmail had that.

Good Luck
 
Status
Not open for further replies.
Top