forked from iamrustamov/TONTgBot
-
Notifications
You must be signed in to change notification settings - Fork 15
/
config.py
33 lines (30 loc) · 1.7 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Bot config
BotAPIKey = 'xxx' # API Keythat you get from @BotFather
tg = xxx # Your id, you can get it by sending command /id to bot @TONTgIDBot
serverbotpath = '/home/<user>/serverbot' # User folder with this bot.
serverbotpathdb = '/home/<user>/serverbot/db' # User folder with bot database.
srvping = '1.1.1.1' # Ping test server
traceroutetest = '1.1.1.1' # Traceroute test server
# Server config
memloadalarm = 90 # RAM Utilization alarm starts at
pingcalarm = 50 # When ping will be more than X ms, you will get alarm.
cpuutilalarm = 99 # CPU Utilization alarm starts at
repeattimealarmsrv = [5,15,25,30,60,90,120,180,320, 640, 1280, 2560, 5120, 10240, 20480, 40960, 81920] # Notify every x second about high CPU, RAM load and ping
cfgAlertsNotificationsRam = 1 # RAM Monitoring + history
cfgAlertsNotificationsCPU = 1 # CPU Monitoring + history
cfgAlertsNotificationsping = 1 # RAM, Ping & CPU Monitopring
cfgmonitoringnetwork = 1 # Netowrk Monitopring
cfgmonitoringdiskio = 1 # Disk I/O Monitopring
# Near config
nearnetwork = 'betanet' # Choose your network - betanet/testnet/mainnet/guildnet
poolname = 'xxx' # Your pool name
syncalarm = 50 # Blocks diff for alarm
blocksdiff = 1 # Blocks produced VS expected alarm
chunksdiff = 1 # Chunks produced VS expected alarm
repeattimealarmnode = [5,15,25,30,60,90,120,180,320, 640, 1280, 2560, 5120, 10240, 20480, 40960, 81920] # Notify every x second about validator node issues
cfgAlertsNotificationsNode = 1 # Node pid monitoring
cfgAlertsNotificationsSync = 1 # Sync status monitoring
cfgAlertsNotificationsBlocks = 1 # Blocks produced VS expected monitoring
cfgAlertsNotificationsChunks = 1 # Chunks produced VS expected monitoring