Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#539 closed enhancement (worksforme)

email notify when №5 and №188 attr non-zero

Reported by: miknik Owned by:
Priority: minor Milestone:
Component: smartd Version: 6.3
Keywords: Cc:

Description

I have a hdd with smart attribute №5 value 1176 and №188 value 40, №188 is incremented after each windows restart. so i want to make email notify about those attributes when they are non-zero or changed.
I tried different settings, but with no luck.

Attachments (3)

hdd info.txt (5.1 KB) - added by miknik 5 years ago.
smart table output
smartd.conf (6.8 KB) - added by miknik 5 years ago.
smartd config file
onecheck.txt (1.2 KB) - added by miknik 5 years ago.
smartd onecheck

Download all attachments as: .zip

Change History (14)

comment:1 Changed 5 years ago by Christian Franke

Milestone: Release 6.0

Try smartd.conf directives -R 5! -R 188!. See smartd.conf man page for details.

If it works, close this ticket with "worksforme".

If not, provide the smartd.conf file and the output of smartd -q onecheck as plain text attachments.

comment:2 Changed 5 years ago by Christian Franke

Milestone: Release 6.0

Changed 5 years ago by miknik

Attachment: hdd info.txt added

smart table output

Changed 5 years ago by miknik

Attachment: smartd.conf added

smartd config file

Changed 5 years ago by miknik

Attachment: onecheck.txt added

smartd onecheck

comment:3 Changed 5 years ago by miknik

Milestone: Release 6.4

no, it not works, email message still not have been sended. i attached required files and also smart table output.

comment:4 Changed 5 years ago by Christian Franke

Milestone: Release 6.4none
Priority: majorminor

If -R ID! is used, mail is only sent after the raw value of ID has CHANGED. A directive for non-zero raw values does not exist.

comment:5 Changed 5 years ago by miknik

I restarted Windows and attr # 188 increased, but email message still not have been sended

comment:6 Changed 5 years ago by Christian Franke

If state persistence (smartd -s option) is not used, smartd does not know the old value from previous run. Therefore the increase is only detected if it occurs DURING smartd's run.

Also make sure (with -M test directive) that the mailer works in general.

comment:7 Changed 5 years ago by miknik

sorry, i am not sure that i properly understand smartd.config man about -s option. could you write me exactly string that i must add to config? thanks.

comment:8 Changed 5 years ago by Christian Franke

The smartd -s command line OPTION is documented on the smartd man page, not the smartd.conf man page.

This ticket system is not a support forum. Please ask support questions on the smartmontools-support mailing list.

comment:9 Changed 5 years ago by miknik

I realized what was wrong, and now everything works. thank you very much!

comment:10 Changed 5 years ago by miknik

Resolution: worksforme
Status: newclosed

comment:11 Changed 5 years ago by Christian Franke

Milestone: none
Note: See TracTickets for help on using tickets.