Ad Widget

Collapse

API Zabbix 3.0 - expandData Flag

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jlnmorari
    Junior Member
    Zabbix Certified Specialist
    • May 2014
    • 3

    #1

    API Zabbix 3.0 - expandData Flag

    Greetings!

    We use custom dashing dashboards to display Zabbix information, and this is made via API.

    Till Zabbix 2.4, there was a flag called "expandData" for the method "get.trigger", that brought the hostname for a Trigger in a given state. This info then was displayed in our dashboards.

    We are now using Zabbix 3.0, and this flag was removed from said method.

    Is there a substitute for the flag "expandData" for the method "get.trigger"?

    Thanks!
  • jan.garaj
    Senior Member
    Zabbix Certified Specialist
    • Jan 2010
    • 506

    #2
    Doc is your friend https://www.zabbix.com/documentation...ce/trigger/get

    Code:
    expandComment
    expandDescription
    expandExpression
    Zapix example query
    Devops Monitoring Expert advice: Dockerize/automate/monitor all the things.
    My DevOps stack: Docker / Kubernetes / Mesos / ECS / Terraform / Elasticsearch / Zabbix / Grafana / Puppet / Ansible / Vagrant

    Comment

    • jlnmorari
      Junior Member
      Zabbix Certified Specialist
      • May 2014
      • 3

      #3
      Thank you for the answer!

      I read the docs, but I find it a little bit unclear. I will experiment with these flags and see what I can get.

      Comment

      • StarDestroyer
        Junior Member
        • Jun 2014
        • 20

        #4
        Looks like you're running into the same issue I previously had.

        The solution was
        Code:
        "selectHosts": "extend",
        It doesn't return data in the same format, but it does include the host name information.

        Comment

        • jlnmorari
          Junior Member
          Zabbix Certified Specialist
          • May 2014
          • 3

          #5
          Spot on!

          This new implementation is a little bit harder to use, but I'm glad it works.

          Thanks for the help!

          Comment

          Working...