2020-01-07 18:28:14 +00:00
|
|
|
---
|
2019-10-04 01:16:03 +00:00
|
|
|
check_interval: 1
|
|
|
|
|
|
|
|
monitors:
|
|
|
|
- name: Command
|
|
|
|
command: ['echo', '$PATH']
|
2020-01-07 18:28:14 +00:00
|
|
|
alert_down: ['log_command', 'log_shell']
|
2019-10-04 01:16:03 +00:00
|
|
|
alert_every: 0
|
|
|
|
- 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
|
2020-01-07 18:28:14 +00:00
|
|
|
alert_down: ['log_command', 'log_shell']
|
2019-10-04 01:16:03 +00:00
|
|
|
alert_after: 5
|
|
|
|
alert_every: 0
|
|
|
|
|
|
|
|
alerts:
|
|
|
|
log_command:
|
2020-01-07 18:28:14 +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"
|