Script Wrappings %ARGS% not being populated by $ARGn$

Forums NSClient++ support Script Wrappings %ARGS% not being populated by $ARGn$

This topic contains 0 replies, has 1 voice, and was last updated by  Legacy Forum User 3 years, 7 months ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #2054

    Hello,

    I have the following configuration:

    
    [Script Wrappings]
    vbs=echo script=%SCRIPT% args=%ARGS% arg7=$ARG7$
    
    [External Scripts]
    check_smb_speed=scripts\check_smb_speed.vbs staticargtest $ARG1$ $ARG2$ $ARG3$ $ARG4$ $ARG5$ $ARG6$ $ARG7$
    

    If I perform the following…

    
    ./check_nrpe -H NSCLIENTHOST -c check_smb_speed -a ich ni tres four five six
    

    I receive the following output…

    
    script=check_smb_speed.vbs args= arg7=$ARG7$
    

    This is no good, as I don’t want the string ‘$ARG7$’ passed to the script.

    Another test I’ve done:

    
    [Script Wrappings]
    vbs=echo script=%SCRIPT% args=%ARGS% arg7=$ARG7$
    
    [External Scripts]
    check_smb_speed=scripts\check_smb_speed.vbs %ARGS%
    

    I receive the following output:

    
    script=check_smb_speed.vbs args= arg7=$ARG7$
    

    External Script, allow_arguments is set to 1 in both examples.

    I have referred to the following documentation with no avail:

    http://www.nsclient.org/nscp/wiki/CheckExternalScripts

    http://www.nsclient.org/nscp/wiki/CheckExternalScripts/config/external_script

    I can not locate documentation on [Script Wrappings].

    How do I configure the script to accept either all the variables I pass it (and only those)? Why does the %ARGS% variable not contain the list of arguments (either passed by the External Script, as defined, or passed by check_nrpe)?

    Any assistance is appreciated.

    Thanks,

    Matt

    P.S.

    The string literal seems to be known and reported:

    http://www.nsclient.org/nscp/discussion/topic/128

    The solution would be to establish that the %ARGS% works by enumerating all the passed arguments only, but this is relatively not the case.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.