Ad Widget

Collapse

User Parameter

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mun
    Member
    • Sep 2016
    • 67

    #1

    User Parameter

    Hi,

    Can someone help me on this problem?
    I have change the Unsafe UserParameter = 1 but it appears error as shown in below.

    Received value [C:\Zabbix\x.ps1 : A parameter cannot be found that matches parameter name XXX : InvalidArgument: [x.ps1], Paren tContainsErrorRecordException + FullyQualifiedErrorId : NamedParameterNotFound,x.ps1] is not suitable for value type [Numeric (unsigned)] and data type [Decimal].

    Thanks.
  • batchenr
    Senior Member
    • Sep 2016
    • 440

    #2
    Originally posted by Mun
    Hi,

    Can someone help me on this problem?
    I have change the Unsafe UserParameter = 1 but it appears error as shown in below.

    Received value [C:\Zabbix\x.ps1 : A parameter cannot be found that matches parameter name XXX : InvalidArgument: [x.ps1], Paren tContainsErrorRecordException + FullyQualifiedErrorId : NamedParameterNotFound,x.ps1] is not suitable for value type [Numeric (unsigned)] and data type [Decimal].

    Thanks.
    what is the check your trying to do with UserParameter = 1 ?
    UserParameter = 1 should incloud a key (which is item name in zabbix GUI)
    and then what to execute (command,script...)

    somthing like this :
    UserParameter =check.mysql,/home/zabbix/checkmysql.sh

    Comment

    • Mun
      Member
      • Sep 2016
      • 67

      #3
      User Parameter

      Hello,

      Thank you for your reply,

      I have stated above, I did change the Unsafe User Parameter not the User Parameter.

      As in the default configuration, the UnsafeUserParameters=0, due to an error message pop up in my latest data (Zabbix), the characters of \ ' " ` * ? [ ] { } ~ $ ! & ; ( ) < > | # @ are not allow, so I make it to 1, but leads to different error as stated before.

      ### Option: UnsafeUserParameters
      # Allow all characters to be passed in arguments to user-defined parameters.
      # The following characters are not allowed:
      # \ ' " ` * ? [ ] { } ~ $ ! & ; ( ) < > | # @
      # Additionally, newline characters are not allowed.
      # 0 - do not allow
      # 1 - allow
      #
      # Mandatory: no
      # Range: 0-1
      # Default:
      UnsafeUserParameters=0 >> This one i change it to 1

      Thanks.

      Comment

      Working...