this tells kuma that cron is running - its the last cron line in /etc/crontab on mara, if anything in cron syntax/barfs, then this heartbeat script will not be run, and the CRON check in kuma will go crit

This commit is contained in:
2025-08-16 10:48:42 +10:00
parent 56577d09aa
commit 236eb84750

14
kuma-cron Executable file
View File

@@ -0,0 +1,14 @@
#!/bin/bash
# uncomment to test
#exit 0
# this is complex, we use cron to run stuff, but if cron fails, no script gets
# an update, BUT, as prometheus is just looking at the last state of the file,
# it would see the last values and think they are 'current'.
#
# SO, lets date 'stamp' when we ran this, rather than give a boolean, because if
# its running this will update the date, if not, it wont anyway :)
# tell kuma so we don't get an alert (and use no DNS, no internet)
curl 'http://mara.ddp.net:3001/api/push/VPFRqXRjvq?status=up&msg=OK'