DOWNTIME accross multiple days
I can't work out if I can use DOWNTIME and span the downtime period across multiple days. I need to not alert on a column from 11:00pm on Fridays to 4:00am on Mondays
This is what I have come up with:
DOWNTIME=column:51:2300:0400:"offline during this period"
The Config report shows:
Planned downtime: Fri/Mon:2300:0400 (status:column) (cause:copy offline during this period)
I think this is actually saying 2300-0400 on Friday and Monday which is not what I want. Is what I want to do possible and what is the correct syntax?
Regards,
Brandon
Brandon,
I don't think you can span days. I think you need to use multiple downtime periods.
From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of Brandon Dale Sent: Tuesday, March 10, 2015 7:49 PM To: xymon at xymon.com Subject: [Xymon] DOWNTIME accross multiple days
I can't work out if I can use DOWNTIME and span the downtime period across multiple days. I need to not alert on a column from 11:00pm on Fridays to 4:00am on Mondays
This is what I have come up with:
DOWNTIME=column:51:2300:0400:"offline during this period"
The Config report shows:
Planned downtime: Fri/Mon:2300:0400 (status:column) (cause:copy offline during this period)
I think this is actually saying 2300-0400 on Friday and Monday which is not what I want. Is what I want to do possible and what is the correct syntax?
Regards,
Brandon
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.
On 11 March 2015 at 12:12, Scot Kreienkamp <Scot.Kreienkamp at la-z-boy.com> wrote:
Brandon,
I don’t think you can span days. I think you need to use multiple downtime periods.
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
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:
Down from 2300 on Friday to 0400 on Monday (spanning across Friday/Sat/Sun/Mon)Or
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
On 11 March 2015 at 13:24, Brandon Dale <BDale at kitchengroup.com.au> wrote:
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)
Yes, you might want to test it and see. According to the man page for xymongrep, you can run "xymongrep" on a host that has DOWNTIME specified, and it will tell you INSIDESLA or OUTSIDESLA depending on whether it's outside or inside of the DOWNTIME. (SLA is the opposite of DOWNTIME.) However I've not been able to get xymongrep to do this.
But I think your above example is the same as "serbia:5:2300:0400:offline,serbia:1:2300:0400:offline".
J
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 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:
Down from 2300 on Friday to 0400 on Monday (spanning across Friday/Sat/Sun/Mon)Or
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 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.
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:
Down from 2300 on Friday to 0400 on Monday (spanning across Friday/Sat/Sun/Mon)Or
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.
participants (4)
-
BDale@kitchengroup.com.au
-
jlaidman@rebel-it.com.au
-
Jurgen.Claessens@cegeka.be
-
Scot.Kreienkamp@la-z-boy.com