Xymon Mailing List Archive search

newbie: *.example.com

8 messages in this thread

list Sabeer MZ · Thu, 1 Feb 2007 16:35:56 +0530 ·
Dear all,

I am happy to join this enthusiastic mailing list and congrats to Henrik for
giving us Wonderful software "Hobbit".

question:
I am monitoring around 20 servers and all are under one domain i.e example.com.
I am want to enable all hobbit clients features like cpu, memory and
disk to all servers
under example.com

How to add the entry on hobbit-clients.cfg in a single shot ?
Please find below lines. is it possible to do something like below ?


HOST=*.example.com
        PROC cron 1 -1 yellow
        PROC hobbitlaunch
        PROC mysqld
        PROC sshd
        DIR %^/var/log TRACK
        PORT LOCAL=%[\.:](80|443) STATE=LISTEN min=2 TEXT=http
        PORT "LOCAL=%([.:]22)$" state=ESTABLISHED TRACK=ssh "TEXT=SSH logins"
        FILE /var/log/messages SIZE>0 MTIME<600 yellow


Thanks
Sabeer MZ
list Frédéric Mangeant · Thu, 01 Feb 2007 12:11:16 +0100 ·
quoted from Sabeer MZ
Le 01/02/2007 12:05, Sabeer MZ a écrit :
How to add the entry on hobbit-clients.cfg in a single shot ?
Please find below lines. is it possible to do something like below ?

HOST=*.example.com
       PROC cron 1 -1 yellow
       PROC hobbitlaunch
       PROC mysqld
       PROC sshd
       DIR %^/var/log TRACK
       PORT LOCAL=%[\.:](80|443) STATE=LISTEN min=2 TEXT=http
       PORT "LOCAL=%([.:]22)$" state=ESTABLISHED TRACK=ssh "TEXT=SSH 
logins"
       FILE /var/log/messages SIZE>0 MTIME<600 yellow

Hi

IMHO you have to use

HOST=%*.example.com

See the hobbit-clients.cfg(5) man page

-- 

Frédéric Mangeant

Steria EDC Sophia Antipolis
list Henrik Størner · Thu, 1 Feb 2007 16:26:42 +0100 ·
quoted from Frédéric Mangeant
On Thu, Feb 01, 2007 at 12:11:16PM +0100, Frédéric Mangeant wrote:
Le 01/02/2007 12:05, Sabeer MZ a écrit :
How to add the entry on hobbit-clients.cfg in a single shot ?
Please find below lines. is it possible to do something like below ?

HOST=*.example.com
      PROC cron 1 -1 yellow
      PROC hobbitlaunch
      PROC mysqld
      PROC sshd
      DIR %^/var/log TRACK
      PORT LOCAL=%[\.:](80|443) STATE=LISTEN min=2 TEXT=http
      PORT "LOCAL=%([.:]22)$" state=ESTABLISHED TRACK=ssh "TEXT=SSH 
logins"
      FILE /var/log/messages SIZE>0 MTIME<600 yellow
IMHO you have to use

HOST=%*.example.com
Watch out - regular expressions dont work like that. Asterisk means "0
or more of the previous character", so having an asterisk as the first
character of the regex is invalid.

If you *really* want it to match exactly any host in the "example.com" 
domain, you would have to use this:

  HOST=%^.+\.example\.com$


Regards,
Henrik
list Jason Altrincham Jones · Thu, 1 Feb 2007 15:32:21 -0000 ·
Hi all,

Just wondering if it's possible to implement another colour in hobbit
say black, basically we were thinking about using it for the absolute
worst cases (location down) maybe have a little grim reaper icon, but
we'll see about that later, just wondering if it's possible?

Thanks,
Jason.
list Richard Leyton · Thu, 1 Feb 2007 15:39:12 +0000 ·
Can't speak for the actual request, you could always look to use  combo alerts for such, ie. the following in bbcombotest.cfg:
Site.avail  =  (weba.conn + webb.conn + webc.conn + webd.conn +  dbserver.conn) >= 4
Then have a special rule setup for Site.avail which pages/emails/ sms's like your job depended on it ;-)

