From f7dc5588ae25942d42c2cede043550b7776c1af5 Mon Sep 17 00:00:00 2001 From: Doug Burks Date: Fri, 18 Mar 2022 13:13:46 -0400 Subject: [PATCH] FIX: Update common init.sls to create cron job to write influxdb size for telegraf #7468 --- salt/common/init.sls | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/salt/common/init.sls b/salt/common/init.sls index d1acca878..0eaf5e77e 100644 --- a/salt/common/init.sls +++ b/salt/common/init.sls @@ -300,8 +300,17 @@ sostatus_log: - month: '*' - dayweek: '*' - {% if role in ['eval', 'manager', 'managersearch', 'standalone'] %} +# Install cron job to determine size of influxdb for telegraf +'du -s -k /nsm/influxdb | cut -f1 > /opt/so/log/telegraf/influxdb_size.log 2>&1': + cron.present: + - user: root + - minute: '*/1' + - hour: '*' + - daymonth: '*' + - month: '*' + - dayweek: '*' + # Lock permissions on the backup directory backupdir: file.directory: