Cheshire Cat Computing

Software support and information
It is currently Thu Jun 20, 2013 1:59 pm

All times are UTC + 12 hours [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: downtime 3.2 date issue
PostPosted: Mon Mar 07, 2011 6:09 pm 
Offline
User

Joined: Mon Mar 07, 2011 5:53 pm
Posts: 1
Hi,

It seems that if you try to schedule a downtime for a time that is before the current time and for following week, the downtime gets added to a day later than it should.

For example if you schedule a downtime for Sunday's at 5am for 2 hours and downtime_job.pl runs at 6am on Monday the downtime will be schedule for Monday at 5am.

This seems to happen because downtime_job.pl sees that 5am is before the current day so advances a day then needs to advance to the next week to hit the Sunday but doesn't take into account the previous one day advance so lands one day too far.

I fixed this by adding a variable to detect the initial day advance and take one day off the week advance if it is set.

Hope this helps somebody


Top
 Profile  
 
PostPosted: Fri Apr 01, 2011 2:36 am 
Offline
User

Joined: Fri Apr 01, 2011 2:30 am
Posts: 2
hi andymac,

can you please post the code to change the plugin!
I can't understand your little tutor
Quote:
I fixed this by adding a variable to detect the initial day advance and take one day off the week advance if it is set.


Thx from Germany!


Top
 Profile  
 
PostPosted: Thu May 05, 2011 6:12 pm 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 2921
Location: Auckland, New Zealand
I think this is fixed in v3.3

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11


Top
 Profile  
 
PostPosted: Tue Jan 31, 2012 8:38 pm 
Offline
User

Joined: Tue Jan 31, 2012 5:17 am
Posts: 1
Location: Hamburg/Germany
stevesh wrote:
I think this is fixed in v3.3


Hello, i can not found this v3.3. Please can you tell me where i can download it?

Thank you

Matthias


Top
 Profile  
 
PostPosted: Thu Feb 02, 2012 11:04 am 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 2921
Location: Auckland, New Zealand
Should be here https://www.monitoringexchange.org/inve ... -scheduler but seems not to be. Will update.

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11


Top
 Profile  
 
PostPosted: Wed Feb 08, 2012 2:03 am 
Offline
User

Joined: Wed Feb 08, 2012 1:52 am
Posts: 2
stevesh wrote:
Should be here https://www.monitoringexchange.org/inve ... -scheduler but seems not to be. Will update.

It seems like it still not there. When do you plan to update?


Top
 Profile  
 
PostPosted: Thu Feb 09, 2012 4:57 pm 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 2921
Location: Auckland, New Zealand
Sorry, having problems here and becoming overwhelmed by the 'real' job. Will get around to it soon...

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC + 12 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group