[% USE date %]

Time | Alert Type | Host | Service | State | State Type | Information
--- | --- | --- | --- | --- | --- | ---
[% FOREACH d = data %]
[% format_date(d.time, datetime_format) %]
              [% IF d.service_description %]
              [% SET status = 'OK'       IF d.state == 0 %]
              [% SET status = 'WARNING'  IF d.state == 1 %]
              [% SET status = 'UNKNOWN'  IF d.state == 3 %]
              [% SET status = 'CRITICAL' IF d.state == 2 %]
| Service Alert | [% d.host_name | html %] | [% d.service_description | html %] | [% status %]
              [% ELSE %]
              [% SET status = 'UP'          IF d.state == 0 %]
              [% SET status = 'DOWN'        IF d.state == 1 %]
              [% SET status = 'UNREACHABLE' IF d.state == 2 %]
| Host Alert | [% d.host_name | html %] | N/A | [% status %] [% END %] | [% d.state_type %] | [% IF escape_html_tags %][% escape_html(log_line_plugin_output(d)) %][% ELSE %][% log_line_plugin_output(d) %][% END %]
[% END %]

[% PROCESS _pager_total_items.tt %]