diff options
| author | Paul Buetow <paul@buetow.org> | 2023-04-17 20:44:33 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2023-04-17 20:44:33 +0300 |
| commit | 3ff14aa0c47994c6e09a1f11916ba13e7f8b3f9c (patch) | |
| tree | abdefe817e872838f39b09c38bd898bf4674f0d7 | |
| parent | e40e22f69470b987bfb2c39b4a18df67f497739d (diff) | |
fix name in notification
| -rw-r--r-- | check.go | 1 | ||||
| -rw-r--r-- | main.go | 2 |
2 files changed, 1 insertions, 2 deletions
@@ -7,7 +7,6 @@ import ( ) type check struct { - Name string Plugin string Args []string } @@ -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) } } |
