forked from syxolk/telegram-server-monitor
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig.template.py
44 lines (31 loc) · 1.19 KB
/
config.template.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
33
34
35
36
37
38
39
40
41
42
43
44
# Rename this file to config.py and insert your token and password
# Name of the Telgram bot (ending with 'bot', without leading '@')
NAME = ""
# Token of your Telegram bot (Given to you by @BotFather)
TOKEN = ""
# Password you need in order to communiate with the bot
# Must be used like "/start <password>"
PASSWORD = ""
# Long polling timeout in seconds
TIMEOUT = 60 * 5
# Initial timeout for retry after ConnectionError from the server
# timeout will be multiplied by 2 every retry to avoid annoing behavior
SERVER_RETRY_TIMEOUT = 10
# The bot will send a push message if any of the conditions succeeds
ENABLE_NOTIFICATIONS = True
# Number of seconds between push messages
NOTIFCATION_INTERVAL = 60
# Maximum cpu percent considered to be normal
NOTIFY_CPU_PERCENT = 50
# Maximum memory percent considered to be normal
NOTIFY_RAM_PERCENT = 50
# Maximum pids used for all processes and threads in precent
NOTIFY_PID_PERCENT = 50
# Maximum FDs used in percent
NOTIFY_FD_PERCENT = 50
# List all disks. When set to False, python
# tries to avoid listing "non physical devices"
ALL_DISKS = False
# DO NOT EDIT BELOW THIS LINE
# ===========================
API_URL = "https://api.telegram.org/bot" + TOKEN + "/"