Add sostatus for telegraf

This commit is contained in:
Mike Reeves
2021-04-07 16:29:44 -04:00
parent 9baa9767ca
commit 8ab4dd10d4
2 changed files with 20 additions and 0 deletions

View File

@@ -297,6 +297,25 @@ commonlogrotateconf:
- month: '*'
- dayweek: '*'
# Create the status directory
sostatusdir:
file.directory:
- name: /opt/so/log/sostatus
- user: 0
- group: 0
- makedirs: True
# Install sostatus check cron
/usr/sbin/so-status -q && echo $? > /opt/so/log/sostatus/status.log 2>&1:
cron.present:
- user: root
- minute: '*/15'
- hour: '*'
- daymonth: '*'
- month: '*'
- dayweek: '*'
{% if role in ['eval', 'manager', 'managersearch', 'standalone'] %}
# Lock permissions on the backup directory
backupdir: