Ad Widget

Collapse

It is possible to make that userparameter supports quotes?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Saúl Ortega
    Junior Member
    • Jan 2013
    • 6

    #1

    It is possible to make that userparameter supports quotes?

    I need run a personalized command which requires quotes (" or '), but the triggers does not works, so Zabbix does not suppots it.

    I can to run a external script with the command, but it is not ideal.

    I already try with \, but neither works.
  • Heilig
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Mar 2013
    • 366

    #2
    What "Type of information" in this item? The item with an error? Which one?
    You can use zabbix_get utility for testing. Also, please read this page.
    It seems to me that the problem in the mismatch between the item "Type of information" and obtained value.

    Comment

    • Saúl Ortega
      Junior Member
      • Jan 2013
      • 6

      #3
      Hi,

      The Type of information is Numeric unsigned, also I tested with numeric float.

      There are not errors in item neither trigger.

      The command:

      UserParameter=verificar.extension[*],asterisk -rx "sip show peers" | grep $1 -q; echo $?

      The trigger:

      {Americana:verificar.extension[XXXX].last(0)}=1

      It returns 0 or 1, when I run it manually it works, always returns 0 or 1. But the triggers never become into PROBLEM, always are OK all.

      I will try zabbix_get.

      Comment

      • Saúl Ortega
        Junior Member
        • Jan 2013
        • 6

        #4
        I have other UserParameters without quotes, and they works.

        Comment

        • Saúl Ortega
          Junior Member
          • Jan 2013
          • 6

          #5
          After doing test with zabbix_get, I discovered that it was a permissions problem. The zabbix user did not have permissions to run asterisk.

          It was solved.

          Comment

          Working...