Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What variables needed to replace in the zbxtg_settings.example.py? #154

Open
Deriuz opened this issue Jan 30, 2019 · 2 comments
Open

What variables needed to replace in the zbxtg_settings.example.py? #154

Deriuz opened this issue Jan 30, 2019 · 2 comments
Labels

Comments

@Deriuz
Copy link

Deriuz commented Jan 30, 2019

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/957508

google_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"

@ableev
Copy link
Owner

ableev commented Mar 16, 2019

@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.

@ableev
Copy link
Owner

ableev commented May 29, 2019

Maybe one day I'll comment every line

@ableev ableev added feature and removed question labels May 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants