newbie: *.example.com
list Sabeer MZ
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
▸
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
▸
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 yellowIMHO 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
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
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 Jason Altrincham Jones
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.
▸
-----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
Hi,
▸
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
Many Thanks. Its working. Sabeer MZ
▸
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 yellowIMHO you have to use HOST=%*.example.comWatch 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