Skip to content

BUG REPORT: external command with -v triggers snclient verbose output #323

@lgmu

Description

@lgmu

When you call an external command like custom_plugin.sh -v, then this prints verbose output of the snclient itself.

Code is here:
https://github.com/ConSol-Monitoring/snclient/blob/main/pkg/snclient/commands/root.go#L142-L159

./snclient -c snclient.ini run custom_plugin.sh -v
[09:51:19.517][D] reading config: ...
UNKNOWN - unexpected end of condition after ''

When executing this remotely, you just get the last line as a result.

Expected behaviour:
All args after the command name should only be only used for the script, not snclient itself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions