work in 2.4
Ad Widget
Collapse
Zabbix Trigger Dashboard
Collapse
X
-
and retrieve triggers in problem state
add 'filter' => array('value' => 1)
hostgroup02.php
PHP Code:$triggers = $api->triggerGet(array(
'output' => array(
'priority',
'description'),
'selectHosts' => array('hostid'),
'groupids' => $groupIds,
'expandDescription' => 1,
'only_true' => 1,
'monitored' => 1,
// 'withLastEventUnacknowledged' => 1,
'sortfield' => 'priority',
'active' => 1,
'sortorder' => 'DESC',
'filter' => array('value' => 1)
));
Comment
-
add link to event and host screen
add Skip triggers in a problem state that are dependent on other triggers. Note that the other triggers are ignored if disabled, have disabled items or disabled item hosts.Attached FilesComment
-
Comment
-
Zabbix Trigger Dashboard
Hi,
@sersad: is it possible to make it like, if we click the trigger name it should go to history.php based on its itemid??
need your thoughts...
Comment
-
Diwahar
In Request add "selectFunctions": "extend"
The reply will contain an array "functions":"itemid"
/history.php?action=showgraph&itemids[]="itemid"Comment
-
Zabbix Trigger Dashboard
@sersad: is this is crct?
$triggers = $api->triggerGet(array(
'output' => array(
'priority',
'description',
'lastChangeSince'),
'selectHosts' => array('hostid'),
'selectFunctions' => array('itemid'),
'groupids' => $groupIds,
'expandDescription' => 1,
'only_true' => 1,
'monitored' => 1,
'withLastEventUnacknowledged' => 1,
'sortfield' => 'priority',
'sortorder' => 'DESC'
));
foreach($triggers as $trigger) {
foreach($trigger->hosts as $host) {
$hostTriggers[$host->hostid][] = $trigger;
foreach($trigger->items as $item) {
$itemTriggers[$item->itemid][] = $trigger;
}
}
}
plz, can u help me in this?Comment
-
@sersad: i got it... works fine now.
Thanks

@sersad: is this is crct?
$triggers = $api->triggerGet(array(
'output' => array(
'priority',
'description',
'lastChangeSince'),
'selectHosts' => array('hostid'),
'selectFunctions' => array('itemid'),
'groupids' => $groupIds,
'expandDescription' => 1,
'only_true' => 1,
'monitored' => 1,
'withLastEventUnacknowledged' => 1,
'sortfield' => 'priority',
'sortorder' => 'DESC'
));
foreach($triggers as $trigger) {
foreach($trigger->hosts as $host) {
$hostTriggers[$host->hostid][] = $trigger;
foreach($trigger->items as $item) {
$itemTriggers[$item->itemid][] = $trigger;
}
}
}
plz, can u help me in this?Comment
-
Zabbix Trigger Dashboard
@sersad:
Any idea how to get the triggers using templates??
Diwahar
In Request add "selectFunctions": "extend"
The reply will contain an array "functions":"itemid"
/history.php?action=showgraph&itemids[]="itemid"Comment
-
Hi Waard,
I never tested the dashboard in 1.8, but I know I did experienced some issues when upgrading from 2.2 to 2.4. All it took was updating the php api files to a newer version. Don't know if there is an older php api version you can download.Comment
-
Could it be that the way you get the information in the API call is different from the way to get it in 1.8?Comment

Comment