From 4c0b7f1d7e0adacc67a79383511933b65f32280f Mon Sep 17 00:00:00 2001 From: Alexander Zobnin Date: Mon, 22 Jun 2015 22:53:08 +0300 Subject: [PATCH] Fixed #30 --- zabbix/datasource.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zabbix/datasource.js b/zabbix/datasource.js index 6ca7ebe..cfb75f0 100644 --- a/zabbix/datasource.js +++ b/zabbix/datasource.js @@ -463,7 +463,7 @@ function (angular, _, kbn) { ZabbixAPIDatasource.prototype.findZabbixGroup = function (group) { var params = { output: ['name'], - search: { + filter: { name: group }, searchByAny: true, @@ -482,7 +482,7 @@ function (angular, _, kbn) { ZabbixAPIDatasource.prototype.findZabbixHost = function (hostnames) { var params = { output: ['host', 'name'], - search: { + filter: { host: hostnames, name: hostnames }, @@ -502,7 +502,7 @@ function (angular, _, kbn) { ZabbixAPIDatasource.prototype.findZabbixApp = function (application) { var params = { output: ['name'], - search: { + filter: { name: application }, searchByAny: true,