Xymon Mailing List Archive search

msgs : always green instead of configuring for errors

6 messages in this thread

list Akshar Bhosale · Sun, 13 Feb 2011 17:28:18 +0530 ·
fi,
i am using xymon 4.2.2. I want that each client should show msgs red if
lockup word comes in /var/log/messages. I have configured following in
following files on xymon server :
~xymon/server/etc/client-local.cfg ->
[linux]
log:/var/log/messages:10240
ignore MARK
trigger lockup

~xymon/server/etc/hobbit-clients.cfg
DEFAULT
        # These are the built-in defaults.
        UP      1h
        LOAD    18.0 20.0
        DISK    * 90 95
        MEMPHYS 100 101
        MEMSWAP 50 80
        MEMACT  90 97
        PROC cron
        PROC /opt/PBS/bin/myscript.sh
        LOG /var/log/messages lockup COLOR=red

i get lockup messages in msgs; but color is still green. How to change the
color?
list Henrik Størner · Mon, 14 Feb 2011 06:30:37 +0000 (UTC) ·
quoted from Akshar Bhosale
In <user-090cc990b59a@xymon.invalid> akshar bhosale <user-ef04175556bd@xymon.invalid> writes:
i am using xymon 4.2.2. I want that each client should show msgs red if
lockup word comes in /var/log/messages.
~xymon/server/etc/hobbit-clients.cfg
DEFAULT
       # These are the built-in defaults.
       UP      1h
       LOAD    18.0 20.0
       DISK    * 90 95
       MEMPHYS 100 101
       MEMSWAP 50 80
       MEMACT  90 97
       PROC cron
       PROC /opt/PBS/bin/myscript.sh
       LOG /var/log/messages lockup COLOR=red
You should Never, Ever, put PROC and LOG settings in the
DEFAULT section.

Move them into a "HOST=*" section, before the DEFAULT one.


Regards,
Henrik
list Akshar Bhosale · Mon, 14 Feb 2011 18:13:50 +0530 ·
Hi,

     Thank you for pointing the mistake; but even after changing the
setting, it is not working. Here are my changed settings in
hobbit-clients.cfg
Hosts are host1.abc.pqr.xyz----host50.abc.pqr.xyz

HOST=%.*.abc.pqr.xyz
 LOG /var/log/messages lockup COLOR=red
quoted from Henrik Størner

DEFAULT
        # These are the built-in defaults.
        UP      1h
        LOAD    18.0 20.0
        DISK    * 90 95
        MEMPHYS 100 101
        MEMSWAP 50 80
        MEMACT  90 97

Even after restarting server and client, it is showing the same behaviour.
Kindly let me know i

-akshar
---------- Forwarded message ----------
quoted from Henrik Størner
From: pankaj dorlikar <user-93d3572686c4@xymon.invalid>
Date: Mon, Feb 14, 2011 at 6:05 PM
Subject: Re: [xymon] msgs : always green instead of configuring for errors
To: user-ef04175556bd@xymon.invalid


On Mon, Feb 14, 2011 at 12:00 PM, Henrik Størner <user-ce4a2c883f75@xymon.invalid> wrote:
 In <user-090cc990b59a@xymon.invalid> akshar
bhosale <user-ef04175556bd@xymon.invalid> writes:
i am using xymon 4.2.2. I want that each client should show msgs red if
lockup word comes in /var/log/messages.
~xymon/server/etc/hobbit-clients.cfg
DEFAULT
       # These are the built-in defaults.
       UP      1h
       LOAD    18.0 20.0
       DISK    * 90 95
       MEMPHYS 100 101
       MEMSWAP 50 80
       MEMACT  90 97
       PROC cron
       PROC /opt/PBS/bin/myscript.sh
       LOG /var/log/messages lockup COLOR=red
You should Never, Ever, put PROC and LOG settings in the
DEFAULT section.

Move them into a "HOST=*" section, before the DEFAULT one.


Regards,
Henrik

list Dominique Frise · Mon, 14 Feb 2011 14:16:48 +0100 ·
quoted from Akshar Bhosale
On 02/14/11 01:43 PM, akshar bhosale wrote:
Hi,
      Thank you for pointing the mistake; but even after changing the
setting, it is not working. Here are my changed settings in
hobbit-clients.cfg
Hosts are host1.abc.pqr.xyz----host50.abc.pqr.xyz
HOST=%.*.abc.pqr.xyz
LOG /var/log/messages lockup COLOR=red

DEFAULT
         # These are the built-in defaults.
         UP      1h
         LOAD    18.0 20.0
         DISK    * 90 95
         MEMPHYS 100 101
         MEMSWAP 50 80
         MEMACT  90 97

Even after restarting server and client, it is showing the same behaviour.
Kindly let me know i

