Problems monitoring services with array values

Hi,

command fields

You might want to check this howto, specifically the first screenshot where you navigate into the external imported CheckCommand and pick the Fields tab on the right.

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

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

1 Like