15 lines
548 B
Bash
Executable File
15 lines
548 B
Bash
Executable File
#!/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'
|