minitor-go/test/valid-config.yml

26 lines
571 B
YAML
Raw Permalink Normal View History

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