Skip to content
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

JSON Import: Command: Unable to set "plugin-check-command" #36

Open
virtualdreams opened this issue Apr 23, 2021 · 0 comments
Open

JSON Import: Command: Unable to set "plugin-check-command" #36

virtualdreams opened this issue Apr 23, 2021 · 0 comments

Comments

@virtualdreams
Copy link

I am trying to import a command via JSON. However, there is no possibility to define the command type (plugin-check-comand) in the properties. There is only the possibility to define an import, but you can't set "plugin-check-command" there either, because otherwise errors occur.
If you look at the imported command, the value for Command Type is not defined, but it can still be rendered. Saving the imported command in the director is not possible, because this is a forced field.

It should be noted that the entire documentation for Fileshipper is more than poor. It could be documented, for example, what format the individual properties must have. So it's just guessing and dull trying until it might work sometime.

Expected Behavior

Current Behavior

Possible Solution

Steps to Reproduce (for bugs)

[
    {
        "arguments": {
            "-H": {
                "description": "fs_http_host_argument",
                "value": "$fs_http_host$"
            }
        },
        "command": "fs_http",
        "object_name": "fs_http"
    }
]

source
sync_modify
sync_properties
command

Context

Your Environment

  • Module version (System - About): 1.2.0
  • Icinga Web 2 version and modules (System - About): 2.8.2
  • Icinga 2 version (icinga2 --version): r2.12.3
  • Operating System and version: Debian 10
  • Webserver, PHP versions: Apache 2, PHP 7.3.27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant