NagiosEnterprises / ncpa

Nagios Cross-Platform Agent
Other
177 stars 95 forks source link

Fixed: Plugin arguments doesnt work with check_http_json.py (#937) #938

Closed ccztux closed 1 year ago

ccztux commented 1 year ago

The fix adds the following new argument to check_ncpa.py:

  -r RAW_PLUGIN_ARGS, --raw-plugin-args=RAW_PLUGIN_ARGS
                        Raw plugin arguments for the plugin to be run. This is
                        an alternative to -a and should be used if the
                        arguments are more complex, like URL parameters.
                        Example: -r '-H inside01 -P 443 -p interface-
                        rest/incident/count?incidentType=failedTask -s -w
                        count,@1: -c count,@1: -e count'

The new argument handles complex plugin arguments well. Not sure if the new agument can replace -a, so i have added a new one.