Move monitor init to it's own method and refactor config validate to return err

This commit is contained in:
Ian Fijolek
2024-11-15 16:17:15 -08:00
parent 3fb418151b
commit 9e20c00dde
9 changed files with 171 additions and 141 deletions
+12
View File
@@ -0,0 +1,12 @@
check_interval = "1s"
alert "log_command" {
command = "should be a list"
}
monitor "Command" {
command = ["echo", "$PATH"]
alert_down = ["log_command"]
alert_every = 2
check_interval = "10s"
}