UserParameter no show result

XMLWordPrintable

    • Type: Incident report
    • Resolution: Won't fix
    • Priority: Critical
    • None
    • Affects Version/s: 2.4.5
    • Component/s: Agent (G)
    • Environment:
      Server: Linux CentOS 7
      Zabbix 2.4.5 (server and agent)

      Client: Linux CentOS 6 Glibc 2.12
      Zabbix 2.4.5 Agent

      I am trying to monitoring a Asterisk 1.4 server with UserParameter but doesn't work.
      I did the command below and when I run manually on Client, show me the value (like CommandOK file), but when I test by zabbix_agentd -t the value is blank (like Agentd command NOK file).

      ====Asterisk Command ========
      UnsafeUserParameters=1
      UserParameter=xpto,asterisk -rvvvvvx 'sip show peers'|grep --text -i 'sip peers'|awk '

      {print $5}

      '

      ps. I tried with $$5 too and the same error and all other collections is OK

      Please, could you help me?

            Assignee:
            Unassigned
            Reporter:
            Diomedes A Tedesco Junior
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: