Ad Widget

Collapse

Parameters: quoting of special characters

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • wosc
    Junior Member
    • Nov 2015
    • 1

    #1

    Parameters: quoting of special characters

    Hi,

    <https://www.zabbix.com/documentation/2.4/manual/config/items/item/key> says, "if the key parameter is a quoted string, any Unicode character is allowed, and included double quotes must be backslash escaped."

    But then this happens:
    $ zabbix_get -s localhost -k 'solr.query_count["myfield:$(echo example)"]'
    ZBX_NOTSUPPORTED: special characters "\, ', ", `, *, ?, [, ], {, }, ~, $, !, &, ;, (, ), <, >, |, #, @, 0x0a" are not allowed in the parameters

    Which leaves me totally stumped. I quoted the parameter that contains the
    evil $, did I not? What am I missing?

    Thanks for your help,
    Wolfgang


    PS: For completeness, the "solr.query_count" is defined like this:
    UserParameter=solr.query_count[*],/etc/zabbix/checks/count_solr_query.sh "$1"
Working...