<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
Hello <br>
<br>
I have an issue with the avail.cgi and wanted to know if anyone else
has encountered this behaviour .<br>
<br>
I ask nagios to produce a report for a service of the last 7 days .<br>
but when i get the report i see in the output a table with entries more
then a week old , <br>
<br>
<br>
example :<br>
<br>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
  <tbody>
    <tr>
      <td align="center" valign="top" width="33%">
      <div class="reportRange" align="center">1-08-2010 00:00:00 to
08-08-2010 00:00:00</div>
      <div class="reportDuration" align="center">Duration: 7d 0h 0m 0s</div>
      </td>
      <td align="right" valign="bottom" width="33%">
      <table class="optBox" border="0">
        <form method="get" action="avail.cgi"></form>
        <input name="t1" value="1280617200" type="hidden">
        <input name="t2" value="1281222000" type="hidden"><input
 name="show_log_entries" value="" type="hidden">
        <input name="full_log_entries" value="" type="hidden"><input
 name="host" value="gbc1-ms-06" type="hidden">
        <input name="service" value="dispacth.lovefilm.com check"
 type="hidden"><input name="assumeinitialstates" value="yes"
 type="hidden">
        <input name="assumestateretention" value="yes" type="hidden"><input
 name="assumestatesduringnotrunning" value="yes" type="hidden">
        <input name="includesoftstates" value="no" type="hidden"><tbody>
          <tr>
            <td class="optBoxItem" align="left" valign="top">First
assumed service state:</td>
            <td class="optBoxItem" align="left" valign="top"><br>
            </td>
          </tr>
          <tr>
            <td class="optBoxItem" align="left" valign="top">
            <input name="initialassumedhoststate" value="0"
 type="hidden">
            <select name="initialassumedservicestate">
            <option value="0" selected="selected">Unspecified
            </option>
            <option value="-1">Current State
            </option>
            <option value="6">Service Ok
            </option>
            <option value="8">Service Warning
            </option>
            <option value="7">Service Unknown
            </option>
            <option value="9">Service Critical
            </option>
            </select>
            </td>
            <td class="optBoxItem">
            <br>
            </td>
          </tr>
          <tr>
            <td class="optBoxItem" align="left" valign="top">Report
period:</td>
            <td class="optBoxItem" align="left" valign="top">Backtracked
archives:</td>
          </tr>
          <tr>
            <td class="optBoxItem" align="left" valign="top">
            <select name="timeperiod">
            <option selected="selected">[ Current time range ]
            </option>
            <option value="today">Today
            </option>
            <option value="last24hours">Last 24 Hours
            </option>
            <option value="yesterday">Yesterday
            </option>
            <option value="thisweek">This Week
            </option>
            <option value="last7days">Last 7 Days
            </option>
            <option value="lastweek" selected="selected">Last Week
            </option>
            <option value="thismonth">This Month
            </option>
            <option value="last31days">Last 31 Days
            </option>
            <option value="lastmonth">Last Month
            </option>
            <option value="thisyear">This Year
            </option>
            <option value="lastyear">Last Year
            </option>
            </select>
            </td>
            <td class="optBoxItem" align="left" valign="top">
            <input size="2" maxlength="2" name="backtrack" value="4"
 type="text"></td>
          </tr>
          <tr>
            <td align="left" valign="top"><br>
            </td>
            <td class="optBoxItem" align="left" valign="top">
            <input value="Update" type="submit"></td>
          </tr>
          <tr>
            <td><br>
            </td>
            <td align="right" valign="bottom"><br>
            </td>
          </tr>
        </tbody>
      </table>
      </td>
    </tr>
  </tbody>
</table>
<div class="reportTime" align="center">[ Availability report completed
in 0 min 13 sec ]</div>
<br>
<br>
<br>
but in the summery table :<br>
<br>
<div class="dataTitle" align="center">Service Log Entries:</div>
<div class="infoMessage" align="center"><a
 href="http://10.0.6.149/nagios/cgi-bin/avail.cgi?host=gbc1-ms-06&service=dispacth.lovefilm.com+check&t1=1280617200&t2=1281222000&backtrack=4&assumestateretention=yes&assumeinitialstates=yes&assumestatesduringnotrunning=yes&initialassumedhoststate=0&initialassumedservicestate=0&show_log_entries&full_log_entries&showscheduleddowntime=yes">[
View full log entries ]</a></div>
<div align="center">
<table class="logEntries" border="1" cellpadding="3" cellspacing="0">
  <tbody>
    <tr>
      <th class="logEntries">Event Start Time</th>
      <th class="logEntries">Event End Time</th>
      <th class="logEntries">Event Duration</th>
      <th class="logEntries">Event/State Type</th>
      <th class="logEntries">Event/State Information</th>
    </tr>
    <tr class="logEntriesEven">
      <td class="logEntriesEven">28-07-2010 00:00:00</td>
      <td class="logEntriesEven">28-07-2010 09:45:29</td>
      <td class="logEntriesEven">0d 9h 45m 29s</td>
      <td class="logEntriesOK">SERVICE OK (HARD)</td>
      <td class="logEntriesEven">HTTP OK: HTTP/1.1 302 Found - 611
