ableev / ableev/Zabbix-in-Telegram

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

Open
#154 2 comments 0 reactions 0 assignees View on GitHub
feature
Dominant language
Python
Stars
815
Forks
236
PR merge metrics
No merged PRs in 30d

Description

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"

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.