Ad Widget

Collapse

API returning macro names instead of macro values

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • icol
    Member
    • Aug 2014
    • 31

    #1

    API returning macro names instead of macro values

    I am getting alarms from zabbix an export it to another tool in almost real time

    I do this by polling the zabbix api every minute

    this is the cmd i use in the api

    payload = {
    "jsonrpc" : "2.0",
    "method" : "trigger.get",
    "params": {
    "output": "extend",
    "monitored": "1",
    "selectHosts": "extend",
    "lastChangeSince": before,
    "sortfield":"lastchange"
    },
    "auth" : self.auth,
    "id" : 2,
    }
    headers = {
    'content-type': 'application/json',
    }

    This is the example of the description with an error:
    "Disk I/O is overloaded on {HOST.NAME}"

    Instead of the {host.name} it should have been the name of the host

    is this a bug?
    Somthing wrong in the way i send my cmd?

    Thanks in advance for any help
  • Semiadmin
    Senior Member
    • Oct 2014
    • 1625

    #2
    Hi, icol.
    Try to add param "expandDescription" : "1"

    Comment

    • icol
      Member
      • Aug 2014
      • 31

      #3
      Hi Semiadmin!

      it worked

      Thanks

      Comment

      Working...