|
From: Thane S. <ts...@au...> - 2007-04-23 12:22:38
|
Hi there, I'm trying to figure out how to use smartd with Windows and have it send warning emails when there is a problem and one message a day with a log file attached. Has anyone used it with Windows and have some advice? T |
|
From: Thane S. <th...@co...> - 2011-06-14 20:05:41
|
Hi All, I'm trying to get smartd to run in Windows as a service and monitor the hard drive. I'm using the following: In the smartd.conf file, I have the line: DEVICESCAN -a -o on -S on -s (S/../.././02|L/../../6/03) Then I ran: smartd install and I got the response: "Installing service smartd: done" SmartD shows up as a service in Windows. Then I ran: net start smartd The SmartD Service service is starting. The SmartD Service service was started successfully. When I look in the Event Viewer, I see the following: First Event (4:40:17 PM) smartd[5948]:Info smartd 5.41 2011-04-19 r3317 [i686-w64-mingw32-xp-sp3] (cf-win32-20110419) Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net Opened configuration file C:/Program Files/smartmontools/bin/smartd.conf Configuration file C:/Program Files/smartmontools/bin/smartd.conf was parsed, found DEVICESCAN, scanning devices Device: /dev/sda, opened Device: /dev/sda, WDC WD3200BEVT-22ZCT0, S/N:WD-WXE208FN5364, WWN:5-0014ee-25682b004, FW:11.01A11, 320 GB Device: /dev/sda, found in smartd database. Device: /dev/sda, enabled SMART Attribute Autosave. Device: /dev/sda, enabled SMART Automatic Offline Testing. Second Event (4:40:18 PM) smartd[5948]:Info Monitoring 1 ATA and 0 SCSI devices Device: /dev/sda, offline data collection was suspended by an interrupting command from host (auto:on) Any idea what I'm doing wrong? Thanks, T |
|
From: Christian F. <Chr...@t-...> - 2011-06-14 20:27:32
|
Thane Sherrington wrote: > Hi All, > I'm trying to get smartd to run in Windows as a service and monitor > the hard drive. I'm using the following: > > In the smartd.conf file, I have the line: > DEVICESCAN -a -o on -S on -s (S/../.././02|L/../../6/03) > > Then I ran: smartd install and I got the response: > "Installing service smartd: done" > > SmartD shows up as a service in Windows. > > Then I ran: net start smartd > [...] > > Second Event (4:40:18 PM) > smartd[5948]:Info > Monitoring 1 ATA and 0 SCSI devices > Device: /dev/sda, offline data collection was suspended by an > interrupting command from host (auto:on) > > This is no problem. Auto offline data collection is enabled and disks may suspend it on some command. Smartd may later report "offline data collection in progress". > Any idea what I'm doing wrong? > > Nothing :-) Thanks, Christian |
|
From: Tom M. <tme...@gm...> - 2007-04-29 18:09:57
|
Thane Sherrington wrote: > Has anyone used [smartd] with Windows and have some advice? I have it set up on a couple of Windows machines and it seems to work fine, though I was already fairly familiar with smartd from having set it up on several Linux machines. On Windows you can choose to have it log to the operating system's event log, which I did on one of the machines, but the event log on Windows isn't well suited to handling the volume of messages smartd can produce. Also the way smartd seems send messages to the event log results in multiple log lines bunched together into single event log entries, which makes things cluttered. So I recommend using the option of logging to a dedicated log file. > I'm trying to figure out how to...have it send warning emails when > there is a problem... As there isn't a stock facility for sending mail on Windows machines, smartd depends on the presence of a third-party tool (I believe the one recommended in "blat"). Unless you really need email notification, a simpler option is to configure smartd to display a dialog. My sample config below does this. It also tells smartd to display a dialog when it is started to confirm that notifications are functioning correctly. # First (primary) ATA/IDE hard disk. Monitor all attributes, enable # automatic online data collection, automatic Attribute autosave, and # start a short self-test every day between 2-3am, and a long self test # Saturdays between 3-4am. /dev/hda -a -o on -S on -s (L/../../6/03|S/../.././02) -m sysmsgbox -M test > ...and one message a day with a log file attached. I don't think you'll find that capability built-in to smartd. You'll have to create your own script to accomplish that and run it from the Windows Task Scheduler. If you're not up for a bit of scripting, consider having smartd log to the event log, and install a log monitoring tool. -Tom |