[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] alert macro and SERVICE rule
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] alert macro and SERVICE rule
- From: Paul Barton <paul (at) moonkhan.org>
- Date: Mon, 15 Oct 2007 18:34:31 -0500
- References: <4713DBDE.0 (at) itradenetwork.com>
- User-agent: Mutt/1.5.13 (2006-08-11)
Hi Mark. I believe we've used a variation on this in the past. I think
we had to quote the string.
-Paul
* Mark Hinkle (mhinkle (at) itradenetwork.com) wrote:
> Hobbit 4.2.0 w/ all-in-one 2007-02-09
>
> Can you use a macro in the hobbit-alerts.cfg and use the SERVICE rule in
> addition? Not able to do so at this end...
>
> hobbit-alerts.cfg
> -----------------
> $patrickemail=MAIL ple (at) host.com RECOVERED
> $chrisemail=MAIL ccolon (at) host.com RECOVERED
> $ediemail=MAIL edi (at) host.com REPEAT=1440m RECOVERED
>
> HOST=pd-gis
> $patrickemail
> $chrisemail SERVICE=http
> $ediemail SERVICE=status
>
>
>
> Running "hobbitd_alert --dump-config" seems to just stop after the first
> macro replacement:
>
> -bash-2.05b$ ./server/bin/bbcmd hobbitd_alert --dump-config
> 2007-10-15 14:20:07 Using default environment file
> /usr/hobbit/server/etc/hobbitserver.cfg
> HOST=pd-gis
> MAIL ple (at) host.com FORMAT=TEXT REPEAT=30 RECOVERED
>
> -bash-2.05b$
>
>
> If I change/remove the "SERVICE=http" from the line w/ the $chrisemail
> macro (for instance make it "DURATION>30"), then it *will* parse that
> line, but stop at the next one with the "SERVICE" rule:
>
> - $chrisemail SERVICE=http
> + $chrisemail DURATION>30
>
>
> -bash-2.05b$ ./server/bin/bbcmd hobbitd_alert --dump-config
> 2007-10-15 14:26:27 Using default environment file
> /usr/hobbit/server/etc/hobbitserver.cfg
> HOST=pd-gis
> MAIL ple (at) host.com FORMAT=TEXT REPEAT=30 RECOVERED
> MAIL ccolon (at) host.com FORMAT=TEXT REPEAT=30 DURATION>30 RECOVERED
>
> -bash-2.05b$
>
>
>
> Am I getting this wrong somewhere? Thanks in advance.
>
> --
> Mark Hinkle
> mhinkle (at) itradenetwork.com
>
>
> To unsubscribe from the hobbit list, send an e-mail to
> hobbit-unsubscribe (at) hswn.dk
>
>
Paul Barton http://www.moonkhan.org
paul (at) moonkhan.org
"Black holes are where God divided by zero."