Bit of a predicament with commands on Linux clients

Hmmm it could be the case that the Director doesn’t understand the commands imported from Icinga 2’s ITL with set_if and no value, I am not sure about this.

Still, if you don’t get them via the command fields, you can always define data fields “free form” for being used in your service definitions. Therefore, navigate to the main dashboard and pick the data fields section.

Next up, define a new data field with the Boolean type, named mem_used.

Now, in your service, add this field and select true.

Once Icinga executes the check then, it will evaluate mem_used and if set to true, automatically add the required command line parameter -u. You can verify this via the Inspect option in the service’s detail view in Icinga Web 2.

Cheers,
Michael

2 Likes