-akshar
---------- Forwarded message ----------
From: *pankaj dorlikar* <user-93d3572686c4@xymon.invalid
Date: Mon, Feb 14, 2011 at 6:05 PM
Subject: Re: [xymon] msgs : always green instead of configuring for errors
To: user-ef04175556bd@xymon.invalid <mailto:user-ef04175556bd@xymon.invalid>


On Mon, Feb 14, 2011 at 12:00 PM, Henrik Størner <user-ce4a2c883f75@xymon.invalid
<mailto:user-ce4a2c883f75@xymon.invalid>> wrote:

    In <user-090cc990b59a@xymon.invalid
    akshar bhosale <user-ef04175556bd@xymon.invalid
    <mailto:user-ef04175556bd@xymon.invalid>> writes:
i am using xymon 4.2.2. I want that each client should show msgs
    red if
lockup word comes in /var/log/messages.
~xymon/server/etc/hobbit-clients.cfg
DEFAULT
       # These are the built-in defaults.
       UP      1h
       LOAD    18.0 20.0
       DISK    * 90 95
       MEMPHYS 100 101
       MEMSWAP 50 80
       MEMACT  90 97
       PROC cron
       PROC /opt/PBS/bin/myscript.sh
       LOG /var/log/messages lockup COLOR=red
    You should Never, Ever, put PROC and LOG settings in the
    DEFAULT section.

    Move them into a "HOST=*" section, before the DEFAULT one.


    Regards,
    Henrik


    xymon-unsubscribe at xymon.com <mailto:xymon-unsubscribe at xymon.com>
You may want to try:

LOG /var/log/messages  %(?-i)lockup COLOR=red


 From hobbit-clients.cfg(5):
...
                                          Note that Xymon defaults
      to  case-insensitive  pattern  matching; if that is not what
      you want, put  "(?-i)"  between  the  "%"  and  the  regular
      expression to turn this off. E.g. "%(?-i)WARNING" will match
      the word WARNING only when it is upper-case.
...

Dominique
list Akshar Bhosale · Wed, 16 Feb 2011 10:42:17 +0530 ·
Hi,

after changing the settings, same issue is coming. i ama getting those
messages inside msgs tab but color is always remains green.
kindly help me.

-akshar

---------- Forwarded message ----------
From: Dominique Frise <user-78ab6673b600@xymon.invalid>
Date: Mon, Feb 14, 2011 at 6:46 PM
Subject: Re: Fwd: [xymon] msgs : always green instead of configuring for
errors
To: xymon at xymon.com
quoted from Akshar Bhosale


On 02/14/11 01:43 PM, akshar bhosale wrote:
Hi,
     Thank you for pointing the mistake; but even after changing the
setting, it is not working. Here are my changed settings in
hobbit-clients.cfg
Hosts are host1.abc.pqr.xyz----host50.abc.pqr.xyz
HOST=%.*.abc.pqr.xyz
LOG /var/log/messages lockup COLOR=red

DEFAULT
        # These are the built-in defaults.
        UP      1h
        LOAD    18.0 20.0
        DISK    * 90 95
        MEMPHYS 100 101
        MEMSWAP 50 80
        MEMACT  90 97

Even after restarting server and client, it is showing the same behaviour.
Kindly let me know i

-akshar
---------- Forwarded message ----------
From: *pankaj dorlikar* <user-93d3572686c4@xymon.invalid
Date: Mon, Feb 14, 2011 at 6:05 PM
Subject: Re: [xymon] msgs : always green instead of configuring for errors
To: user-ef04175556bd@xymon.invalid <mailto:user-ef04175556bd@xymon.invalid>


On Mon, Feb 14, 2011 at 12:00 PM, Henrik Størner <user-ce4a2c883f75@xymon.invalid
<mailto:user-ce4a2c883f75@xymon.invalid>> wrote:

   In <user-090cc990b59a@xymon.invalid

   akshar bhosale <user-ef04175556bd@xymon.invalid
   <mailto:user-ef04175556bd@xymon.invalid>> writes:
i am using xymon 4.2.2. I want that each client should show msgs
   red if
lockup word comes in /var/log/messages.
~xymon/server/etc/hobbit-clients.cfg
DEFAULT
       # These are the built-in defaults.
       UP      1h
       LOAD    18.0 20.0
       DISK    * 90 95
       MEMPHYS 100 101
       MEMSWAP 50 80
       MEMACT  90 97
       PROC cron
       PROC /opt/PBS/bin/myscript.sh
       LOG /var/log/messages lockup COLOR=red
   You should Never, Ever, put PROC and LOG settings in the
   DEFAULT section.

   Move them into a "HOST=*" section, before the DEFAULT one.


   Regards,
   Henrik


   xymon-unsubscribe at xymon.com <mailto:xymon-unsubscribe at xymon.com>

 You may want to try:
