Kuma: Configure per-device interval
Some checks reported errors
continuous-integration/drone/push Build was killed
continuous-integration/drone Build is passing

This commit is contained in:
Tobias Manske 2023-09-15 13:53:23 +02:00
parent 01c14bd9f6
commit 3ec96eb1b3
Signed by: tobias
GPG Key ID: 9164B527694A0709
4 changed files with 8 additions and 4 deletions

View File

@ -0,0 +1,2 @@
---
heartbeat_timer_interval: 300

View File

@ -0,0 +1,2 @@
---
heartbeat_timer_interval: 60

View File

@ -246,7 +246,7 @@
name: "{{ inventory_hostname }}" name: "{{ inventory_hostname }}"
description: "Managed by Ansible" description: "Managed by Ansible"
type: push type: push
interval: 330 interval: "{{ heartbeat_timer_interval|mandatory + 30 }}"
maxretries: 2 maxretries: 2
notification_names: notification_names:
- "Kuma Statusmonitor" - "Kuma Statusmonitor"

View File

@ -1,9 +1,9 @@
[Unit] [Unit]
Description=Send heartbeat every 5 minutes Description=Notify Kuma that this node is alive
[Timer] [Timer]
OnCalendar=*-*-* *:00/5:00 OnActiveSec={{ heartbeat_timer_interval }}
Persistent=true OnUnitActiveSec={{ heartbeat_timer_interval }}
[Install] [Install]
WantedBy=timers.target WantedBy=timers.target