newbie: *.example.com
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=%\.: 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
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=%\.: 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
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=%\.: 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
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.
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 - richard at leyton.org 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.
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
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:richard at leyton.org] Sent: 01 February 2007 15:39 To: hobbit at hswn.dk 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 - richard at leyton.org 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.
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
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 - cgoyard at cvf.fr - (+33) 1 45 38 01 31
Many Thanks. Its working.
Sabeer MZ
On 2/1/07, Henrik Stoerner <henrik at hswn.dk> 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=%\.: 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
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
participants (6)
-
cgoyard@cvf.fr
-
frederic.mangeant@steria.com
-
henrik@hswn.dk
-
JasonAS_Jones@mentor.com
-
richard@leyton.org
-
sabeer.mz@gmail.com