2022-01-27 00:34:31 +00:00
|
|
|
check_interval = "1s"
|
|
|
|
|
|
|
|
monitor "Shell" {
|
2024-11-15 20:05:17 +00:00
|
|
|
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
|
2024-11-15 20:05:17 +00:00
|
|
|
echo 'Some string with stuff'
|
|
|
|
echo '<angle brackets>'
|
2022-01-27 00:34:31 +00:00
|
|
|
EOF
|
|
|
|
}
|