-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.py.example
36 lines (30 loc) · 981 Bytes
/
config.py.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#======== MATRIX =============
matrix_server="https://matrix.org"
matrix_username="zabbix"
matrix_password="XXXX"
matrix_device_id="HSDNLQODDJ"
matrix_bot_logic_file = "matrix_bot_rules.json"
#======== ZABBIX =========
zabbix_server="http://zabbix.corp.net"
zabbix_user="zabbix_mon"
zabbix_passwd="XXXXXX"
#======== Wathcdog ========
# enable support systemd-watchdog. In this situation bot-proccess will be send events to systemd and if proccess fail -
# systemd will be restart service: https://pypi.org/project/systemd-watchdog/ https://www.lexpr.ru/node/513
use_watchdog=True
#========= logging: ===========
log_path_bot="matrix_zabbix_bot.log"
log_path_send_message="matrix_send_message.log"
# how match keep backup log files:
log_backup_count=30
# can be:
# 'S' - Seconds
# 'M' - Minutes
# 'H' - Hours
# 'D' - Days
# 'W0'-'W6' - Weekday (0=Monday)
# 'midnight' - Roll over at midnight
log_backup_when='midnight'
debug=True