Advertisement
Guest User

zbxtg config

a guest
Oct 11th, 2018
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.65 KB | None | 0 0
  1. root@ops:/opt/Zabbix-in-Telegram# cat /usr/lib/zabbix/alertscripts/zbxtg_settings.py
  2. # -*- coding: utf-8 -*-
  3.  
  4. tg_key = "%here was a key%" # telegram bot api key
  5.  
  6. zbx_tg_prefix = "prj" # variable for separating text from script info
  7. zbx_tg_tmp_dir = "/var/tmp/" + zbx_tg_prefix # directory for saving caches, uids, cookies, etc.
  8. zbx_tg_signature = False
  9.  
  10. zbx_tg_update_messages = True
  11. zbx_tg_matches = {
  12. "problem": "PROBLEM: ",
  13. "ok": "OK: "
  14. }
  15.  
  16. zbx_server = "http://zabbix.myproject.com/" # zabbix server full url
  17. zbx_api_user = "api"
  18. zbx_api_pass = "p%...%u"
  19. zbx_api_verify = False # True - do not ignore self signed certificates, False - ignore
  20.  
  21. zbx_basic_auth = False
  22. zbx_basic_auth_user = "zabbix"
  23. zbx_basic_auth_pass = "zabbix"
  24.  
  25. proxy_to_zbx = None
  26. proxy_to_tg = None
  27.  
  28. # proxy_to_zbx = "http://proxy.local:3128"
  29. # proxy_to_tg = "https://proxy.local:3128"
  30.  
  31. # proxy_to_tg = "socks5://user1:password2@hostname:port" # socks5 with username and password
  32. # proxy_to_tg = "socks5://hostname:port" # socks5 without username and password
  33.  
  34. google_maps_api_key = "A%...%I" # get your key, see https://developers.google.com/maps/documentation/geocoding/intro
  35.  
  36. zbx_tg_daemon_enabled = False
  37. zbx_tg_daemon_enabled_ids = [1%...%6, 6%...%2, ]
  38. zbx_tg_daemon_enabled_users = ["myusername", ]
  39. zbx_tg_daemon_enabled_chats = ["targetgroup", ]
  40.  
  41. zbx_db_host = "localhost"
  42. zbx_db_database = "zabbix"
  43. zbx_db_user = "zbxtg"
  44. zbx_db_password = "zbxtg"
  45.  
  46.  
  47. emoji_map = {
  48. "OK": "✅",
  49. "PROBLEM": "❗",
  50. "info": "ℹ️",
  51. "WARNING": "⚠️",
  52. "DISASTER": "❌",
  53. "bomb": "💣",
  54. "fire": "🔥",
  55. "hankey": "💩",
  56. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement