Re: need help with smartd warning script

Christian Franke <[email protected]>
Newsgroups gmane.linux.utilities.smartmontools
Message-ID <[email protected]>
Тарасов Дмитрий wrote:
>
> Hi, can u tell me how in smartd_warning.cmd   in smartmontools   dir   
> make send report with ALL information of ALL SMART attributes?
>
> And I don’t understand what kind of variables and where they come from?
>
> set SMARTD_MAILER='Path to external script, empty for "blat"'
>
>   echo set SMARTD_ADDRESS='Space separated mail adresses, empty if none'
>
>   echo set SMARTD_MESSAGE='Error Message'
>
>   echo set SMARTD_FAILTYPE
>

The variables are set by smartd.exe and passed to smartd_warning.cmd. 
See smartd.conf man page.

If you want other info you could run a custom script with smartd -w option.
This script could run

   smartctl -i -A -d %SMARTD_DEVICETYPE% %SMARTD_DEVICE%

to include attribute info in the warning message.

Thanks,
Christian


------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Smartmontools-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/smartmontools-support
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.