Ad Widget

Collapse

Zabbix API template.get bug

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gescheit
    Senior Member
    • Jul 2007
    • 156

    #1

    Zabbix API template.get bug

    I send to API next parametrs: {"params": {"filter": {"host": "nanostation5_proto"}}, "jsonrpc": "2.0", "method": "template.get", "auth": "auth", "id": 2}
    Ang get next answer :{'jsonrpc': '2.0', 'result': {'11114': {'hostid': '11114', 'templateid': '11114'}}, 'id': 2}, but expected {'jsonrpc': '2.0', 'result': [{'hostid': '11114', 'templateid': '11114'}], 'id': 2}.
    Tested on zabbix 1.8.3 and 1.8.4rc1.
  • richlv
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2005
    • 3112

    #2
    please report bugs on the bugtracker, thanks
    Zabbix 3.0 Network Monitoring book

    Comment

    • Aly
      ZABBIX developer
      • May 2007
      • 1126

      #3
      Just tested on 1.8.4 RC2:

      --->

      {"jsonrpc":"2.0","method":"template.get","params": {"filter":{"host":"Template_Linux"}},"auth":"asdab 07be9a8c0de5ac3f2952b85adsa","id":2}

      <-----
      {"jsonrpc":"2.0","result":[{"hostid":"100100000010001","templateid":"10010000 0010001"}],"id":2}
      Zabbix | ex GUI developer

      Comment

      Working...