Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndris Zeila <andris.zeila@zabbix.com>2022-01-27 17:32:08 +0300
committerAndris Zeila <andris.zeila@zabbix.com>2022-01-27 17:32:08 +0300
commit0f08fb113d37fc11c4b9910fc7665a9523c91a7e (patch)
tree83aca81c1b4d20e1520dc798ab6bb8287b027e80 /src
parent010398bfb6ca7dc07570d6985df7d40b79f6f99f (diff)
...G...... [ZBX-20487] fixed agent handling of invalid time intervals
Diffstat (limited to 'src')
-rw-r--r--src/zabbix_agent/active.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/zabbix_agent/active.c b/src/zabbix_agent/active.c
index ff231102290..615d6cae345 100644
--- a/src/zabbix_agent/active.c
+++ b/src/zabbix_agent/active.c
@@ -1269,6 +1269,7 @@ static void process_active_checks(char *server, unsigned short port)
if (0 == metric->refresh)
{
ret = FAIL;
+ metric->refresh = SEC_PER_YEAR;
error = zbx_strdup(error, "Incorrect update interval.");
}
else if (0 != ((ZBX_METRIC_FLAG_LOG_LOG | ZBX_METRIC_FLAG_LOG_LOGRT) & metric->flags))
@@ -1441,6 +1442,7 @@ ZBX_THREAD_ENTRY(active_checks_thread, args)
else
{
nextrefresh = time(NULL) + CONFIG_REFRESH_ACTIVE_CHECKS;
+ nextcheck = 0;
}
#if !defined(_WINDOWS) && !defined(__MINGW32__)
zbx_remove_inactive_persistent_files(&persistent_inactive_vec);