Re: [Nagios-devel] Refactor logic for next valid time

Engage with the community of users including those using the open source solutions.
Includes Nagios Core, Plugins, and NCPA

Re: [Nagios-devel] Refactor logic for next valid time

Postby Guest » Tue May 07, 2013 5:04 am

--047d7bd6a8ce5475d804dc1a97aa
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On Mon, May 6, 2013 at 6:04 PM, Robin Sonefors wrot=
e:

> Hi list,
>
> A couple of excellent tests by Jean Gab=E8s - marked as todo - pointed ou=
t
> problems with how nagios calculates the next valid time in a timeperiod
> that
> has complicated combinations of exceptions and exclusions.
>
> This patchset refactors the relevant code to fix all failing tests, as
> well as adds a
> new one.
>
>
>
> Hi,

Congrats, these timeperiod computation are really a nigthmare :D
Especially with corner case like "I need the last monday but we are the
last tuesday". If you need more tests for theses special cases, I can
provide you some more, with really crazy time computation :p


Jean

--047d7bd6a8ce5475d804dc1a97aa
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable




_quote">On Mon, May 6, 2013 at 6:04 PM, Robin Sonefors &l=
t;robin.sonefor=
s@op5.com
>
wrote:

x #ccc solid;padding-left:1ex">Hi list,



A couple of excellent tests by Jean Gab=E8s - marked as todo - pointed out<=
br>
problems with how nagios calculates the next valid time in a timeperiod tha=
t

has complicated combinations of exceptions and exclusions.



This patchset refactors the relevant code to fix all failing tests, as well=
as adds a

new one.





Hi,

Congrats, these timeperiod =
computation are really a nigthmare :D
Especially with corner case like &=
quot;I need the last monday but we are the last tuesday". If you need =
more tests for theses special cases, I can provide you some more, with real=
ly crazy time computation :p



Jean



--047d7bd6a8ce5475d804dc1a97aa--





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: naparuba@gmail.com
Guest
 

Return to Community Support

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 32 guests