Ad Widget

Collapse

Trigger.get groupBy ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • toine7m
    Member
    • Feb 2017
    • 93

    #1

    Trigger.get groupBy ?

    Hello,

    I'm doing some work in PHP to get datas from zabbix via API.

    Actually, I've a problem with only one method, the "trigger.get".

    Here's my code :

    hostProblem2 : {
    get : function() {
    var method = "trigger.get";
    var params = {
    "output" : "",
    "monitored" : true,
    "skipDependent" : true,
    "filter" : {
    "value" : "1",
    },
    "limitSelects" : 10000,
    "countOutput" : true,
    "limit" : "10000"
    };
    I get every triggers and I count them, but my problem is that I need to group those triggers BY host, so, if I've 5 alerts but only with 2 hosts, simply shows 2 instead of 5 :/

    Any help ?

    Thanks
    Last edited by toine7m; 17-03-2017, 16:19.
Working...