Custom Query (1414 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (40 - 42 of 1414)

Ticket Resolution Summary Owner Reporter
#1100 worksforme smartmontools Database: WD30EFRX-68EUZN0 srveng
Description

Please update the smartmontools Database with the following model.

Please find attached smartctl smartmontools report for the device.

Western Digital Red

Model: WD30EFRX-68EUZN0

#1572 invalid smartmontools 7.2: mailer call in wrong way evgeniy
Description

I have such configuration in /etc/smartd.conf: /dev/nvme0n1 -a -d nvme -n sleep -m root -M daily -M exec /etc/smartd_warning.sh

/etc/smartd_warning.sh is default one except: Except such lines right after "set -e":

echo "smartd_warning.sh start" | logger -t "smartd script" echo "args: $@" | logger -t "smartd script"

And recently I saw this in log: Feb 26 13:58:43 15inch logger[1045974]: smartd script: smartd_warning.sh start Feb 26 13:58:43 15inch logger[1045976]: smartd script: args: -s SMART error (ErrorCount) detected on host: 15inch root Feb 26 13:58:43 15inch smartd[861]: Warning via /etc/smartd_warning.sh to root produced unexpected output (809 bytes) to STDOUT/STDERR: Feb 26 13:58:43 15inch smartd[861]: smartd 6.3 warning message script Feb 26 13:58:43 15inch smartd[861]: Usage: Feb 26 13:58:43 15inch smartd[861]: export SMARTD_MAILER='Path to external script, empty for "mail"' Feb 26 13:58:43 15inch smartd[861]: export SMARTD_ADDRESS='Space separated mail adresses, empty if none' Feb 26 13:58:43 15inch smartd[861]: export SMARTD_MESSAGE='Error Message' Feb 26 13:58:43 15inch smartd[861]: export SMARTD_FAILTYPE='Type of failure, "EMailTest" for tests' Feb 26 13:58:43 15inch smartd[861]: export SMARTD_TFIRST='Date of first message sent, empty if none' Feb 26 13:58:43 15inch smartd[861]: #export SMARTD_TFIRSTEPOCH='time_t format of above' Feb 26 13:58:43 15inch smartd[861]: export SMARTD_PREVCNT='Number of previous messages, 0 if none' Feb 26 13:58:43 15inch smartd[861]: export SMARTD_NEXTDAYS='Number of days until next message, empty if none' Feb 26 13:58:43 15inch smartd[861]: export SMARTD_DEVICEINFO='Device identify information' Feb 26 13:58:43 15inch smartd[861]: #export SMARTD_DEVICE='Device name' Feb 26 13:58:43 15inch smartd[861]: #export SMARTD_DEVICESTRING='Annotated device name' Feb 26 13:58:43 15inch smartd[861]: #export SMARTD_DEVICETYPE='Device type from -d directive, "auto" if none' Feb 26 13:58:43 15inch smartd[861]: /etc/smartd_warning.sh [--dryrun] Feb 26 13:58:43 15inch smartd[861]: Warning via /etc/smartd_warning.sh to root: failed (32-bit/8-bit exit status: 256/1)

So for some reason there is some additional argument "-s" was passed to smartd_warning.sh and also message was passed not via environment variable, while manual page tells that message should be in SMARTD_MESSAGE

#1063 worksforme smartd_mailer.ps1 does not work Mateus Henrique
Description

Hi all.

Firstly, thx for this great software contribuition. I'm having problems with experimental email sender feature of Windows version (PowerShell). How this really works?

Well....We have bin folder structure script/conf files:

smartd.conf

smartd_mailer.conf.sample.ps1 smartd_mailer.ps1 smartd_warning.cmd

According wiki (https://www.smartmontools.org/browser/trunk/smartmontools/smartd.conf.5.in) and my understanding, first we need to create/manage directives to determine actions. Ex: Generate Logs by bad blocks, bad life hard disk and send mail...

I'm using Windows 10 release 1803 x64 and version 6.6.207-11-05 r4594 (sf-6.6.1) My problem, is now...

  1. What hierarchy of setting up files? Who file come's first, who depend who, who call who? Basically: smartd.conf => smartd_warning.cmd => defines what mail sender => smartd_mailer.ps1 => read SMTP data => smartd_mailer.conf.sample.ps1 Is that correct?

  1. smartd.conf call smartd_warning.cmd with -M exec? But, in the wiki says:

If the file EXEDIR/smartd_mailer.conf.ps1 is present and '-M exec' is not specified, the script smartd_mailer.ps1 is used instead. This script uses the Send-MailMessage cmdlet to send mail. See EXEDIR/smartd_mailer.conf.sample.ps1 for info about the format of the configuration file.

  1. smartd_warning.cmd verify what's and call default mailer.

if smartd_mailer.ps1 exists, AND -M exec directive not specified, automatically will use PowerShell method, right?

  1. About script smartd_warning.cmd, When I run, he everytime say: "smartd_warning.cmd: SMARTD_ADDRESS or SMARTD_MAILER must be set"

How I can set these variables? I just tried uncomenting echo, and increment values to specified vars.

  1. How I can test if a mail is working correctly? I trying but no success. Using -M test not working.

Thx.

Batch Modify
Note: See TracBatchModify for help on using batch modify.
Note: See TracQuery for help on using queries.