[EMAIL PROTECTED](Jamie L. Penman-Smithson) 02.07.05 14:57
>package logcheck
>reassign 316618 hddtemp
>retitle 316618 hddtemp: logcheck rules do not ignore drive sleeping
>messages thanks
>On Sat, 2005-07-02 at 15:22 +0200, Rainer Zocholl wrote:
><snip>
>>>Jul 2 09:25:51 data hddtemp[15424]: /dev/hda: IBM-DJNA-351520: 43 C
>>>Jul 2 09:25:51 data hddtemp[15424]: /dev/hdb: FUJITSU MPG3204AH EF:
>>>drive is sleeping
>>
>> I found that there is already /etc/logcheck/ignore.d.server:
>>
>> ^\w{3} [ :0-9]{11} [._[:alnum:]-]+ hddtemp\[[0-9]+\]:
>> /dev/([hs]d[a-z]|sg[0-9]): .*: [0-9]+ [CF]$
>>
><snip>
>> a) It would be nice if the loglevel would be reported in the mail
>> too.
>Once you configure the loglevel you don't need to change it again. I
>fail to see how including it in messages sent by logcheck would have
>any additional benefit.
Because i had access only to the emails but not the box
and did not configure it my self, sorry. ;-)
But Ok:
Is the mails boilerplate text "interpreted" or just included?
If "interpreted" (like with "."bash-commnad) everyone could
add the variables he like to have in the mail present.
>> b) How not to ignore too large "C" values?
>> c) Why is "drive is sleeping" not ignored? "[0-9]+ [CF]" will not
>> fit IMHO
>The hddtemp rules are provided by the hddtemp package. Reassigning.
Ah, good.
How can i determine where each rule came from?
I fixed the problem by these hddtemp rules:
^\w{3} [ :0-9]{11} [._[:alnum:]-]+ hddtemp\[[0-9]+\]:
/dev/([hs]d[a-z]|sg[0-9]): .*: [1][7-9] [CF]$
^\w{3} [ :0-9]{11} [._[:alnum:]-]+ hddtemp\[[0-9]+\]:
/dev/([hs]d[a-z]|sg[0-9]): .*: [2-3][0-9] [CF]$
^\w{3} [ :0-9]{11} [._[:alnum:]-]+ hddtemp\[[0-9]+\]:
/dev/([hs]d[a-z]|sg[0-9]): .*: [4][0-2] [CF]$
^\w{3} [ :0-9]{11} [._[:alnum:]-]+ hddtemp\[[0-9]+\]:
/dev/([hs]d[a-z]|sg[0-9]): .*: drive is sleeping$
So i will get warned by logcheck if the temperature is
above 43C and below 17C less than 17C means: Sensor or aircondition broken.
That might be configurable by the hddtemp installer as the values
changes per box, disk and loaction and personal taste.
Thanks for the fast response.
Rainer
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]