[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Strange Rule Matching Issue
- To: hobbit (at) hswn.dk
- Subject: Strange Rule Matching Issue
- From: "Chris Strzelczyk" <chris4136 (at) gmail.com>
- Date: Wed, 3 Sep 2008 09:29:51 -0400
- 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:mime-version:content-type; bh=3y1o/YHzZahmpqSk4LzPdv5aCMA4VqNdij6wQAUoJFk=; b=s7MyoMykK+Zjo/6rkv1oxGQd/HFE6XnJXyEJyFcWjArcK6G/Ro38RE6yCxJc04CAwG xaJMH2xEKKzvuAE25jswRjzmHPwU5JxH7SEmyeayQqcUt8uegXJbxqU4mbbtoNvD7YnB iS/u2pZA5RGmOBqTvDPTdKM3x21TMhGzAauik=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=xvKL6bzaIH1iX6f+El/4Pzpty/gPqaTAu0fLeQeYOSGwBo9Ku2xywBvzL/Ka0C5FEC O/B4TqAjOhfGIHTx7A8nZ55EEYl+pjEuS/0jzFZSmXs9XNf5PfBruTEZgqYddPklf+aL t0IYnXR97gzYOQMR+9qPI1/3UVTO6vBPLSJPc=
Hello, I have a strange rule matching issue.
I have a rule in my hobbit-alert file which looks like this:
*HOST=* SERVICE=*
MAIL $test COLOR=red REPEAT=10*
The rule **SHOULD** only send when the disk (or any other service) reaches
red color. I have disk defined in my hobbit-clients.cfg as:
*DISK * 90 95
*
I have a server that currently has a filesystem filled to 91%. The server
name is 'stflnx1d'. I am getting the following emails:
*yellow Wed Sep 3 08:52:24 EDT 2008 - Filesystems NOT ok
&yellow /var (91% used) has reached the WARNING level (90%)*
I ran the bin/hobbitd_alert and got the following:
*00011596 2008-09-03 09:24:20 Matching host:service:page
'stflnx1d:disk:AIXDev' against rule line 138
00011596 2008-09-03 09:24:20 *** Match with 'MAIL $test COLOR=red REPEAT=10'
***
00011596 2008-09-03 09:24:20 Mail alert with command
'/var/spool/mail/mrhobbit "Hobbit [12345] stflnx1d:disk CRITICAL (RED)"
chris (at) xxxxx.com'*
As you can see it matches the rule as RED even though I an the warning state
of yellow for the disk on the server. It also sends me the email with
Yellow status. It doesn't match any other rule. I tried setting the
COLOR=yellow in the rule and it didn't match. Can anybody tell me why
Hobbit thinks this is RED when it is really Yellow????
Thank You,
-cs