[xymon] getting DURATION error in hobbitd_alert

McGraw, Robert P rmcgraw at purdue.edu
Tue Sep 28 22:53:30 CEST 2010


Thanks Steve,

That was a big help.

Robert

From: sholmes42 at gmail.com [mailto:sholmes42 at gmail.com] On Behalf Of Steve Holmes
Sent: Tuesday, September 28, 2010 4:25 PM
To: xymon at xymon.com
Subject: Re: [xymon] getting DURATION error in hobbitd_alert

On Tue, Sep 28, 2010 at 3:35 PM, McGraw, Robert P <rmcgraw at purdue.edu<mailto: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 characte
Thanks for all your help.
Robert

[227][root at gauss]:xymon/server/etc# ../bin/bbcmd hobbitd_alert --test galileo.math.purdue.edu<http://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<http://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.edu<mailto:rmcgraw at math.purdue.edu> SERVICE=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<http://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<http://galileo.math.purdue.edu>
       MAIL rmcgraw at math.purdue.edu<mailto: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<mailto: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<http://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/cf54594e/attachment.html>


More information about the Xymon mailing list