Xymon Mailing List Archive search

getting DURATION error in hobbitd_alert

list Steve Holmes
Tue, 28 Sep 2010 16:24:54 -0400
Message-Id: <AANLkTi=user-6ea9c213190b@xymon.invalid>

On Tue, Sep 28, 2010 at 3:35 PM, McGraw, Robert P <user-33cf07af04dd@xymon.invalid>wrote:
In my hobbit-alert.cfg I have added the "DURATION>10" and I a get a Failed.
See below.

If I make it DURATION<10, then I do not get an error.

Should the ">" be escaped? If so what is the escaped character for xymon.

I have tried DURATION\>10 but it did not seem to like the \ as an escape
character.

Thanks for all your help.
Robert

[227][root at gauss]:xymon/server/etc# ../bin/bbcmd hobbitd_alert --test
galileo.math.purdue.edu procs
2010-09-28 15:17:54 Using default environment file
/local/xymon/server/etc/hobbitserver.cfg
00019860 2010-09-28 15:17:54 send_alert galileo.math.purdue.edu:procs
state Paging
00019860 2010-09-28 15:17:54 Matching host:service:page
'galileo.math.purdue.edu:procs:MathNet7' against rule line 120
00019860 2010-09-28 15:17:54 *** Match with 'HOST=galileo.math.purdue.edu'
***
00019860 2010-09-28 15:17:54 Matching host:service:page
'galileo.math.purdue.edu:procs:MathNet7' against rule line 121
00019860 2010-09-28 15:17:54 Failed 'MAIL user-e5b8d05b0b35@xymon.invalid=procs REPEAT=1h DURATION>10' (min. duration 0<600)


            [228][root at gauss]:xymon/server/etc# ../bin/bbcmd hobbitd_alert
--dump-config galileo.math.purdue.edu procs
2010-09-28 15:18:03 Using default environment file
/local/xymon/server/etc/hobbitserver.cfg
HOST=galileo.math.purdue.edu
       MAIL user-0fe9b25bd89e@xymon.invalid FORMAT=TEXT REPEAT=60 SERVICE=procs
DURATION>10

Robert P. McGraw, Jr.
Manager, Computer System                    EMAIL: user-33cf07af04dd@xymon.invalid
Purdue University                            ROOM: MATH-807
Department of Mathematics                   PHONE: (XXX) XXX-XXXX
XXX N. University Street
West Lafayette, IN XXXXX-XXXX

Robert, no need to escape the '>'.  On your hobbitd_alert --test command add
the parameter --duration=601

e.g.

../bin/bbcmd hobbitd_alert --test galileo.math.purdue.edu procs
--duration=601

(that is all one line, of course :-).

The 601 makes the test work as if the alert was in effect for 10 minutes and
one second which will match on your DURATION>10 spec.

Steve
ITaP/ITSO/Unix Systems Administration
Purdue University