<font size=2 face="sans-serif">Hello</font>
<br>
<br><font size=2 face="sans-serif">Has anybody found problems with the
results from avail.cgi when you have scheduled downtime for services? The
totals for OK/WARNING/CRITICAL are fine, but under the following circumstances
there are errors in the scheduled/unscheduled calculations:</font>
<br><font size=2 face="sans-serif"><br>
- The report must be run with a time period such as 'workhours'. The issue
does not occur with 24x7. <br>
- The service must have a scheduled downtime period which lies outside
of the report time period. </font>
<br>
<br><font size=2 face="sans-serif">Having looked through the code, I found
that this was due to the critical time being calculated based on the rpttimeperiod
(e.g. workhours), but the calcluation of the scheduled critical time ignoring
this and always being 24x7, i.e. </font>
<br>
<br><font size=2 face="sans-serif">        total(during
rpttimeperiod) - scheduled(at any time) = unscheduled </font>
<br>
<br><font size=2 face="sans-serif">I made a change which got this working,
but I've now found that when there is a downtime window that overlaps the
time period being reported on the same issue occurs.</font>
<br>
<br><font size=2 face="sans-serif">How are others dealing with these issues,
or are you not generally using scheduled downtime periods? Are there any
alternative tools that can be used to extract this reporting data from
Nagios? I'm willing to spend some time trying to fix avail.cgi, but I need
to extract these figures as soon as possible in the meantime.</font>
<br>
<br><font size=2 face="sans-serif">Thanks</font>
<br>
<br><font size=2 face="sans-serif">Jon</font>