Hi There,
I am facing an issue and need your help in diagnosing that. Basically I am trying to pass values for warning and critical thresholds in as arguments in check command for uptime service like mentioned below from icingaweb2.
Hi,
please also share the service configuration not only the checkcommand object.
Did you try to fill the custom-vars fields without any brackets and stuff?
icinga2 automatically adds them, so they might be unnecessary
Yes, I have tried without brackets also but it keeps on adding escape characters which is causing command to not execute perfectly. Can you specify the exact service configuration ? that I need to send.
In case you are using the Director:
Be sure that the datafield type for the nrpe_arguemnts data field is Array. This way you the option to enter arguemnts like @radioactive9 is howing in his screenshot.
If that is done you don’t even need the quotation marks, as the Director will add them automatically.
(exception: single quotes might be needed if adding a filter=... statement to your arguments)
If you are using config files you will have to define the varialbe like this vars.nrpe_arguments = [ "warning=used > 90%", "critical=used > 95%" ]