[Xymon] Alert testing failing on time criteria

Scot Kreienkamp SKreien at la-z-boy.com
Thu Mar 6 14:54:03 CET 2014


DOH!  Thanks John, I figured it was something stupid I was doing.  There was no documentation I could find on the time format so I made a bad assumption.   I'm surprised it didn't return an error when I tried to use a bad format.

Thanks!

> -----Original Message-----
> From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of John Thurston
> Sent: Wednesday, March 05, 2014 6:42 PM
> To: xymon at xymon.com
> Subject: Re: [Xymon] Alert testing failing on time criteria
>
> On 3/5/2014 1:06 PM, Scot Kreienkamp wrote:
> > Hey everyone,
> >
> > Running into something I don't understand trying to test my alerts.cfg.
> >
> > I have a line in alerts.cfg like so:
> > HOST=lzbs1101.na.lzb.hq SERVICE=ADUsers TIME=*:0000:0800
> >
> > And I'm trying to test it out using this command line:
> > xymond_alert --test lzbs1101.na.lzb.hq ADUsers --duration=6 --color-red --
> time=3:0523:0611
> >
> > And the result I'm getting back is:
> > Failed 'HOST=lzbs1101.na.lzb.hq SERVICE=ADUsers TIME=*:0000:0800' (time
> criteria)
> >
> > Can someone help me understand why it's not matching on time?  I have it
> set to every day between midnight and 8am in alerts.cfg, and the timeframe I'm
> trying to test is within that window.  So why isn't it matching?
>
>   --time=TIMESTRING The TIMESTRING parameter is the time-of-day for the
> alert, expressed as an absolute time in the epoch format (seconds since
> Jan 1 1970). This is easily obtained with the GNU date utility using the
> "+%s" output format.
>
>
> --
>     Do things because you should, not just because you can.
>
> John Thurston    907-465-8591
> John.Thurston at alaska.gov
> Enterprise Technology Services
> Department of Administration
> State of Alaska
> _______________________________________________
> Xymon mailing list
> Xymon at xymon.com
> http://lists.xymon.com/mailman/listinfo/xymon



This message is intended only for the individual or entity to which it is addressed. It may contain privileged, confidential information which is exempt from disclosure under applicable laws. If you are not the intended recipient, please note that you are strictly prohibited from disseminating or distributing this information (other than to the intended recipient) or copying this information. If you have received this communication in error, please notify us immediately by e-mail or by telephone at the above number. Thank you.



More information about the Xymon mailing list