You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/alert_bot.py
+15-13Lines changed: 15 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ def init_alerts():
30
30
ALERTS= {
31
31
"low_wallet_balance": Alert(
32
32
"low",
33
-
"Validator's wallet balance is low",
33
+
"Validator's wallet balance is less than 10 TON",
34
34
"Validator's wallet {wallet} balance is less than 10 TON: {balance} TON.",
35
35
18*HOUR
36
36
),
@@ -52,13 +52,13 @@ def init_alerts():
52
52
),
53
53
"low_efficiency": Alert(
54
54
"high",
55
-
"Validator had low efficiency in the validation round",
55
+
"Validator had efficiency less than 90% in the validation round",
56
56
"""Validator efficiency is less than 90%: <b>{efficiency}%</b>.""",
57
57
VALIDATION_PERIOD//3
58
58
),
59
59
"out_of_sync": Alert(
60
60
"critical",
61
-
"Validator had low efficiency in the round",
61
+
"Node is out of sync on more than 20 sec",
62
62
"Node is out of sync on more than 20 sec: <b>{sync} sec</b>.",
63
63
300
64
64
),
@@ -76,7 +76,7 @@ def init_alerts():
76
76
),
77
77
"zero_block_created": Alert(
78
78
"critical",
79
-
"Validator has not created any blocks in the last few hours",
79
+
f"Validator has not created any blocks in the {int(VALIDATION_PERIOD//3//3600)} hours",
80
80
"Validator has not created any blocks in the last {hours} hours.",
81
81
VALIDATION_PERIOD//3
82
82
),
@@ -101,18 +101,18 @@ def init_alerts():
101
101
"stake_returned": Alert(
102
102
"info",
103
103
"Validator's stake has been returned (info alert with no sound)",
104
-
"Validator's stake {stake} TON has been returned on address {address}. The reward amount is {reward} TON.",
104
+
"Validator's stake {stake} TON has been returned on address <code>{address}</code>. The reward amount is {reward} TON.",
105
105
60
106
106
),
107
107
"stake_not_returned": Alert(
108
108
"high",
109
109
"Validator's stake has not been returned",
110
-
"Validator's stake has not been returned on address {address}.",
110
+
"Validator's stake has not been returned on address <code>{address}.</code>",
111
111
60
112
112
),
113
113
"voting": Alert(
114
114
"high",
115
-
"There is an active network proposal that has many votes but is not voted by the validator",
115
+
"There is an active network proposal that has many votes (more than 50% of required) but is not voted by the validator",
116
116
"Found proposals with hashes `{hashes}` that have significant amount of votes, but current validator didn't vote for them. Please check @tonstatus for more details.",
If you want, you can disable some notifications in mytonctrl by the <a href="https://docs.ton.org/v3/guidelines/nodes/maintenance-guidelines/mytonctrl-private-alerting#endisbling-alerts"> instruction</a>.
268
+
If you want, you can disable some notifications in mytonctrl by the <a href="https://docs.ton.org/v3/guidelines/nodes/maintenance-guidelines/mytonctrl-private-alerting#endisbling-alerts"> instruction</a>.
267
269
268
-
Full bot documentation <a href="https://docs.ton.org/v3/guidelines/nodes/maintenance-guidelines/mytonctrl-private-alerting">here</a>.
270
+
Full bot documentation <a href="https://docs.ton.org/v3/guidelines/nodes/maintenance-guidelines/mytonctrl-private-alerting">here</a>.
self.local.add_log(f"Error while sending welcome message: {e}", "error")
283
-
self.local.add_log(f"If you want the bot to write to a multi-person chat group, make sure the bot is added to that chat group and has admin rights. If it is not - do it and run the command `set ChatId <ChatId>` again.", "info")
285
+
self.local.add_log(f"If you want the bot to write to a multi-person chat group, make sure the bot is added to that chat group. If it is not - do it and run the command `set ChatId <ChatId>` again.", "info")
0 commit comments