Changes

Smartmontools

3,516 bytes added, 23:31, 11 August 2009
Smartmontools
== Smartmontools + Blat ==
 
You can use [http://smartmontools.sourceforge.net/ Smartmontools] to monitor your hard drive's [http://en.wikipedia.org/wiki/S.M.A.R.T. SMART] status and it will also '''help''' to predict disk failures. I like to use [http://www.blat.net/ Blat] for sending any error messages to my email.
'''NOTE:'''There is currently no way besides checking the size of the files, to see via WPKG if smartmontools is istalled or not. I know it will be coming soon, but I don't know when.
 
Download smartmontools from, just select the newest version:
http://sourceforge.net/projects/smartmontools/files/
Save smartmontools into %SOFTWARE%\smartmontools\
 
Download blat from, just select the newest version:
http://sourceforge.net/projects/blat/files/
Save blat into %SOFTWARE%\smartmontools\
 
Edit smartd.conf and the following line, and change to fit your email address in the configuration file.
 
smartd.conf contents:
 
<pre>
# Sample configuration file for smartd. See man smartd.conf.
 
DEVICESCAN -a -o on -S on -s (S/../.././12|L/../../1/03) -m your@email.address
 
 
</pre>
 
<source lang="xml">
<packages>
<package id="smartmontools" name="smartmontools 5.38-1" revision="5381" priority="0" reboot="false">
<check type="logical" condition="and">
<check type="file" condition="sizeequals" path="%PROGRAMFILES%\smartmontools\bin\smartctl.exe" value="266752" />
<check type="file" condition="exists" path="%PROGRAMFILES%\smartmontools\bin\smartd.conf" />
<check type="file" condition="sizeequals" path="%PROGRAMFILES%\smartmontools\bin\smartd.exe" value="326144" />
<check type="file" condition="sizeequals" path="%PROGRAMFILES%\smartmontools\bin\syslogevt.exe" value="20480" />
<check type="file" condition="sizeequals" path="%PROGRAMFILES%\smartmontools\bin\blat.exe" value="36864" />
</check>
<install cmd='cmd.exe /c del /q "%PROGRAMFILES%\smartmontools\bin\smartd.conf"'>
<exit code="any" />
</install>
<install cmd='cmd.exe /c start /wait xcopy /y "%SOFTWARE%\smartmontools\blat.exe" "%PROGRAMFILES%\smartmontools\bin\"' />
<install cmd='cmd.exe /c start /wait xcopy /y "%SOFTWARE%\smartmontools\blat.exe" "%SYSTEMROOT%\system32\"' />
<install cmd='cmd.exe /c "%SOFTWARE%\smartmontools\smartmontools-5.38-1.win32-setup.exe" /S'/>
<install cmd='cmd.exe /C start /wait ping -n 2 127.0.0.1'/>
<install cmd='cmd.exe /C xcopy /y "%SOFTWARE%\smartmontools\smartd.conf" "%PROGRAMFILES%\smartmontools\bin\smartd.conf"'/>
<install cmd='cmd.exe /C start /wait ping -n 2 127.0.0.1'/>
<install cmd='cmd.exe /c "%ProgramFiles%\smartmontools\bin\smartd.exe" install'/>
<install cmd='cmd.exe /c start /wait sc config smartd start= auto'/>
<install cmd='regedit /s %SOFTWARE%\smartmontools\blat.reg' />
<install cmd='cmd.exe /c reg.exe add "HKLM\SOFTWARE\Public Domain\Blat" /v Sender /d %%COMPUTERNAME%% /f' />
<install cmd='cmd.exe /c start /wait sc start smartd '/>
<remove cmd='cmd.exe /c del /q "%PROGRAMFILES%\smartmontools\bin\smartd.conf"'>
<exit code="any" />
</remove>
<remove cmd='cmd.exe /C sc stop smartd'/>
<remove cmd='cmd.exe /c del /q "%PROGRAMFILES%\smartmontools\bin\blat.exe"'/>
<remove cmd='cmd.exe /c del /q "%SYSTEMROOT%\system32\blat.exe"'/>
<remove cmd='cmd.exe /C "%ProgramFiles%\smartmontools\bin\smartd.exe" remove'/>
<remove cmd='cmd.exe /C "%ProgramFiles%\smartmontools\uninst-smartmontools.exe" /S'/>
</package>
</packages>
</source>
 
--[[User:Jgriffith|Jgriffith]] 01:31, 12 August 2009 (CEST)
 
----
 
 
 
== Smartmontools ==
4
edits