Opened 10 years ago

Closed 10 years ago

Last modified 10 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 10 years ago.
smart table output
smartd.conf (6.8 KB ) - added by miknik 10 years ago.
smartd config file
onecheck.txt (1.2 KB ) - added by miknik 10 years ago.
smartd onecheck

Download all attachments as: .zip

Change History (14)

comment:1 by Christian Franke, 10 years ago

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 by Christian Franke, 10 years ago

Milestone: Release 6.0

by miknik, 10 years ago

Attachment: hdd info.txt added

smart table output

by miknik, 10 years ago

Attachment: smartd.conf added

smartd config file

by miknik, 10 years ago

Attachment: onecheck.txt added

smartd onecheck

comment:3 by miknik, 10 years ago

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 by Christian Franke, 10 years ago

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 by miknik, 10 years ago

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

comment:6 by Christian Franke, 10 years ago

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 by miknik, 10 years ago

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 by Christian Franke, 10 years ago

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 by miknik, 10 years ago

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

comment:10 by miknik, 10 years ago

Resolution: worksforme
Status: newclosed

comment:11 by Christian Franke, 10 years ago

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