LOG /var/log/messages  %(?-i)lockup COLOR=red


From hobbit-clients.cfg(5):
...
                                        Note that Xymon defaults
    to  case-insensitive  pattern  matching; if that is not what
    you want, put  "(?-i)"  between  the  "%"  and  the  regular
    expression to turn this off. E.g. "%(?-i)WARNING" will match
    the word WARNING only when it is upper-case.
...

Dominique
list Carl Melgaard · Wed, 16 Feb 2011 13:52:32 +0100 ·
Hi,

Did you try what Dominique Frise suggested:

You may want to try:

LOG /var/log/messages  %(?-i)lockup COLOR=red

Regards,

Carl Melgaard
quoted from Akshar Bhosale

Fra: akshar bhosale [mailto:user-ef04175556bd@xymon.invalid]
Sendt: 16. februar 2011 06:12
Til: xymon at xymon.com
Emne: Fwd: Fwd: [xymon] msgs : always green instead of configuring for errors

Hi,

after changing the settings, same issue is coming. i ama getting those messages inside msgs tab but color is always remains green.
kindly help me.

-akshar
---------- Forwarded message ----------
From: Dominique Frise <user-78ab6673b600@xymon.invalid<mailto:user-78ab6673b600@xymon.invalid>>
Date: Mon, Feb 14, 2011 at 6:46 PM
Subject: Re: Fwd: [xymon] msgs : always green instead of configuring for errors
To: xymon at xymon.com<mailto:xymon at xymon.com>

On 02/14/11 01:43 PM, akshar bhosale wrote:
Hi,
     Thank you for pointing the mistake; but even after changing the
setting, it is not working. Here are my changed settings in
hobbit-clients.cfg
Hosts are host1.abc.pqr.xyz----host50.abc.pqr.xyz
HOST=%.*.abc.pqr.xyz
LOG /var/log/messages lockup COLOR=red

DEFAULT
        # These are the built-in defaults.
        UP      1h
        LOAD    18.0 20.0
        DISK    * 90 95
        MEMPHYS 100 101
        MEMSWAP 50 80
        MEMACT  90 97

Even after restarting server and client, it is showing the same behaviour.
Kindly let me know i

-akshar
---------- Forwarded message ----------
From: *pankaj dorlikar* <user-93d3572686c4@xymon.invalid<mailto:user-93d3572686c4@xymon.invalid>
Date: Mon, Feb 14, 2011 at 6:05 PM
Subject: Re: [xymon] msgs : always green instead of configuring for errors
To: user-ef04175556bd@xymon.invalid<mailto:user-ef04175556bd@xymon.invalid> <mailto:user-ef04175556bd@xymon.invalid<mailto:user-ef04175556bd@xymon.invalid>>


On Mon, Feb 14, 2011 at 12:00 PM, Henrik Størner <user-ce4a2c883f75@xymon.invalid<mailto:user-ce4a2c883f75@xymon.invalid>
<mailto:user-ce4a2c883f75@xymon.invalid<mailto:user-ce4a2c883f75@xymon.invalid>>> wrote:

   In <user-090cc990b59a@xymon.invalid<mailto:user-090cc990b59a@xymon.invalid>

   akshar bhosale <user-ef04175556bd@xymon.invalid<mailto:user-ef04175556bd@xymon.invalid>
quoted from Akshar Bhosale
   <mailto:user-ef04175556bd@xymon.invalid<mailto:user-ef04175556bd@xymon.invalid>>> writes:
i am using xymon 4.2.2. I want that each client should show msgs
   red if
lockup word comes in /var/log/messages.
~xymon/server/etc/hobbit-clients.cfg
DEFAULT
       # These are the built-in defaults.
       UP      1h
       LOAD    18.0 20.0
       DISK    * 90 95
       MEMPHYS 100 101
       MEMSWAP 50 80
       MEMACT  90 97
       PROC cron
       PROC /opt/PBS/bin/myscript.sh
       LOG /var/log/messages lockup COLOR=red
   You should Never, Ever, put PROC and LOG settings in the
   DEFAULT section.

   Move them into a "HOST=*" section, before the DEFAULT one.


   Regards,
   Henrik


   xymon-unsubscribe at xymon.com<mailto:xymon-unsubscribe at xymon.com> <mailto:xymon-unsubscribe at xymon.com<mailto:xymon-unsubscribe at xymon.com>>
quoted from Akshar Bhosale
You may want to try:

LOG /var/log/messages  %(?-i)lockup COLOR=red


From hobbit-clients.cfg(5):
...
                                        Note that Xymon defaults
    to  case-insensitive  pattern  matching; if that is not what
    you want, put  "(?-i)"  between  the  "%"  and  the  regular
    expression to turn this off. E.g. "%(?-i)WARNING" will match
    the word WARNING only when it is upper-case.
...

Dominique