Add some config tests
Still some more to add
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
check_interval: 1
|
||||
|
||||
monitors:
|
||||
- name: Command
|
||||
command: ['echo', '$PATH']
|
||||
alert_down: [ 'alert_down', 'log_shell', 'log_command' ]
|
||||
# alert_every: -1
|
||||
alert_every: 0
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
check_interval: woops, I'm not an int!
|
||||
@@ -0,0 +1,22 @@
|
||||
check_interval: 1
|
||||
|
||||
monitors:
|
||||
- name: Command
|
||||
command: ['echo', '$PATH']
|
||||
alert_down: [ 'log_command', 'log_shell' ]
|
||||
alert_every: 0
|
||||
- name: Shell
|
||||
command_shell: >
|
||||
echo 'Some string with stuff';
|
||||
echo 'another line';
|
||||
echo $PATH;
|
||||
exit 1
|
||||
alert_down: [ 'log_command', 'log_shell' ]
|
||||
alert_after: 5
|
||||
alert_every: 0
|
||||
|
||||
alerts:
|
||||
log_command:
|
||||
command: [ 'echo', 'regular', '"command!!!"', "{{.MonitorName}}" ]
|
||||
log_shell:
|
||||
command_shell: echo "Failure on {{.MonitorName}} User is $USER"
|
||||
Reference in New Issue
Block a user