Thanks Steve,
That was a big help.
Robert
From: user-5425c7b245e1@xymon.invalid [mailto:user-5425c7b245e1@xymon.invalid] 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 <user-33cf07af04dd@xymon.invalid<mailto: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 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 user-0fe9b25bd89e@xymon.invalid<mailto:user-0fe9b25bd89e@xymon.invalid> 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 user-0fe9b25bd89e@xymon.invalid<mailto:user-0fe9b25bd89e@xymon.invalid> FORMAT=TEXT REPEAT=60 SERVICE=procs DURATION>10
Robert P. McGraw, Jr.
Manager, Computer System EMAIL: user-33cf07af04dd@xymon.invalid<mailto: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<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