Zabbix API: trigger.get does not fully disclose the meaning of the trigger description with expandDescription flag

XMLWordPrintable

    • Type: Problem report
    • Resolution: Won't fix
    • Priority: Trivial
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      Execute API triggers.get request with the parameter expandDescription , the text of the expanded macro is returned in a truncated form with an ellipsis at the end. I did not find a description of this behavior in the documentation.

      Steps to reproduce:

      curl -i -X POST -H 'Content-type:application/json'  -d '{"jsonrpc":"2.0","method":"trigger.get","params":{"groupids":["587"],"active":true,"only_true":true,"selectHosts":["host"],"selectGroups":["name"],"search":{"value":"1"},"output":["description"],"expandDescription":true},"id":27,"auth":"01a6d05e25e0b2d2994664f9bd81227a"}'  https://zabbix/api_jsonrpc.php
      

      Result
      Trigger description not fully expanded.

      {
         "jsonrpc":"2.0",
         "result":[
            {
               "triggerid":"1019837",
               "description":"Delayed realtime CEXIO,bitfinex,okcoi...",
               "groups":[
                  {
                     "groupid":"249",
                     "name":"Docker container"
                  },
                  {
                     "groupid":"571",
                     "name":"Location(wdc)"
                  },
                  {
                     "groupid":"587",
                     "name":"Cluster(wdc-charts-4)"
                  }
               ],
               "hosts":[
                  {
                     "hostid":"26424",
                     "host":"wdc-charts-4-study-engine-4"
                  }
               ]
            }
         ]}
      

      Expected:
      fully expanded value expression

            Assignee:
            Zabbix Support Team
            Reporter:
            Sergey Repkin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: