Ian Fijolek
d4e2cb7b9f
All checks were successful
continuous-integration/drone/push Build is passing
This makes the configuration more similar to Minitor-py and docker-compose. If a string is passed, it will be executed in a shell. If an array is passed, it will be executed in as a command directly. This breaks compatiblity with previous versions of Minitor-go, but closer to compatiblity with Minitor-py.
19 lines
316 B
YAML
19 lines
316 B
YAML
---
|
|
check_interval: 1
|
|
|
|
monitors:
|
|
- name: Shell
|
|
command: >
|
|
echo 'Some string with stuff';
|
|
echo "<angle brackets>";
|
|
exit 1
|
|
alert_down: ['log_shell']
|
|
alert_after: 1
|
|
alert_every: 0
|
|
|
|
alerts:
|
|
log_shell:
|
|
command: |
|
|
echo 'Some string with stuff'
|
|
echo '<angle brackets>'
|