2020-01-07 18:28:14 +00:00
|
|
|
---
|
2019-10-04 01:16:03 +00:00
|
|
|
check_interval: 1
|
|
|
|
|
|
|
|
monitors:
|
|
|
|
- name: Command
|
2021-05-11 17:40:54 +00:00
|
|
|
command: ["echo", "$PATH"]
|
|
|
|
alert_down: ["log_command", "log_shell"]
|
2019-10-04 01:16:03 +00:00
|
|
|
alert_every: 0
|
2021-05-11 17:40:54 +00:00
|
|
|
check_interval: 10s
|
2019-10-04 01:16:03 +00:00
|
|
|
- name: Shell
|
2020-02-16 21:25:11 +00:00
|
|
|
command: >
|
2019-10-04 01:16:03 +00:00
|
|
|
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"]
|
2019-10-04 01:16:03 +00:00
|
|
|
alert_after: 5
|
|
|
|
alert_every: 0
|
2021-05-11 17:40:54 +00:00
|
|
|
check_interval: 1m
|
2019-10-04 01:16:03 +00:00
|
|
|
|
|
|
|
alerts:
|
|
|
|
log_command:
|
2021-05-11 17:40:54 +00:00
|
|
|
command: ["echo", "regular", '"command!!!"', "{{.MonitorName}}"]
|
2019-10-04 01:16:03 +00:00
|
|
|
log_shell:
|
2020-02-16 21:25:11 +00:00
|
|
|
command: echo "Failure on {{.MonitorName}} User is $USER"
|