summaryrefslogtreecommitdiffstats
path: root/src/zabbix_agent/zabbix_agent.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/zabbix_agent/zabbix_agent.c')
-rw-r--r--src/zabbix_agent/zabbix_agent.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/zabbix_agent/zabbix_agent.c b/src/zabbix_agent/zabbix_agent.c
index ed716a12..8fcdac2d 100644
--- a/src/zabbix_agent/zabbix_agent.c
+++ b/src/zabbix_agent/zabbix_agent.c
@@ -107,6 +107,8 @@ int main()
signal( SIGTERM, signal_handler );
signal( SIGALRM, signal_handler );
+/* Must be before init_config() */
+ init_metrics();
init_config();
/* Do not create debug files */