summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsasha <sasha@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-08-11 13:03:06 +0000
committersasha <sasha@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-08-11 13:03:06 +0000
commitab97cfd43e81c0274ff9eb160887bf2ab39fae23 (patch)
tree41faa4f4d200afeb6f590cbb85ac7d2877097448
parent4e3e263c1c3f37c3917640f987edb8794c392235 (diff)
downloadzabbix-ab97cfd43e81c0274ff9eb160887bf2ab39fae23.tar.gz
zabbix-ab97cfd43e81c0274ff9eb160887bf2ab39fae23.tar.xz
zabbix-ab97cfd43e81c0274ff9eb160887bf2ab39fae23.zip
- [DEV-137] Misc bugs and improvements
[added nextcheck in trapper for proxy items] git-svn-id: svn://svn.zabbix.com/trunk@5894 97f52cf1-0a1b-0410-bd0e-c28be96e8082
-rw-r--r--src/zabbix_server/trapper/trapper.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/zabbix_server/trapper/trapper.c b/src/zabbix_server/trapper/trapper.c
index 6422b0ed..dc4d47bd 100644
--- a/src/zabbix_server/trapper/trapper.c
+++ b/src/zabbix_server/trapper/trapper.c
@@ -153,6 +153,8 @@ static void process_mass_data(zbx_sock_t *sock, zbx_uint64_t proxy_hostid, AGENT
if (NULL == sql)
sql = zbx_malloc(sql, sql_allocated);
+ DCinit_nextchecks();
+
zbx_snprintf_alloc(&sql, &sql_allocated, &sql_offset, 2048,
"select %s where h.hostid=i.hostid and h.proxy_hostid=" ZBX_FS_UI64
" and h.status=%d and i.status in (%d,%d)",
@@ -281,6 +283,16 @@ static void process_mass_data(zbx_sock_t *sock, zbx_uint64_t proxy_hostid, AGENT
}
}
(*processed)++;
+
+ /* only for screen Administration|Queue */
+ if (0 != proxy_hostid && item.type != ITEM_TYPE_TRAPPER &&
+ item.type != ITEM_TYPE_ZABBIX_ACTIVE &&
+ item.type != ITEM_TYPE_HTTPTEST &&
+ 0 != strcmp(item.key, SERVER_STATUS_KEY) &&
+ 0 != strcmp(item.key, SERVER_ICMPPING_KEY) &&
+ 0 != strcmp(item.key, SERVER_ICMPPINGSEC_KEY) &&
+ 0 != strcmp(item.key, SERVER_ZABBIXLOG_KEY))
+ DCadd_nextcheck(&item, values[i].clock, NULL);
}
else
{
@@ -300,6 +312,8 @@ static void process_mass_data(zbx_sock_t *sock, zbx_uint64_t proxy_hostid, AGENT
}
DBfree_result(result);
+ DCflush_nextchecks();
+
if (0 != CONFIG_DBSYNCER_FORKS)
DCflush_nextchecks();
}