[xymon] getting DURATION error in hobbitd_alert

Steve Holmes sholmes42 at mac.com
Tue Sep 28 22:24:54 CEST 2010


On Tue, Sep 28, 2010 at 3:35 PM, McGraw, Robert P <rmcgraw at purdue.edu>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 rmcgraw at math.purdue.eduSERVICE=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 rmcgraw at math.purdue.edu FORMAT=TEXT REPEAT=60 SERVICE=procs
> DURATION>10
>
> _____________________________________________________________________
> Robert P. McGraw, Jr.
> Manager, Computer System                    EMAIL: rmcgraw at purdue.edu
> Purdue University                            ROOM: MATH-807
> Department of Mathematics                   PHONE: (765) 494-6055
> 150 N. University Street
> West Lafayette, IN 47907-2067
>
>
>
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20100928/9acee459/attachment.html>


More information about the Xymon mailing list