-
Incident report
-
Resolution: Fixed
-
Minor
-
None
-
4.0.3
-
None
Steps to reproduce:
- Setup host with just a check for SSH availability
- Take host offline
- Query triggers.get API
Result:
Dashboard shows trigger under current problems correctly
Trigger is absent in the API results, while triggers with Zabbix agent hosts are returned
Expected:
All triggers shown in the Dashboard are returned via API
This is the used query:
$jsonData = array( 'jsonrpc' => '2.0', 'method' => 'trigger.get', 'params' => array( 'output' => array( 'description', 'value', 'status', ), 'selectHosts' => array( 'host' ), 'selectItems' => array( 'lastvalue', 'units' ), 'filter' => array ( 'value' => 1, 'status' => 0 ), 'sortfield' => 'priority', 'sortorder' => 'DESC' ), 'id' => 2, 'auth' => $token );
Removing selectHosts does not help.