[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] Re: need help with IGNORE pattern
- To: hobbit (at) hswn.dk, hobbitmon-developer (at) lists.sourceforge.net
- Subject: Re: [hobbit] Re: need help with IGNORE pattern
- From: "Asif Iqbal" <vadud3 (at) gmail.com>
- Date: Thu, 20 Nov 2008 00:10:21 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=P778tYyTJfZ85WO/BkRT5oXOuyLjGQvxpOw2rgUN0QI=; b=IdDPwzGucTy29mX+r8zwqq2iD4L98iTYmqruXtiZPpT3ildhZYsrdY5Wky4vzJB6Cx RyjAQ4/Pm65hQbeVQolTLpsPTgbopfyxuwgoRNivF/6KpZ9OgM+h5RElcDKqPxlRpCLT GnvoaE5WMGT7aCk6ARp6BEBfJHU6m+BHYJkOY=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=kXw1EpgDKiGr9eRjCfaNo4EDZNdYINdm2S7ua5Hk2wOEv8jFEhkee8g8veHvztQFtM 3n8ngOAa8KqP5nQiucOiVf4IGQ8Z0skd0XgMFFNq8h09CwQTNANLFy+lARzYJ+M6UXr0 OQdyz3FZYs7GjZvDbz6cUMi1telzw5qgWQxAI=
- References: <a60f25fc0811171443v22cd60e1y962fc4f6e23b2828 (at) mail.gmail.com> <a60f25fc0811180728r11e37ef9i622ef4881f8b2cde (at) mail.gmail.com> <4922E2C0.6000702 (at) unil.ch> <a60f25fc0811180833x6f0e5445r8f6c8c19e91b59d7 (at) mail.gmail.com>
On Tue, Nov 18, 2008 at 11:33 AM, Asif Iqbal <vadud3 (at) gmail.com> wrote:
> On Tue, Nov 18, 2008 at 10:44 AM, Dominique Frise
> <dominique.frise (at) unil.ch> wrote:
>> Asif Iqbal wrote:
>>>
>>> On Mon, Nov 17, 2008 at 5:43 PM, Asif Iqbal <vadud3 (at) gmail.com> wrote:
>>>>
>>>> This is the data in /var/adm/messages file
>>>>
>>>> Nov 17 15:25:08 server fcsm: [ID 517869 kern.warning] WARNING:
>>>> fcsm(0): fc packet to DID 0xfffffa failed state: Packet Transport
>>>> error(0xe); reason: No Connection(0x5)
>>>>
>>>>
>>>> This is the entry in hobbit-client.cfg
>>>>
>>>> LOG /var/adm/messages "%(?-i)WARNING|(?-i)ERROR" IGNORE=%fcsm.*
>>>>
>>>> I also tried %.*fcsm.* with no avail
>>>>
>>>> But I am still getting alerts for that line in messages file
>>>>
>>>> What am I doing wrong?
> [..stripped for brevity..]
> I am wondering if hobbit is misbehaving?!
hobbit is *definitely* misbehaving.
If my log line: in the following test does not have the exact word
`WARNING' *only* then I get green for the with this ignore pattern
%fcsm.*. It should be always green if `fcsm' shows up in log line
Here are the relevant lines in hobbit-client.cfg file
[....]
HOST=server
LOG /var/adm/messages "%(?-i)WARNING|(?-i)ERROR" COLOR=red IGNORE=%fcsm.*
[...]
Here are the two tests. First one failing (because of the WARNING) and
second one passes
(both of them should pass according to hobbit-client.cfg man page)
(hobbit)@hobbit:~/server$ ./bin/hobbitd_client --test
Hostname (.=end, ?=dump, !=reload) []: server
Hosttype []:
Test (cpu, mem, disk, proc, log, port): log
log filename: /var/adm/messages
To read log data from a file, enter '@FILENAME' at the prompt
log line: Nov 19 18:25:07 server fcsm: [ID 517869 kern.warning]
WARNING: fcsm(0): fc packet to DID 0xfffffa failed state: Packet
Transport error(0xe); reason: No Connection(0x5)
log line:
Log status is red
&red Nov 19 18:25:07 server fcsm: [ID 517869 kern.warning] WARNING:
fcsm(0): fc packet to DID 0xfffffa failed state: Packet Transport
error(0xe); reason: No Connection(0x5)
Hostname (.=end, ?=dump, !=reload) [server]:
Test (cpu, mem, disk, proc, log, port): log
log filename: /var/adm/messages
To read log data from a file, enter '@FILENAME' at the prompt
log line: Nov 19 18:25:07 server fcsm: [ID 517869 kern.warning] :
fcsm(0): fc packet to DID 0xfffffa failed state: Packet Transport
error(0xe); reason: No Connection(0x5)
log line:
Log status is green
Hostname (.=end, ?=dump, !=reload) [server]:
How do I submit this bug? I tested it with hobbit-4.3 trunk's
hobbitd_client and showing same behavior.
--
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu