From a94073e645313e770217ac1a54e42931ed1859a1 Mon Sep 17 00:00:00 2001
From: Hinrikus Wolf <hinrikus@fsmpi.rwth-aachen.de>
Date: Thu, 3 Dec 2020 22:11:23 +0100
Subject: [PATCH] change cronjob for counting rows of database to be on the 2nd
 day of month, to avoid a race condition

---
 zabbix-server/tasks/main.yml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/zabbix-server/tasks/main.yml b/zabbix-server/tasks/main.yml
index 8ea1be6..6126016 100644
--- a/zabbix-server/tasks/main.yml
+++ b/zabbix-server/tasks/main.yml
@@ -172,7 +172,9 @@
 - name: ensure rows are counted regularily and saved in comment
   cron:
     name: "count rows"
-    special_time: monthly
+    day: "2"
+    hour: "2"
+    minute: "0"
     job: psql zabbix -c "select * from zbx_update_partition_table_comments();"
     state: present
     user: postgres
-- 
GitLab