Skip to content

Commit 0cfdd4f

Browse files
committed
xally: add timestamp to alert, trigger check at 6m, version: bump to 1.1.2
1 parent 8341cec commit 0cfdd4f

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ func main() {
115115
}()
116116

117117
if cfg.Node == "Xally" {
118-
webhookTicker := time.NewTicker(1 * time.Minute)
118+
webhookTicker := time.NewTicker(6 * time.Minute)
119119

120120
go func() {
121121
for {

services/config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"time"
1313
)
1414

15-
const version = "1.1.1"
15+
const version = "1.1.2"
1616

1717
type Config struct {
1818
Node string `json:"node"`

services/xally/xally.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,14 @@ func CheckRunning(config *config.Config) {
124124
}
125125

126126
if !allGood {
127-
message := "🚨 **Xally** Node Malfunction Detected 🚨\n\n"
127+
timestamp := time.Now().UTC().Format("2006-01-02 15:04:05")
128+
message := "-----------------------------------------------------------------------\n"
129+
message += fmt.Sprintf("🚨 **Xally** Node Malfunction Detected @ %s UTC 🚨\n\n", timestamp)
128130
message += fmt.Sprintf("👑 **Owner**: %s\n", config.Owner)
129131
message += fmt.Sprintf("🌐 **IPv4**: %s\n", config.IPv4)
130132
message += fmt.Sprintf("🌐 **IPv6**: %s\n", config.IPv6)
131133
message += fmt.Sprintf("⚙️ **Dashboard Version**: %s\n", config.NodeboxDashboardVersion)
134+
message += "-----------------------------------------------------------------------\n"
132135

133136
utils.SendAlert(message)
134137
} else {

0 commit comments

Comments
 (0)