[%
    fqdns = [];
    FOREACH standort IN standorte;
        FOREACH host IN standort.hosts;
            NEXT UNLESS host.hardware.search("^Cisco $typ\\b");
            SET host.fqdn = host.ip UNLESS host.fqdn.defined;
            fqdns.push(host.fqdn);
        END;
    END;
-%]
define service {
	use		status-[% typ %]
	host_name	[% fqdns.sort.join(',') %]
	contact_groups	network-admins
}
