· 6 years ago · Feb 04, 2020, 03:16 PM
1# -*- coding: utf-8 -*-
2
3tg_key = "xxxxxxx" # telegram bot api key
4
5zbx_tg_prefix = "zbxtg" # variable for separating text from script info
6zbx_tg_tmp_dir = "/var/tmp/" + zbx_tg_prefix # directory for saving caches, uids, cookies, etc.
7zbx_tg_signature = False
8
9zbx_tg_update_messages = True
10zbx_tg_matches = {
11 "problem": "PROBLEM: ",
12 "ok": "OK: "
13}
14
15zbx_server = "xxxxxxxxxxx" # zabbix server full url
16zbx_api_user = "xxxxxxxxx"
17zbx_api_pass = "xxxxxxxxxx"
18zbx_api_verify = True # True - do not ignore self signed certificates, False - ignore
19
20#zbx_server_version = 2 # for Zabbix 2.x version
21zbx_server_version = 3 # for Zabbix 3.x version, by default, not everyone updated to 4.x yet
22#zbx_server_version = 4 # for Zabbix 4.x version, default will be changed in the future with this
23
24zbx_basic_auth = False
25zbx_basic_auth_user = "zabbix"
26zbx_basic_auth_pass = "zabbix"
27
28proxy_to_zbx = None
29proxy_to_tg = None
30
31# proxy_to_zbx = "http://proxy.local:3128"
32# proxy_to_tg = "https://proxy.local:3128"
33
34# proxy_to_tg = "socks5://user1:password2@hostname:port" # socks5 with username and password
35# proxy_to_tg = "socks5://hostname:port" # socks5 without username and password
36# proxy_to_tg = "socks5h://hostname:port" # hostname resolution on SOCKS proxy..
37 # This helps when internet provider alter DNS queries.
38 # Found here: https://stackoverflow.com/a/43266186/957508
39
40google_maps_api_key = None # get your key, see https://developers.google.com/maps/documentation/geocoding/intro
41
42zbx_tg_daemon_enabled = False
43zbx_tg_daemon_enabled_ids = [6931850, ]
44zbx_tg_daemon_enabled_users = ["ableev", ]
45zbx_tg_daemon_enabled_chats = ["Zabbix in Telegram Script", ]
46
47zbx_db_host = "localhost"
48zbx_db_database = "zabbix"
49zbx_db_user = "zbxtg"
50zbx_db_password = "zbxtg"
51
52
53emoji_map = {
54 "OK": "✅",
55 "PROBLEM": "❗",
56 "info": "ℹ ️",
57 "WARNING": "⚠ ️",
58 "DISASTER": "❌",
59 "bomb": "",
60 "fire": "",
61 "hankey": "",
62}