Ad Widget

Collapse

API event.get groupids not working

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pqespindola
    Junior Member
    • Aug 2017
    • 1

    #1

    API event.get groupids not working

    Hello everyone,

    I noticed that after upgrading zabbix-frontend-php from 3.2.6 to 3.2.7, API event.get requests with "groupids" or "hostids" field return empty:

    REQUEST:
    {
    "jsonrpc": "2.0",
    "method": "event.get",
    "params": {
    "groupids":"10",
    "output": "extend",
    "time_from":"1497916800",
    "time_till":"1503600498",
    },
    "id": 1,
    "auth": "{{token}}"
    }
    RESPONSE:
    {
    "jsonrpc": "2.0",
    "result": [],
    "id": 1
    }

    If I restore a snapshot with the exact same request on 3.2.6 everything works fine. No groupids or hostids work. Requests without these 2 fields work fine. The "objectid" field works as well.

    Were there any known changes to the way event.get works? Does anyone know any workaround?

    Thanks in advance

    Update:

    The same happens in 3.4.1.

    Replacing .../includes/classes/api/services/CEvents.php with the one from 3.2.6 works.

    The OS is Ubuntu 14.04.5
    Last edited by pqespindola; 28-08-2017, 22:42.
  • .sys
    Junior Member
    • Oct 2017
    • 1

    #2
    Related bug report here:



    Fixed in:
    - 3.2.9rc1 r72912
    - 3.4.3rc1 r72913
    - 4.0.0alpha1 (trunk) r72914

    Comment

    Working...