| Cheshire Cat Computing http://steveshipway.org/forum/ |
|
| date calculation bug in Nagios Downtime scheduler 2.2 http://steveshipway.org/forum/viewtopic.php?f=20&t=1740 |
Page 1 of 1 |
| Author: | ralston [ Tue Feb 24, 2009 7:36 am ] |
| Post subject: | date calculation bug in Nagios Downtime scheduler 2.2 |
| Author: | stevesh [ Tue Feb 24, 2009 10:01 am ] |
| Post subject: | Re: date calculation bug in Nagios Downtime scheduler 2.2 |
You're quite right - it happened on ours, too, and I fixed it yesterday -- as you say, I had a bug in the code that checks February has 28/29 days - unfortunately I forgot that UNIX numbers months from 0-11 rather than 1-12. Oops. You're probably right that using timelocal() like that is a more elegant solution... I already have a fixed script with the correct ==1 rather than ==2, but I see you've corrected your copy. I'll be posting an amended version soon. |
|
| Author: | jgilmour [ Fri Oct 30, 2009 10:09 am ] |
| Post subject: | Re: date calculation bug in Nagios Downtime scheduler 2.2 |
Is there a new version of this script? I am running into the issue with the 31st not being chosen, and the posts below didnt fix it. |
|
| Page 1 of 1 | All times are UTC + 12 hours [ DST ] |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|