diff options
author | sasha <sasha@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2008-08-06 13:29:56 +0000 |
---|---|---|
committer | sasha <sasha@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2008-08-06 13:29:56 +0000 |
commit | 5132f1679c3106da0ce8bda401ecdec3af45bd55 (patch) | |
tree | 02afb5777d2723c11b9eeaa7873222fce4cedb41 /src/zabbix_agent | |
parent | 1adf64e6bba5741b531d27b550f0dffa8db5f5f3 (diff) | |
download | zabbix-5132f1679c3106da0ce8bda401ecdec3af45bd55.tar.gz zabbix-5132f1679c3106da0ce8bda401ecdec3af45bd55.tar.xz zabbix-5132f1679c3106da0ce8bda401ecdec3af45bd55.zip |
- [DEV-168] More supported items
git-svn-id: svn://svn.zabbix.com/trunk@5882 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'src/zabbix_agent')
-rw-r--r-- | src/zabbix_agent/active.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/zabbix_agent/active.c b/src/zabbix_agent/active.c index 20d4cb60..840a1ee4 100644 --- a/src/zabbix_agent/active.c +++ b/src/zabbix_agent/active.c @@ -857,14 +857,10 @@ ZBX_THREAD_ENTRY(active_checks_thread, args) zabbix_log( LOG_LEVEL_INFORMATION, "zabbix_agentd active check started [%s:%u]", activechk_args.host, activechk_args.port); - zbx_setproctitle("getting list of active checks"); - init_active_metrics(); while(ZBX_IS_RUNNING) { - zbx_setproctitle("processing active checks"); - if(time(NULL) >= nextsend) { send_buffer(activechk_args.host, activechk_args.port); @@ -873,6 +869,8 @@ ZBX_THREAD_ENTRY(active_checks_thread, args) if(time(NULL) >= nextrefresh) { + zbx_setproctitle("poller [getting list of active checks]"); + if(FAIL == refresh_active_checks(activechk_args.host, activechk_args.port)) { nextrefresh = (int)time(NULL) + 60; @@ -885,6 +883,8 @@ ZBX_THREAD_ENTRY(active_checks_thread, args) if(time(NULL) >= nextcheck) { + zbx_setproctitle("poller [processing active checks]"); + process_active_checks(activechk_args.host, activechk_args.port); nextcheck = get_min_nextcheck(); if(FAIL == nextcheck) nextcheck = (int)time(NULL) + 60; |