See bbcombotest.cfg(5) for more info

r.

--
Richard Leyton - user-787ca786c598@xymon.invalid
http://www.leyton.org
quoted from Jason Altrincham Jones


On 1 Feb 2007, at 15:32, Jones, Jason ((Altrincham)) wrote:
Hi all,

Just wondering if it's possible to implement another colour in hobbit
say black, basically we were thinking about using it for the absolute
worst cases (location down) maybe have a little grim reaper icon, but
we'll see about that later, just wondering if it's possible?

Thanks,
Jason.

list Jason Altrincham Jones · Thu, 1 Feb 2007 15:59:26 -0000 ·
Actually that might work, but is there any easier way than weba.conn
etc. i.e. regex? Otherwise I'm looking at quite a feat to get them all
plus new servers added/old ones decommissioned all means altering the
rule.  Only other thing is no grim reaper icon :P
Jason.
quoted from Richard Leyton

-----Original Message-----
From: Richard Leyton [mailto:user-787ca786c598@xymon.invalid] 
Sent: 01 February 2007 15:39
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] an extra colour....

Can't speak for the actual request, you could always look to use  
combo alerts for such, ie. the following in bbcombotest.cfg:
Site.avail  =  (weba.conn + webb.conn + webc.conn + webd.conn +  
dbserver.conn) >= 4
Then have a special rule setup for Site.avail which pages/emails/ 
sms's like your job depended on it ;-)

See bbcombotest.cfg(5) for more info

r.

--
Richard Leyton - user-787ca786c598@xymon.invalid
http://www.leyton.org


On 1 Feb 2007, at 15:32, Jones, Jason ((Altrincham)) wrote:
Hi all,

Just wondering if it's possible to implement another colour in hobbit
say black, basically we were thinking about using it for the absolute
worst cases (location down) maybe have a little grim reaper icon, but
we'll see about that later, just wondering if it's possible?

Thanks,
Jason.

list Charles Goyard · Thu, 1 Feb 2007 18:27:25 +0100 ·
Hi,
quoted from Jason Altrincham Jones

Jones, Jason (Altrincham) wrote :
Actually that might work, but is there any easier way than weba.conn
etc. i.e. regex? Otherwise I'm looking at quite a feat to get them all
plus new servers added/old ones decommissioned all means altering the
rule.  Only other thing is no grim reaper icon :P
Jason.
You don't need to put every single host/test in your "location" combo 
rule. You should pinpoint the hosts that make your location available
(eg, main UPSs, backbone, frontend router/firewall). Just put these
critical path members in your bbcombotest.cfg.

Regards,


-- 
Charles Goyard - user-98f9625a7a59@xymon.invalid - (+33) 1 45 38 01 31
list Sabeer MZ · Fri, 2 Feb 2007 08:33:49 +0530 ·
Many Thanks. Its working.

Sabeer MZ
quoted from Henrik Størner

On 2/1/07, Henrik Stoerner <user-ce4a2c883f75@xymon.invalid> wrote:
On Thu, Feb 01, 2007 at 12:11:16PM +0100, Frédéric Mangeant wrote:
Le 01/02/2007 12:05, Sabeer MZ a écrit :
How to add the entry on hobbit-clients.cfg in a single shot ?
Please find below lines. is it possible to do something like below ?

HOST=*.example.com
      PROC cron 1 -1 yellow
      PROC hobbitlaunch
      PROC mysqld
      PROC sshd
      DIR %^/var/log TRACK
      PORT LOCAL=%[\.:](80|443) STATE=LISTEN min=2 TEXT=http
      PORT "LOCAL=%([.:]22)$" state=ESTABLISHED TRACK=ssh "TEXT=SSH
logins"
      FILE /var/log/messages SIZE>0 MTIME<600 yellow
IMHO you have to use

HOST=%*.example.com
Watch out - regular expressions dont work like that. Asterisk means "0
or more of the previous character", so having an asterisk as the first
character of the regex is invalid.

If you *really* want it to match exactly any host in the "example.com"
domain, you would have to use this:

  HOST=%^.+\.example\.com$


Regards,
Henrik