[% title_prefix %]WML Thruk

Host Problems:

[% IF hosts.size == 0 %]
No problems
[% ELSE %] [% FOREACH host = hosts %] [% IF host.state == 0 %] [% state = 'OK' %] [% ELSIF host.state == 1 %] [% state = 'DWN' %] [% ELSIF host.state == 2 %] [% state = 'UNR' %] [% END %]
[% state %] | [% host.name %]
[% END %] [% END %]

Svc Problems:

[% IF services.size == 0 %]
No problems
[% ELSE %] [% FOREACH svc = services %] [% IF svc.state == 0 %] [% state = 'OK' %] [% ELSIF svc.state == 1 %] [% state = 'WRN' %] [% ELSIF svc.state == 2 %] [% state = 'CRI' %] [% ELSIF svc.state == 3 %] [% state = 'UNK' %] [% END %]
[% state %] | [% svc.host_name %]/[% svc.description %]
[% END %] [% END %]