minitor-go/test/valid-config.yml
Ian Fijolek 3f6c8f5a22
Some checks failed
continuous-integration/drone/push Build is failing
Breaking: Remove 'SecondsOrDuration' for check_interval
Now requires an explicit duration unit. Eg. 30s
2024-11-14 11:18:39 -08:00

26 lines
571 B
YAML

---
check_interval: 1s
monitors:
- name: Command
command: ["echo", "$PATH"]
alert_down: ["log_command", "log_shell"]
alert_every: 0
check_interval: 10s
- name: Shell
command: >
echo 'Some string with stuff';
echo 'another line';
echo $PATH;
exit 1
alert_down: ["log_command", "log_shell"]
alert_after: 5
alert_every: 0
check_interval: 1m
alerts:
log_command:
command: ["echo", "regular", '"command!!!"', "{{.MonitorName}}"]
log_shell:
command: echo "Failure on {{.MonitorName}} User is $USER"