diff options
Diffstat (limited to 'src/zabbix_proxy/proxy.c')
-rw-r--r-- | src/zabbix_proxy/proxy.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/zabbix_proxy/proxy.c b/src/zabbix_proxy/proxy.c index df199b3c..eb7bc161 100644 --- a/src/zabbix_proxy/proxy.c +++ b/src/zabbix_proxy/proxy.c @@ -107,7 +107,7 @@ pid_t *threads=NULL; int CONFIG_CONFSYNCER_FORKS = 1; int CONFIG_DATASENDER_FORKS = 1; -int CONFIG_DBSYNCER_FORKS = 0;//1; +int CONFIG_DBSYNCER_FORKS = 1; int CONFIG_DISCOVERER_FORKS = 1; int CONFIG_HOUSEKEEPER_FORKS = 1; int CONFIG_PINGER_FORKS = 1; @@ -130,7 +130,7 @@ int CONFIG_HEARTBEAT_FREQUENCY = 60; int CONFIG_PROXYCONFIG_FREQUENCY = 3600*24; -int CONFIG_DATASENDER_FREQUENCY = 10; +int CONFIG_DATASENDER_FREQUENCY = 1; int CONFIG_SENDER_FREQUENCY = 30; int CONFIG_DBSYNCER_FREQUENCY = 5; @@ -199,6 +199,7 @@ void init_config(void) {"ServerPort",&CONFIG_SERVER_PORT,0,TYPE_INT,PARM_OPT,1024,32768}, {"Hostname",&CONFIG_HOSTNAME,0,TYPE_STRING,PARM_OPT,0,0}, + {"StartDBSyncers",&CONFIG_DBSYNCER_FORKS,0,TYPE_INT,PARM_OPT,0,16}, {"StartDiscoverers",&CONFIG_DISCOVERER_FORKS,0,TYPE_INT,PARM_OPT,0,255}, {"StartHTTPPollers",&CONFIG_HTTPPOLLER_FORKS,0,TYPE_INT,PARM_OPT,0,255}, {"StartPingers",&CONFIG_PINGER_FORKS,0,TYPE_INT,PARM_OPT,0,255}, @@ -350,7 +351,7 @@ int main(int argc, char **argv) if(CONFIG_DBSYNCER_FORKS!=0) { - init_database_cache(); + init_database_cache(ZBX_PROCESS_PROXY); } return daemon_start(CONFIG_ALLOW_ROOT); |