Zabbix-in-Telegram
Zabbix-in-Telegram copied to clipboard
What variables needed to replace in the zbxtg_settings.example.py?
Hi guys,
Sorry for being newbie, I would like to ask what variables I need to change in zbxtg_settings.example.py?
Thanks in advance.
-- coding: utf-8 --
tg_key = "XYZ" # telegram bot api key
zbx_tg_prefix = "zbxtg" # variable for separating text from script info zbx_tg_tmp_dir = "/var/tmp/" + zbx_tg_prefix # directory for saving caches, uids, cookies, etc. zbx_tg_signature = False
zbx_tg_update_messages = True zbx_tg_matches = { "problem": "PROBLEM: ", "ok": "OK: " }
zbx_server = "http://127.0.0.1/zabbix/" # zabbix server full url zbx_api_user = "api" zbx_api_pass = "api" zbx_api_verify = True # True - do not ignore self signed certificates, False - ignore
zbx_basic_auth = False zbx_basic_auth_user = "zabbix" zbx_basic_auth_pass = "zabbix"
proxy_to_zbx = None proxy_to_tg = None
proxy_to_zbx = "http://proxy.local:3128"
proxy_to_tg = "https://proxy.local:3128"
proxy_to_tg = "socks5://user1:password2@hostname:port" # socks5 with username and password
proxy_to_tg = "socks5://hostname:port" # socks5 without username and password
proxy_to_tg = "socks5h://hostname:port" # hostname resolution on SOCKS proxy.
# This helps when internet provider alter DNS queries. # Found here: https://stackoverflow.com/a/43266186/957508google_maps_api_key = None # get your key, see https://developers.google.com/maps/documentation/geocoding/intro
zbx_tg_daemon_enabled = False zbx_tg_daemon_enabled_ids = [6931850, ] zbx_tg_daemon_enabled_users = ["ableev", ] zbx_tg_daemon_enabled_chats = ["Zabbix in Telegram Script", ]
zbx_db_host = "localhost" zbx_db_database = "zabbix" zbx_db_user = "zbxtg" zbx_db_password = "zbxtg"
@Deriuz I don't understand. It's quite obvious by the way, all you need is to read and think.
I'll try to fill the example file with more comments.
Maybe one day I'll comment every line