[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] Host Groups in hobbit-alerts.cfg as per BB?
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] Host Groups in hobbit-alerts.cfg as per BB?
- From: Asif Iqbal <iqbala-hobbit (at) qwestip.net>
- Date: Sat, 12 Feb 2005 01:40:09 -0500
- Mail-followup-to: hobbit (at) hswn.dk
- References: <12C0877BF55C7748BDDB82BDBD3E66F1378A6C@franklin.corp.shutterfly.com> <20050127141955.GA2635@hswn.dk> <20050212060512.GJ10998@qwestip.net>
- User-agent: Mutt/1.4.1i
On Sat, Feb 12, 2005 at 01:05:13AM, Asif Iqbal wrote:
> On Thu, Jan 27, 2005 at 03:19:56PM, Henrik Stoerner wrote:
> > On Wed, Jan 26, 2005 at 03:28:40PM -0800, Bruce Lysik wrote:
> > [...]
> > > Is there any way hobbit could support the bbwarnsetup.cfg file style
> > > of host groups?
> > [...]
> > I've attached such a script - it appears to work on the
> > bbwarnsetup.cfg I have, but there might be some special cases with
> > bbwarnsetup features I dont use.
> >
> > E.g. if you have a definition like this one
> >
> > hg-asd: mwsicha* asp* mwscsg* slsportal* asdad* asdnam* asdmgmt*
> >
> > the script outputs a macro definition:
> >
> > $HG-ASD=mwsicha(.*)|asp(.*)|mwscsg(.*)|slsportal(.*)|asdad(.*)|asdnam(.*)|asdmgmt(.*)
> >
> > Put this in your hobbit-alerts.cfg, and you can define rules like
> > this:
>
> You mean put the above macro definition in the hobbit-alerts.cfg file?
nevermind, the answer is yes and I had to RTFM for that :P
>
> >
> > HOST=%$HG-ASD
> > MAIL admin (at) foo.com SERVICE=http
> >
> > etc.
> >
> >
> > (I admit - it's untested, but it should definitely work. The
> > expression at least is correct, and matches the hostnames it is
> > supposed to match).
> >
> >
> > Henrik
>
>
> > To unsubscribe from the hobbit list, send an e-mail to
> > hobbit-unsubscribe (at) hswn.dk
>
--
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
"...it said: Install Windows XP or better...so I installed Solaris..."