From fa5d28036fbdafcee2bb5d048f59628ba8f5b3bd Mon Sep 17 00:00:00 2001 From: hugetoad Date: Sun, 8 May 2005 07:10:39 +0000 Subject: Fixes for active checks. git-svn-id: svn://svn.zabbix.com/trunk@1761 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- src/zabbix_agent/zabbix_agentd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/zabbix_agent/zabbix_agentd.c b/src/zabbix_agent/zabbix_agentd.c index 24b1fd20..e7911aaf 100644 --- a/src/zabbix_agent/zabbix_agentd.c +++ b/src/zabbix_agent/zabbix_agentd.c @@ -419,6 +419,7 @@ int main(int argc, char **argv) char host[128]; int ch; + char *s; static struct sigaction phan; @@ -482,7 +483,8 @@ int main(int argc, char **argv) } /* Initialize thread for active checks */ - pids[CONFIG_AGENTD_FORKS-1] = child_active_make(CONFIG_AGENTD_FORKS-1, CONFIG_HOSTS_ALLOWED, CONFIG_SERVER_PORT); + s=strtok(CONFIG_HOSTS_ALLOWED,","); + pids[CONFIG_AGENTD_FORKS-1] = child_active_make(CONFIG_AGENTD_FORKS-1, s, CONFIG_SERVER_PORT); parent=1; -- cgit