Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@ops:/opt/Zabbix-in-Telegram# cat /usr/lib/zabbix/alertscripts/zbxtg_settings.py
- # -*- coding: utf-8 -*-
- tg_key = "%here was a key%" # telegram bot api key
- zbx_tg_prefix = "prj" # 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://zabbix.myproject.com/" # zabbix server full url
- zbx_api_user = "api"
- zbx_api_pass = "p%...%u"
- zbx_api_verify = False # 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
- google_maps_api_key = "A%...%I" # get your key, see https://developers.google.com/maps/documentation/geocoding/intro
- zbx_tg_daemon_enabled = False
- zbx_tg_daemon_enabled_ids = [1%...%6, 6%...%2, ]
- zbx_tg_daemon_enabled_users = ["myusername", ]
- zbx_tg_daemon_enabled_chats = ["targetgroup", ]
- zbx_db_host = "localhost"
- zbx_db_database = "zabbix"
- zbx_db_user = "zbxtg"
- zbx_db_password = "zbxtg"
- emoji_map = {
- "OK": "✅",
- "PROBLEM": "❗",
- "info": "ℹ️",
- "WARNING": "⚠️",
- "DISASTER": "❌",
- "bomb": "💣",
- "fire": "🔥",
- "hankey": "💩",
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement