Changes

Smartmontools

2,243 bytes added, 11:49, 14 November 2008
New page: == Smartmontools == You can use [http://smartmontools.sourceforge.net/ Smartmontools] to monitor your hard drive [http://en.wikipedia.org/wiki/S.M.A.R.T. SMART] status and predict disk fa...
== Smartmontools ==

You can use [http://smartmontools.sourceforge.net/ Smartmontools] to monitor your hard drive [http://en.wikipedia.org/wiki/S.M.A.R.T. SMART] status and predict disk failures. I use [http://www.blat.net/ Blat] for sending error messages to my email.
Edit smartd.conf and set correct size of it in packages.xml.

<source lang="xml">
<packages>
<package id="smart" name="smartmontools 5.38-1" revision="1" priority="0" reboot="false">
<check type="logical" condition="and">
<check type="file" condition="sizeequals" path="%PROGRAMFILES%\smartmontools\smartctl.exe" value="266752" />
<check type="file" condition="sizeequals" path="%PROGRAMFILES%\smartmontools\smartd.conf" value="149" />
<check type="file" condition="sizeequals" path="%PROGRAMFILES%\smartmontools\smartd.exe" value="326144" />
<check type="file" condition="sizeequals" path="%PROGRAMFILES%\smartmontools\syslogevt.exe" value="20480" />
<check type="file" condition="sizeequals" path="%PROGRAMFILES%\smartmontools\blat.exe" value="115200" />
</check>
<install cmd="cmd.exe /C xcopy /y %SOFTWARE%\utiliti\smartmontools\* "%PROGRAMFILES%\smartmontools\"" timeout="30" />
<install cmd="cmd.exe /C "%PROGRAMFILES%/smartmontools/blat.exe" -install your.workstation.domain.lv sender@address.lv" timeout="10" />
<install cmd="cmd.exe /C "%PROGRAMFILES%/smartmontools/smartd.exe" install -l local0" timeout="10" />
<install cmd="net start smartd" timeout="10" />
<prepare cmd="cmd.exe /C mkdir "%PROGRAMFILES%\smartmontools"" timeout="10" />
<remove cmd="net stop smartd" timeout="10" />
<remove cmd="cmd.exe /C "%PROGRAMFILES%/smartmontools/smartd.exe" remove" timeout="10" />
<remove cmd="cmd.exe /C rmdir /Q /S "%PROGRAMFILES%/smartmontools"" timeout="10" />
<upgrade cmd="net stop smartd" timeout="10" />
<upgrade cmd="cmd.exe /C xcopy /y %SOFTWARE%\utiliti\smartmontools\* "%PROGRAMFILES%\smartmontools\"" timeout="30" />
<upgrade cmd="net start smartd" timeout="10" />
</package>
</packages>
</source>

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@address.lv


</pre>

[[category:Silent Installers]]
23
edits