bytes in 0.020 second response time</td>
    </tr>
    <tr class="logEntriesOdd">
      <td class="logEntriesOdd">29-07-2010 00:00:00</td>
      <td class="logEntriesOdd">29-07-2010 10:20:56</td>
      <td class="logEntriesOdd">0d 10h 20m 56s</td>
      <td class="logEntriesOK">SERVICE OK (HARD)</td>
      <td class="logEntriesOdd">HTTP OK: HTTP/1.1 302 Found - 611 bytes
in 0.022 second response time</td>
    </tr>
    <tr class="logEntriesEven">
      <td class="logEntriesEven">30-07-2010 00:00:00</td>
      <td class="logEntriesEven">31-07-2010 00:00:00</td>
      <td class="logEntriesEven">1d 0h 0m 0s</td>
      <td class="logEntriesOK">SERVICE OK (HARD)</td>
      <td class="logEntriesEven">HTTP OK: HTTP/1.1 302 Found - 611
bytes in 0.016 second response time</td>
    </tr>
    <tr class="logEntriesOdd">
      <td class="logEntriesOdd">31-07-2010 00:00:00</td>
      <td class="logEntriesOdd">01-08-2010 00:00:00</td>
      <td class="logEntriesOdd">1d 0h 0m 0s</td>
      <td class="logEntriesOK">SERVICE OK (HARD)</td>
      <td class="logEntriesOdd">HTTP OK: HTTP/1.1 302 Found - 611 bytes
in 0.030 second response time</td>
    </tr>
    <tr class="logEntriesEven">
      <td class="logEntriesEven">01-08-2010 00:00:00</td>
      <td class="logEntriesEven">02-08-2010 00:00:00</td>
      <td class="logEntriesEven">1d 0h 0m 0s</td>
      <td class="logEntriesOK">SERVICE OK (HARD)</td>
      <td class="logEntriesEven">HTTP OK: HTTP/1.1 302 Found - 611
bytes in 0.021 second response time</td>
    </tr>
    <tr class="logEntriesOdd">
      <td class="logEntriesOdd">02-08-2010 00:00:00</td>
      <td class="logEntriesOdd">02-08-2010 14:38:47</td>
      <td class="logEntriesOdd">0d 14h 38m 47s</td>
      <td class="logEntriesOK">SERVICE OK (HARD)</td>
      <td class="logEntriesOdd">HTTP OK: HTTP/1.1 302 Found - 611 bytes
in 0.027 second response time</td>
    </tr>
    <tr class="logEntriesEven">
      <td class="logEntriesEven">03-08-2010 00:00:00</td>
      <td class="logEntriesEven">03-08-2010 11:51:23</td>
      <td class="logEntriesEven">0d 11h 51m 23s</td>
      <td class="logEntriesOK">SERVICE OK (HARD)</td>
      <td class="logEntriesEven">HTTP OK: HTTP/1.1 302 Found - 611
bytes in 0.021 second response time</td>
    </tr>
    <tr class="logEntriesOdd">
      <td class="logEntriesOdd">04-08-2010 00:00:00</td>
      <td class="logEntriesOdd">04-08-2010 08:41:24</td>
      <td class="logEntriesOdd">0d 8h 41m 24s</td>
      <td class="logEntriesOK">SERVICE OK (HARD)</td>
      <td class="logEntriesOdd">HTTP OK: HTTP/1.1 302 Found - 611 bytes
in 0.031 second response time</td>
    </tr>
  </tbody>
</table>
</div>
<br>
<br>
As you can see the report does not provide the details i asked for and 
it claims to provide and that subverts my statistics .<br>
<br>
Any one encountred this before ? can you recommend a way to fix this ? <br>
<br>
I am using nagios 3.2.0 from source.<br>
<br>
Thanks<br>
<pre class="moz-signature" cols="72">-- 
Never,Ever Cut A Deal With a Dragon 


Next year I will be doing the London to Paris bike ride to 
raise money for the DogTrust (<a class="moz-txt-link-abbreviated" href="http://www.dogtrust.co.uk">www.dogtrust.co.uk</a>) .
Please Sponsor me at <a class="moz-txt-link-freetext" href="http://www.justgiving.com/Assaf-Flatto">http://www.justgiving.com/Assaf-Flatto</a></pre>
</body>
</html>