Hello Suse people. I installed the smartmontools just to keep an eye on my two hard drives. Would be great to know if one of them is about to die. Run a check on them, say once a day, on boot-up? Read the smartd man page, all 1,616 lines of it. Very informative and very inconclusive. Doesn't tell me what to do. And I really don't need to know all of the options or everything about it. I just simply want to monitor the hard drives on a daily basis and send me an email message that everything is OK, or is not. I can run the commands individually from the cli. Soooo, humor me here please. How do I get it to do that? Bob S.
----- Original Message ----- From: "B. Stia" <usr@sanctum.com> To: <suse-linux-e@suse.com> Sent: Thursday, October 27, 2005 11:14 PM Subject: [SLE] smartd
Hello Suse people.
I installed the smartmontools just to keep an eye on my two hard drives. Would be great to know if one of them is about to die. Run a check on them, say once a day, on boot-up?
Read the smartd man page, all 1,616 lines of it. Very informative and very inconclusive. Doesn't tell me what to do. And I really don't need to know all of the options or everything about it. I just simply want to monitor the hard drives on a daily basis and send me an email message that everything is OK, or is not. I can run the commands individually from the cli.
Soooo, humor me here please. How do I get it to do that?
Bob S.
vi /etc/smartd.conf Comment out the DEVICESCAN line and all the rest of the uncommented lines. Then add a line that is like this: /dev/hda -a -H -m test@test.com -o on -S on -s (S/../.././02|L/../../6/03) Replace /dev/hda with your drive. Replace test@test.com with your email. Changes dates of scanning if you like. This will Monitor all attributes, enable automatic online data collection, automatic Attribute autosave, and do a short self-test every day at 2am, and a long self test Saturdays at 3am. Copied directly from the smartd.conf file. Brad Dameron SeaTab Software www.seatab.com
On Friday 28 October 2005 04:04 am, Brad Dameron wrote:
(Snip a bunch) I can run the commands individually from the cli.
Soooo, humor me here please. How do I get it to do that?
Bob S.
vi /etc/smartd.conf
Comment out the DEVICESCAN line and all the rest of the uncommented lines.
Then add a line that is like this:
/dev/hda -a -H -m test@test.com -o on -S on -s (S/../.././02|L/../../6/03)
Replace /dev/hda with your drive. Replace test@test.com with your email. Changes dates of scanning if you like.
This will Monitor all attributes, enable automatic online data collection, automatic Attribute autosave, and do a short self-test every day at 2am, and a long self test Saturdays at 3am.
Copied directly from the smartd.conf file.
Thanks Brad, Have something similar to that in my smartd.conf file, with the exception of getting an email sent. Question, what calls the smartd.conf file, Cron ?? Maybe that is what is not happening. (Don't ever see anything in /var/log/messages. I also have two hard drives. Can I make that command call to check the two drives consecutively? Bob S.
From: "B. Stia" <usr@sanctum.com> Date: Sat, 29 Oct 2005 00:56:26 -0400 To: <suse-linux-e@suse.com> Subject: Re: [SLE] smartd
On Friday 28 October 2005 04:04 am, Brad Dameron wrote:
(Snip a bunch) I can run the commands individually from the cli.
Soooo, humor me here please. How do I get it to do that?
Bob S.
vi /etc/smartd.conf
Comment out the DEVICESCAN line and all the rest of the uncommented lines.
Then add a line that is like this:
/dev/hda -a -H -m test@test.com -o on -S on -s (S/../.././02|L/../../6/03)
Replace /dev/hda with your drive. Replace test@test.com with your email. Changes dates of scanning if you like.
This will Monitor all attributes, enable automatic online data collection, automatic Attribute autosave, and do a short self-test every day at 2am, and a long self test Saturdays at 3am.
Copied directly from the smartd.conf file.
Thanks Brad,
Have something similar to that in my smartd.conf file, with the exception of getting an email sent. Question, what calls the smartd.conf file, Cron ?? Maybe that is what is not happening. (Don't ever see anything in /var/log/messages.
I also have two hard drives. Can I make that command call to check the two drives consecutively?
Yes -- just copy the command line with "/dev/hda" replaced by "/dev/hdb" And as for the other thing: do `chkconfig smartd on` and then `/etc/init.d/smartd start`. The first will tell smartd to start at boot from now on, the second will tell it to start up right now. You'll get notified, ongoing, if anything goes wrong.
On Saturday 29 October 2005 12:58 am, Ian Marlier wrote:
From: "B. Stia" <usr@sanctum.com>
(Snip a bunch)
Question, what calls the smartd.conf file, Cron ?? Maybe that is what is not happening. (Don't ever see anything in /var/log/messages.
I also have two hard drives. Can I make that command call to check the two drives consecutively?
Yes -- just copy the command line with "/dev/hda" replaced by "/dev/hdb"
And as for the other thing: do `chkconfig smartd on` and then `/etc/init.d/smartd start`. The first will tell smartd to start at boot from now on, the second will tell it to start up right now. You'll get notified, ongoing, if anything goes wrong.
Thanks Ian, Sorry for the untimely response. Been pretty busy. This is what I get to the command: EasyStreet:/ # chkconfig smartd on smartd: unknown service The second command works OK. So it seems that smartd is not working unless I invoke it manually. Here is the pertinent part of my partly configured smartd.conf file: ------------------------------------------------------------------- # do a short self-test every day at 2am, and a long self test # Saturdays at 3am. #/dev/hda -a -o on -S on -s (S/../.././02|L/../../6/03) /dev/hdb -a -m root -o on -S on -s (S/../.././01|L/../../6/02) -M test /dev/hda -a -H -m root@easystreet.easystreet -o on -S on -s (S/../.././02|L/../../6/03) # Monitor SMART status, ATA Error Log, Self-test log, and track # changes in all attributes except for attribute 194 #/dev/hdb -H -l error -l selftest -t -I 194 # A very silent check. Only report SMART health status if it fails # But send an email in this case #/dev/hdc -H -m admin@example.com ------------------------------------------------------------------- Bob S.
participants (3)
-
B. Stia
-
Brad Dameron
-
Ian Marlier