-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple keys equals not working when passed as string #93
Comments
Interesting, I'll have a look at it |
Had a quick look. First, yeah we should do something about that ugly error. I'll try to have a cleaner solution. Second,
Similar with other CLI tools:
I'm sure you can tell your monitoring tool to pass multiple string values to flag, like so:
|
will have to look into this, but I don't think the current CheckCommand definition covers this. |
Not an CheckCommand expert myself, but maybe like this? Copied from here: https://icinga.com/docs/icinga-2/latest/doc/03-monitoring-basics/#command-arguments |
I'm aware of the array handling of arguments in Icinga2, but, AFAIK, this requires the |
Asked around... someone suggested:
|
Is there an eta for version 2.3.0? We are also struggling with this issue. |
The plugin works when multiple keys and their equals lookup values are passed as stdin:
The plugin seems to parse each input argument. Which is fine.
But if the keys are defined in a string and given to the plugin, it will fail:
Why is this important? Because it breaks the plugin under Icinga2 (and maybe on different monitoring core software, too), as the input/variable
vars.http_json_key_equals
is handed over to the plugin as string (see https://github.com/drewkerrigan/nagios-http-json/blob/master/contrib/icinga2_check_command_definition.conf#L81).The text was updated successfully, but these errors were encountered: