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
|
|
|
|
command_shell: >
|
|
|
|
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:
|
|
|
|
command_shell: echo "Failure on {{.MonitorName}} User is $USER"
|