Bug fix priority
Hiren Patel
hir3npatel at gmail.com
Sat Aug 8 17:34:05 CEST 2009
Julien Mathis wrote:
> Hello All
>
> I am increasingly surprised at the enthusiasm that can cause scheduling
> bug (2010 problem) and bug 57 (http://tracker.nagios.org/view.php?id=57).
>
> It is rather problematic to see a scheduler doing a break until 2010 at
> the same date that the next check because we do not monitor 24/24 7/7
> ... If we do not have eyes on the screen, we are not warned ... less
> well to do even on a patch-based cron.
>
> Nobody is impacted by this problem? I see a lot of minor bugs on the
> mailing list and I think this bug have the most impact. If a scheduler
> stop to schedule, it loses some of its interest ... And more over, it
> loses credibility.
>
> This is a bug which is known since several months, and I just think it
> should be fixed in urgence. I know we tried to solve a short time ago
> without success.
>
> What do you think about that ?
>
agree the scheduler is an important piece of nagios no doubt.
regarding http://tracker.nagios.org/view.php?id=57, it looks to me like
the problem is that the function to get the next valid time does not
take timeperiod exclusions into account. I think a long term solution
would be to have this function take timeperiod exclusions into account.
for a work around, please test the attached diff if you don't mind.
this diff causes the function to check if it is in a current weekday
valid timeperiod, and if so make the next valid time 5 minutes from now.
5 minutes is arbitrary, because this functions doesn't know if the
preferred time falls in a exclusion, it only knows that the preferred
time falls within a valid week timeperiod of the timeperiod it is
working with.
when the time comes to run the check, and it falls in an exclusion, but
is in a valid time for the timeperiod being assessed, the check is not
run, but rescheduled for 5 minutes later again.
this is the only reasonable work around I could come up with, and did
very basic testing of it with the configs pasted in the bug link.
developers, let me know what you think of this.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: utils.diff
Type: text/x-patch
Size: 930 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20090808/74fddd47/attachment.bin>
-------------- next part --------------
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
-------------- next part --------------
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel
More information about the Developers
mailing list