diff options
Diffstat (limited to 'src/zabbix_proxy')
-rw-r--r-- | src/zabbix_proxy/proxy.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/zabbix_proxy/proxy.c b/src/zabbix_proxy/proxy.c index 68dc6276332..cd3aead421c 100644 --- a/src/zabbix_proxy/proxy.c +++ b/src/zabbix_proxy/proxy.c @@ -671,6 +671,10 @@ static void zbx_validate_config(ZBX_TASK_EX *task) err |= (FAIL == check_cfg_feature_int("StartIPMIPollers", CONFIG_IPMIPOLLER_FORKS, "IPMI support")); #endif +#if !defined(HAVE_UNIXODBC) + err |= (FAIL == check_cfg_feature_int("StartODBCPollers", CONFIG_ODBCPOLLER_FORKS, "ODBC support")); +#endif + err |= (FAIL == zbx_db_validate_config_features()); if (0 != err) @@ -1306,14 +1310,6 @@ int MAIN_ZABBIX_ENTRY(int flags) } } -#ifndef HAVE_UNIXODBC - if (0 < CONFIG_ODBCPOLLER_FORKS) - { - zabbix_log(LOG_LEVEL_ERR, "ODBC support is not compiled in, but ODBC polling is enabled."); - return FAIL; - } -#endif - #if defined(HAVE_GNUTLS) || defined(HAVE_OPENSSL) zbx_tls_init_parent(); #endif |