minitor-go/test/valid-verify-multi-line.hcl

20 lines
327 B
HCL
Raw Normal View History

2022-01-27 00:34:31 +00:00
check_interval = "1s"
monitor "Shell" {
shell_command = <<-EOF
echo 'Some string with stuff'
echo "<angle brackets>"
exit 1
2022-01-27 00:34:31 +00:00
EOF
alert_down = ["log_shell"]
alert_after = 1
alert_every = 0
}
alert "log_shell" {
shell_command = <<EOF
echo 'Some string with stuff'
echo '<angle brackets>'
2022-01-27 00:34:31 +00:00
EOF
}