Skip to content

ITL: Adding Extra-Opts to nagios plugins #7630

@netphantm

Description

@netphantm

I need to add Extra-Opts to check_http (https://www.monitoring-plugins.org/doc/extra-opts.html), as we are doing some checks through a proxy to check if host is reachable externally. A username/password combination is needed, so I included a file which contains the creds.
I added following lines to the command-plugins.conf:

    "--extra-opts" = {
          value = "$http_extra_opts$"
          description = "Add extra options to check (like proxy credentials file)"
    }

I wanted to extend the ITL with this, but then I realized that a lot of nagios plugins have this parameter. Should it be added to all of them manually or can you suggest a better way to do this?

Metadata

Metadata

Assignees

Labels

area/itlTemplate Library CheckCommandsenhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions