Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
smartd spams my logger
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3345
Location: Rasi, Finland

PostPosted: Thu Apr 11, 2019 9:00 pm    Post subject: smartd spams my logger Reply with quote

I've been having this problem for quite a long time now.
smartd writes every tempereture change of disks to my logs. Even when I have told it not.
/etc/smartd.conf:
DEFAULT -d removable -a -S on -n sleep,2 -W 10

/dev/disk/by-path/ata1-host0-target0:0:0-0:0:0:0
/dev/disk/by-path/ata2-host1-target1:0:0-1:0:0:0
/dev/disk/by-path/ata3-host2-target2:0:0-2:0:0:0
/dev/disk/by-path/ata4-host3-target3:0:0-3:0:0:0
/dev/disk/by-path/ata5-host4-target4:0:0-4:0:0:0
/dev/disk/by-path/ata6-host5-target5:0:0-5:0:0:0
All the disks here are in hostswap cage, so that's why the -d removable.
I've tried with -W 5,50,60 earlier, but it has no effect.
Any tips?
_________________
..: Zucca :..
Gentoo IRC channels reside on Libera.Chat.
--
Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Fri Apr 12, 2019 12:33 am    Post subject: Reply with quote

The smartd manpage has one example for exactly this (you want -I 194 instead of -W <anything>):
Quote:
Code:
# The following line enables monitoring of the
# ATA Error Log and the Self-Test Error Log.
# It also tracks changes in both Prefailure
# and Usage Attributes, apart from Attributes
# 9, 194, and 231, and shows  continued lines:
#
/dev/sdd -l error \
    -l selftest \
    -t \         # Attributes not tracked:
    -I 194 \     # temperature
    -I 231 \     # also temperature
    -I 9         # power-on hours
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3345
Location: Rasi, Finland

PostPosted: Fri Apr 12, 2019 8:08 am    Post subject: Reply with quote

That would still result in same kind of spamming. Since I cannot set any temperature ranges by using -I 194. :(
_________________
..: Zucca :..
Gentoo IRC channels reside on Libera.Chat.
--
Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3345
Location: Rasi, Finland

PostPosted: Fri Apr 12, 2019 9:18 am    Post subject: Reply with quote

Tested with -I 194 and without any temperature monitoring, but I still get log spamming. :|

Maybe I'd be better to have some cron job as monitoring the temparature changes...
I've already given scheduled tests over to cron, but I keep smartd running because It can effectively log the changes.

EDIT: I might be wrong... Looks like log spamming has now stopped. But now nothing is logging any temperature changes. :|
I'll continue trying out to solve this...
My goal is to have smartd report over 5°C temperature changes and over 50°C would be logged more often and 60°C considered critical. (I know those values are quite high, but will do while I'm trying to solve this.)
Those values would translate to -W 5,50,60.
_________________
..: Zucca :..
Gentoo IRC channels reside on Libera.Chat.
--
Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum