<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; ">
<div>
<div>When looking at an availability report generated by avail.cgi, I notice that my stats are way off if a service goes critical and someone then schedules downtime for a service.  I expect that downtime should not be counted as critical because it would mean
 that it's because of a planned activity such as maintenance.</div>
<div><br>
</div>
<div>For example, I have:</div>
<div>
<table class="logEntries" border="1" cellpadding="3" cellspacing="0">
<tbody>
<tr class="logEntriesOdd">
<td class="logEntriesOdd">07-28-2012 00:00:00</td>
<td class="logEntriesOdd">07-28-2012 03:05:06</td>
<td class="logEntriesOdd">0d 3h 5m 6s</td>
<td class="logEntriesOK">SERVICE OK (HARD)</td>
<td class="logEntriesOdd">OK - 167 results in 5.318780151 seconds</td>
</tr>
<tr class="logEntriesEven">
<td class="logEntriesEven">07-28-2012 03:05:06</td>
<td class="logEntriesEven">07-28-2012 03:21:05</td>
<td class="logEntriesEven">0d 0h 15m 59s</td>
<td class="logEntriesCRITICAL">SERVICE CRITICAL (HARD)</td>
<td class="logEntriesEven">(Service Check Timed Out)</td>
</tr>
<tr class="logEntriesOdd">
<td class="logEntriesOdd">07-28-2012 03:21:05</td>
<td class="logEntriesOdd">07-28-2012 03:41:04</td>
<td class="logEntriesOdd">0d 0h 19m 59s</td>
<td class="logEntriesINDETERMINATE">SERVICE DOWNTIME START</td>
<td class="logEntriesOdd">Start of scheduled downtime</td>
</tr>
<tr class="logEntriesEven">
<td class="logEntriesEven">07-28-2012 03:41:04</td>
<td class="logEntriesEven">07-29-2012 00:00:00</td>
<td class="logEntriesEven">0d 20h 18m 56s</td>
<td class="logEntriesINDETERMINATE">SERVICE DOWNTIME END</td>
<td class="logEntriesEven">End of scheduled downtime</td>
</tr>
<tr class="logEntriesOdd">
<td class="logEntriesOdd">07-29-2012 00:00:00</td>
<td class="logEntriesOdd">07-29-2012 04:21:11</td>
<td class="logEntriesOdd">0d 4h 21m 11s</td>
<td class="logEntriesOK">SERVICE OK (HARD)</td>
<td class="logEntriesOdd">OK - 167 results in 5.235716141 seconds</td>
</tr>
</tbody>
</table>
</div>
<div><br>
</div>
<div><br>
</div>
<div>In this example, Nagios is showing me over 9 hours of critical time because the service was in a critical state when it entered the downtime, which lasted for 9 hours.  I've played around with all of the state options, but nothing seems to help.  Can anything
 be done to fix this?</div>
<div><br>
</div>
<div>Thanks</div>
<div>John Alberts</div>
<div><br>
</div>
</div>
</body>
</html>