2013-05-02 06:41:59 +08:00
|
|
|
<h2>Monitors</h2>
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<th>Name</th>
|
2013-05-02 06:46:01 +08:00
|
|
|
<th>Function</th>
|
|
|
|
<th>Source</th>
|
2013-05-02 20:56:51 +08:00
|
|
|
<th>Total Events</th>
|
|
|
|
<th>Hour</th>
|
|
|
|
<th>Day</th>
|
|
|
|
<th>Week</th>
|
|
|
|
<th>Month</th>
|
|
|
|
<th>Archived</th>
|
|
|
|
<th>Zones</th>
|
2013-05-02 06:41:59 +08:00
|
|
|
</tr>
|
2013-05-05 07:22:48 +08:00
|
|
|
<?php $count = 0; ?>
|
2013-05-02 06:41:59 +08:00
|
|
|
<?php foreach ($monitors as $monitor): ?>
|
|
|
|
<tr>
|
|
|
|
<td>
|
2013-05-02 09:03:25 +08:00
|
|
|
<?php echo $this->Html->link($monitor['Monitor']['Name'],array('controller' => 'monitors', 'action' => 'view', $monitor['Monitor']['Id'])); ?>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<?php echo $this->Html->link($monitor['Monitor']['Function'], array('action' => 'edit', $monitor['Monitor']['Id'])); ?>
|
|
|
|
</td>
|
2013-05-02 06:46:01 +08:00
|
|
|
<td><?php echo $monitor['Monitor']['Host']; ?></td>
|
2013-05-02 20:56:51 +08:00
|
|
|
<td><?php echo count($monitor['Event']); ?></td>
|
2013-05-05 07:42:37 +08:00
|
|
|
<td><?php echo $eventsLastHour[$count][0]['count']; ?></td>
|
|
|
|
<td><?php echo $eventsLastDay[$count][0]['count']; ?></td>
|
|
|
|
<td><?php echo $eventsLastWeek[$count][0]['count']; ?></td>
|
|
|
|
<td><?php echo $eventsLastMonth[$count][0]['count']; ?></td>
|
2013-05-05 07:22:48 +08:00
|
|
|
<td></td>
|
|
|
|
<td><?php echo count($monitor['Zone']); ?></td>
|
2013-05-02 06:41:59 +08:00
|
|
|
</tr>
|
2013-05-05 07:22:48 +08:00
|
|
|
<?php $count++; ?>
|
2013-05-02 06:41:59 +08:00
|
|
|
<?php endforeach; ?>
|
|
|
|
<?php unset($monitor); ?>
|
|
|
|
</table>
|