service_description; $params = array( 'host' => $object->host_name, 'service' => $object->service_description ); } else { $title = $object->host_name; $params = array('host' => $object->host_name); } // TODO: Remove this once we have better helpers $states = array( 'service' => array( 'ok', 'warning', 'critical', 'unknown', 99 => 'pending', ), 'host' => array( 'up', 'down', 'unreachable', 99 => 'pending', ) ); ?>
= $this->timeSince($event->timestamp) ?> | ticket_pattern ? preg_replace( $this->ticket_pattern, $ticket_link, $this->escape($event->output) ) : $this->escape($event->output); switch ($event->type) { case 'notify': $icon = 'notification'; $title = 'Notification'; break; case 'comment': $icon = 'comment'; $title = 'Comment'; break; case 'ack': $icon = 'acknowledgement'; $title = 'Acknowledgement'; break; case 'dt_comment': $icon = 'in_downtime'; $title = 'In Downtime'; break; case 'flapping': $icon = 'flapping'; $title = 'Flapping'; break; case 'hard_state': $icon = 'submit'; $title = 'Hard State'; break; case 'soft_state': $icon = 'softstate'; $title = 'Soft State'; break; case 'dt_start': $icon = 'downtime_start'; $title = 'Downtime Start'; break; case 'dt_end': $icon = 'downtime_end'; $title = 'Downtime End'; break; } echo $this->icon($icon . '.png', $title) . ' '; if ($object instanceof Service): ?> = $this->escape($event->service_description) ?> = $this->escape($event->host_name) ?> attempt !== null) { printf('[ %d/%d ] ', $event->attempt, $event->max_attempts); } echo $output; ?> |