Skip to content
Snippets Groups Projects
Commit 8ff30d7c authored by jurgenhaas's avatar jurgenhaas
Browse files

Implement housekeeping and heartbeat alerts via crontab

parent 380061e4
Branches
No related tags found
No related merge requests found
......@@ -75,3 +75,23 @@
dest: '/etc/alertad.conf'
notify:
- "Restart uwsgi"
- name: "Configure root CLI"
template:
src: 'alerta.conf'
dest: '/root/.alerta.conf'
- name: "Configure crontabs"
cron:
name: '{{ item.name }}'
minute: '{{ item.minute }}'
job: '{{ item.job }} >/dev/null 2>&1'
disabled: '{{ crons_disabled|default(false) }}'
items:
- name: 'Heartbeats to Alert'
minute: '*/3'
job: '/usr/local/bin/alerta heartbeats --alert'
- name: 'Alerta Housekeeping'
minute: '0'
job: '/usr/local/bin/alerta housekeeping'
tags: 'cron'
[DEFAULT]
timezone = Europe/Berlin
profile = admin
[profile admin]
endpoint = https://{{ alerta_domain }}/api
key = {{ alerta_api_key }}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment