Skip to content

Commit

Permalink
add better example and more docs to icinga_command
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Gumprich committed Aug 5, 2021
1 parent 21e39f0 commit a14aecd
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions plugins/modules/icinga_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,12 @@
arguments:
description:
- Arguments of the command.
- Each argument can take either a string, a json or a dict
- When using a dict as argument value, the following properties are supported.
C(skip_key), C(repeat_key), C(required), C(order), C(description)),
C(set_if), C(value).
- The C(value) property can be either a string, a json or a dict. When used as a dict, you can define
its C(type) as C(Function) and set its C(body) property as an Icinga DSL piece of config.
type: "dict"
"""

Expand Down Expand Up @@ -135,6 +141,11 @@
set_if: $centreon_verbose$
'--warning':
value: $centreon_warning$
'--dummy-arg':
description: "dummy arg using Icinga DSL code"
value:
type: "Function"
body: 'return macro("$dummy_var$")'
command: "/opt/centreon-plugins/centreon_plugins.pl"
command_type: "PluginCheck"
disabled: false
Expand Down

0 comments on commit a14aecd

Please sign in to comment.