Xymon Mailing List Archive search

hobbit 4.1.0 alerts config

3 messages in this thread

list Steve · Mon, 25 Jul 2005 08:26:57 -0500 ·
Greetings!

Did miss something with a hobbit-alerts.cfg configuration change ?

A slice of my cfg file:

$AGOPS=user-47d72ce84f5e@xymon.invalid
$BADCOLORS='COLOR=red,purple'
$OPTS='DURATION>5 RECOVERED REPEAT=1h FORMAT=TEXT'

HOST=* EXPAGE=tier1
         MAIL $AGOPS $OPTS $BADCOLORS


But hobbitd_alert --dump-config now yields:

EXPAGE=tier1 HOST=*
         MAIL user-47d72ce84f5e@xymon.invalid FORMAT=TEXT REPEAT=30
         MAIL 'DURATION>5 FORMAT=TEXT REPEAT=30
         MAIL 'COLOR=red,purple' FORMAT=TEXT REPEAT=30

Which now tries to mail to DURATION and COLOR=red and sends out YELLOW 
alerts as well. Was working previously.

--
steve
list Henrik Størner · Mon, 25 Jul 2005 16:02:28 +0200 ·
quoted from Steve
On Mon, Jul 25, 2005 at 08:26:57AM -0500, steve wrote:
A slice of my cfg file:

$AGOPS=user-47d72ce84f5e@xymon.invalid
$BADCOLORS='COLOR=red,purple'
$OPTS='DURATION>5 RECOVERED REPEAT=1h FORMAT=TEXT'

HOST=* EXPAGE=tier1
        MAIL $AGOPS $OPTS $BADCOLORS

But hobbitd_alert --dump-config now yields:

EXPAGE=tier1 HOST=*
        MAIL user-47d72ce84f5e@xymon.invalid FORMAT=TEXT REPEAT=30
        MAIL 'DURATION>5 FORMAT=TEXT REPEAT=30
        MAIL 'COLOR=red,purple' FORMAT=TEXT REPEAT=30
You shouldn't have those quotes in the macros - it will work if
you remove them.

I know why the behaviour changed, and it wasn't intentional.
Sorry.


Henrik
list Steve · Mon, 25 Jul 2005 09:11:48 -0500 ·
quoted from Henrik Størner
On 07/25/2005 09:02 AM, Henrik Stoerner wrote:
On Mon, Jul 25, 2005 at 08:26:57AM -0500, steve wrote:
A slice of my cfg file:

$AGOPS=user-47d72ce84f5e@xymon.invalid
$BADCOLORS='COLOR=red,purple'
$OPTS='DURATION>5 RECOVERED REPEAT=1h FORMAT=TEXT'
You shouldn't have those quotes in the macros - it will work if
you remove them.
That did it. Usually with variables with spaces you need to quote.
I know why the behaviour changed, and it wasn't intentional.
Sorry.
Thank you! I do appreciate all your efforts.

--
steve