summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2023-04-17 20:44:33 +0300
committerPaul Buetow <paul@buetow.org>2023-04-17 20:44:33 +0300
commit3ff14aa0c47994c6e09a1f11916ba13e7f8b3f9c (patch)
treeabdefe817e872838f39b09c38bd898bf4674f0d7
parente40e22f69470b987bfb2c39b4a18df67f497739d (diff)
fix name in notification
-rw-r--r--check.go1
-rw-r--r--main.go2
2 files changed, 1 insertions, 2 deletions
diff --git a/check.go b/check.go
index b98dd6a..f728e6d 100644
--- a/check.go
+++ b/check.go
@@ -7,7 +7,6 @@ import (
)
type check struct {
- Name string
Plugin string
Args []string
}
diff --git a/main.go b/main.go
index d7df829..5227a1b 100644
--- a/main.go
+++ b/main.go
@@ -30,7 +30,7 @@ func main() {
stateChanged := state.update(name, status)
if status != ok || stateChanged {
- subject := fmt.Sprintf("GOGIOS %s: %s", codeToString(status), check.Name)
+ subject := fmt.Sprintf("GOGIOS %s: %s", codeToString(status), name)
notify(config, subject, output)
}
}