From 236eb847501dd76c2a3f1cab3f0240858b0beedf Mon Sep 17 00:00:00 2001 From: Damien De Paoli Date: Sat, 16 Aug 2025 10:48:42 +1000 Subject: [PATCH] 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 --- kuma-cron | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 kuma-cron diff --git a/kuma-cron b/kuma-cron new file mode 100755 index 0000000..0cd72fc --- /dev/null +++ b/kuma-cron @@ -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'