Xymon Mailing List Archive search

Lines to flag red or yellow in msgs

list Josh Luthman
Wed, 12 Mar 2008 13:08:19 -0400
Message-Id: <user-b0f6faf52d17@xymon.invalid>

I must have skipped over that when I did a grep -i msgs
~hobbituser/server/etc/* to brute force the answer out of the configuration.
=P

I went on the server and made a line that says...

HOST=thismatchesbbhosts
  LOG /var/log/messages e100_watchdog COLOR=red TEXT="bond interface watch"

On the hobbit server, on the msgs test page, I have this text...

Mar 12 12:55:19 neon kernel: e100: eth0: e100_watchdog: link down
Mar 12 12:55:19 neon kernel: bonding: bond0: link status definitely
down for interface eth0, disabling it
Mar 12 12:55:19 neon kernel: bonding: bond0: making interface eth1 the
new active one.
Mar 12 12:55:23 neon kernel: e100: eth0: e100_watchdog: link up,
100Mbps, full-duplex
Mar 12 12:55:23 neon kernel: bonding: bond0: link status definitely up
for interface eth0.
Mar 12 12:55:26 neon kernel: e100: eth1: e100_watchdog: link down
Mar 12 12:55:26 neon kernel: bonding: bond0: link status definitely
down for interface eth1, disabling it
Mar 12 12:55:26 neon kernel: bonding: bond0: making interface eth0 the
new active one.
Mar 12 12:55:28 neon kernel: e100: eth1: e100_watchdog: link up,
100Mbps, full-duplex
Mar 12 12:55:28 neon kernel: bonding: bond0: link status definitely up
for interface eth1.

But it still says green.  Any idea where my mistake is?

Thanks for the help Steve!


On 3/12/08, Steve Holmes <user-ec1bf77b1b44@xymon.invalid> wrote:
Josh,I think Dirk meant the hobbit-clients.cfg file on the server. In my
hobbit-clients.cfg file I have (for example):
LOG /var/adm/messages %(?-i)WARNING COLOR=yellow
IGNORE="%.*fibre-chanel.*"

which says turn yellow for a warning but ignore the given string. And this
is on the server.

Is that not what you want?

Steve.

On Wed, Mar 12, 2008 at 12:08 PM, Josh Luthman <
user-4c45a83f15cb@xymon.invalid> wrote:
One and only bump on this =)

Is it possible to specify words or something on the server side to make
the msgs test red or yellow?  Dirk here gave me a solution for the client
side which works, but if at all possible I'd like to configure it on the
server.

Josh


On 3/11/08, Josh Luthman <user-4c45a83f15cb@xymon.invalid> wrote:
Is there an equal way to do the same thing on the server side?


On 3/11/08, Dirk Kastens <user-e4253f8fc63b@xymon.invalid> wrote:
Hi Josh,

Josh Luthman schrieb:
Is it possible for me to define lines that appear in msgs to
activate a
red or yellow alert?
Of course. You have to define a match-pattern and a COLOR statement
in
the LOG entry of your client configuration file. This is explained
inside the client config file localclient.cfg, if you use client
side
configuration.

--
Regards,

Dirk Kastens
Universitaet Osnabrueck, Rechenzentrum (Computer Center)
Albrechtstr. 28, 49069 Osnabrueck, Germany
Tel.: +XX-XXX-XXX-XXXX, FAX: -2470

--
Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

Those who don't understand UNIX are condemned to reinvent it, poorly.
--- Henry Spencer
--
Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

Those who don't understand UNIX are condemned to reinvent it, poorly.
--- Henry Spencer
-- 
Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

Those who don't understand UNIX are condemned to reinvent it, poorly.
--- Henry Spencer