Added last-check on services

This commit is contained in:
f0o
2016-02-22 08:38:51 +00:00
parent 4248617e8a
commit dcbe31fe6b
2 changed files with 6 additions and 2 deletions

View File

@ -64,10 +64,13 @@ echo "
$since
</td>
<td>
<span class=box-desc>$message</span>
<span class='box-desc'>$message</span>
</td>
<td>
<span class=box-desc>$desc</span>
<span class='box-desc'>$desc</span>
</td>
<td>
<span class='box-desc'>".date('r',$service['service_changed'])."</span>
</td>
</tr>";

View File

@ -70,6 +70,7 @@ echo '<div class="table-responsive">
<th>Changed</th>
<th>Message</th>
<th>Description</th>
<th>Last Check</th>
</tr>';
if ($_SESSION['userlevel'] >= '5') {
$host_sql = 'SELECT * FROM devices AS D, services AS S WHERE D.device_id = S.device_id GROUP BY D.hostname ORDER BY D.hostname';