Object service with loop over dictionary

Hi @gitm1993

address is not a custom variable. If you want to match the host address use host.address.

Edit: you can just leave out the assign rule here. Icinga2 evalutes the ‘apply for’ rule for all host objects with the custom variable first set in this case.

Kind regards

1 Like