list/eventhistory: add flapping stopped support

This commit is contained in:
Thomas Gelf 2014-11-20 17:23:26 +01:00
parent eddb00cbc1
commit d5450598f0
1 changed files with 7 additions and 0 deletions

View File

@ -21,6 +21,8 @@
<tbody>
<?php foreach ($history as $event): ?>
<?php
$icon = 'help';
$title = $event->type;
$stateName = 'invalid';
$isService = isset($event->service);
switch ($event->type) {
@ -49,6 +51,11 @@
$title = $this->translate('Flapping');
$msg = $event->output;
break;
case 'flapping_deleted':
$icon = 'ok';
$title = $this->translate('Flapping Stopped');
$msg = $event->output;
break;
case 'hard_state':
$icon = $isService ? 'service' : 'host';
$msg = '[ ' . $event->attempt . '/' . $event->max_attempts . ' ] ' . $event->output;