2020-01-07 10:28:14 -08:00
|
|
|
---
|
2023-04-19 15:31:12 -07:00
|
|
|
check_interval: 1s
|
2019-10-03 18:16:03 -07:00
|
|
|
|
|
|
|
monitors:
|
|
|
|
- name: Command
|
2021-05-11 10:40:54 -07:00
|
|
|
command: ["echo", "$PATH"]
|
|
|
|
alert_down: ["log_command", "log_shell"]
|
2019-10-03 18:16:03 -07:00
|
|
|
alert_every: 0
|
2021-05-11 10:40:54 -07:00
|
|
|
check_interval: 10s
|
2019-10-03 18:16:03 -07:00
|
|
|
- name: Shell
|
2020-02-16 13:25:11 -08:00
|
|
|
command: >
|
2019-10-03 18:16:03 -07:00
|
|
|
echo 'Some string with stuff';
|
|
|
|
echo 'another line';
|
|
|
|
echo $PATH;
|
|
|
|
exit 1
|
2021-05-11 10:40:54 -07:00
|
|
|
alert_down: ["log_command", "log_shell"]
|
2019-10-03 18:16:03 -07:00
|
|
|
alert_after: 5
|
|
|
|
alert_every: 0
|
2021-05-11 10:40:54 -07:00
|
|
|
check_interval: 1m
|
2019-10-03 18:16:03 -07:00
|
|
|
|
|
|
|
alerts:
|
|
|
|
log_command:
|
2021-05-11 10:40:54 -07:00
|
|
|
command: ["echo", "regular", '"command!!!"', "{{.MonitorName}}"]
|
2019-10-03 18:16:03 -07:00
|
|
|
log_shell:
|
2020-02-16 13:25:11 -08:00
|
|
|
command: echo "Failure on {{.MonitorName}} User is $USER"
|