# Problems monitoring services with array values

**URL:** <https://community.icinga.com/t/problems-monitoring-services-with-array-values/361>\
**Category:** Icinga Director\
**Created:** [February 13, 2019, 10:18am UTC](https://community.icinga.com/t/problems-monitoring-services-with-array-values/361 "2019-02-13T10:18:29Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![dnsmichi](https://community.icinga.com/user_avatar/community.icinga.com/dnsmichi/32/7721_2.png) [@dnsmichi](https://community.icinga.com/u/dnsmichi)\
**Post date:** [February 14, 2019, 5:56pm UTC](https://community.icinga.com/t/problems-monitoring-services-with-array-values/361/7 "2019-02-14T17:56:00Z")

</div>

Hi,

## command fields

> [@anon9497968](#):
>
> I couldn’t see how to add fields / arguments to the check. Suspect I’m missing something so any guidance appreciated.

You might want to check [this howto](https://community.icinga.com/t/director-service-sets-add-service-checks-based-on-host-templates/267), specifically the first screenshot where you navigate into the external imported CheckCommand and pick the `Fields` tab on the right.

 ![director_service_set_requirements_check_command_fields](https://community.icinga.com/uploads/default/original/1X/2b2f517e98dd52cd75a235346cc1d97187e08f77.png)

## apply for

In terms of the other question, the apply for rule generated passes the `config` loop variable to the service apply rule.

In its context, it is missing to set the custom variable `Pages_to_check` expected from your CheckCommand object below.

In the DSL this would look like this

```auto
apply Service "Webpage check for " for (config in host.vars.Pages_to_check) {
    import "https_webpage-check"

    vars.Pages_to_check = config //added, config is the loop value from host.vars.Pages_to_check

    assign where host.vars.Pages_to_check

    import DirectorOverrideTemplate
}

```

Now your task is to figure out how this can be done in the interface, can you share a screenshot of what you’ve done thus far?

Cheers,  
Michael

---

_[View the full topic](https://community.icinga.com/t/problems-monitoring-services-with-array-values/361)._
