[Xymon] DOWNTIME accross multiple days
Brandon Dale
BDale at kitchengroup.com.au
Thu Mar 12 05:48:03 CET 2015
Yeah I think you guys are right my syntax doesn’t do what I want.
This might be a better option or at least it’s easier to read.
DOWNTIME=testname:5:2300:0000:offline,testname:6:0000:2400:offline,testname:0:0000:2400:offline,testname:1:0000:0400:offline
And I “think” it’s doing what I want now
Planned downtime: Fri:2300:0000 (status:testname) (cause:offline)
Sat:0000:2400 (status:testname) (cause:offline)
Sun:0000:2400 (status:testname) (cause:offline)
Mon:0000:0400 (status:testname) (cause:offline)
Regards,
Brandon
From: Claessens Jurgen [mailto:Jurgen.Claessens at cegeka.be]
Sent: Thursday, 12 March 2015 3:33 PM
To: Brandon Dale; Jeremy Laidman; Scot Kreienkamp
Cc: xymon at xymon.com
Subject: RE: [Xymon] DOWNTIME accross multiple days
Hi,
For the Downtime on specific dyas, you just need to replace the * from the manpage and split it
Manpage: It says that "*:2330:0200" would be the same as "*:2330:2400,*:0000:0200".
So your downtime would mean:
“51:2300:2400,51:0000:0400”
Which might not be what you want.
I never tend to go over midnight unless the days are linked to each other and the first day I always put separate.
Best regards
Jurgen Claessens
From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of Brandon Dale
Sent: woensdag 11 maart 2015 3:24
To: Jeremy Laidman; Scot Kreienkamp
Cc: xymon at xymon.com<mailto:xymon at xymon.com>
Subject: Re: [Xymon] DOWNTIME accross multiple days
The man page for hosts.cfg suggests that you can. It says that the DOWNTIME processing is the same as for NKTIME, and that for NKTIME the "interval between start time and end time may cross midnight". It says that "*:2330:0200" would be the same as "*:2330:2400,*:0000:0200".
J
I’m still having trouble getting my head around this, if I have this:
DOWNTIME=serbia:51:2300:0400:offline
Planned downtime: Fri/Mon:2300:0400 (status:serbia) (cause:offline)
Is this:
1. Down from 2300 on Friday to 0400 on Monday (spanning across Friday/Sat/Sun/Mon)
Or
2. Down on Friday/Sat from 2300 to 0400 AND mon/tues from 2300 to 0400
I might just need to test and see what happens I think.
Regards,
Brandon
This e-mail and all files transmitted as attachment(s) thereto are confidential and solely intended for the individual to whom or the organization to which they are addressed. If you received this e-mail by mistake, please notify Cegeka's Service Desk at cegeka.support at cegeka.be<mailto:cegeka.support at cegeka.be> or call +32 (0)11 240 363. We thank you in advance. Cegeka hereby confirms that this message has been swept by Sophos for the presence of viruses.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20150312/c474d66a/attachment.html>
More information about the Xymon
mailing list