-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py.sample
89 lines (79 loc) · 2.75 KB
/
config.py.sample
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# 上报的数据库源
# REPORT_DB_URLS = "mysql+pymysql://vm:abcd1234@192.168.66.31:3308/vm"
REPORT_DB_URLS = "postgresql+psycopg2://zabbix:zabbix@10.10.31.153:5432/zabbix"
# 是否需要将新创建主机加入维护模式
ZBX_MAINTENANCE_FOR_CREATED = True
# vCenter 的的认证配置
VCCONFIG = {
"Testenv-A": {
"host": "10.10.10.39",
"user": "",
"pwd": ""
},
}
# Zabbix API 登录信息
ZBX_HOST = "http://10.10.32.35/zabbix/api_jsonrpc.php"
ZBX_LOGIN_ARGS = {
"user": "Admin",
"password": "zabbix",
}
# 每个 VC 对应的 zabbix proxy 成员
ZBX_PROXY_MEMBER = {
"Testenv-A": ["10.10.32.44"],
}
# 每个 VC 对应的 zabbix proxy 成员
ZBX_PROXY_VC_MAPPING = {v["host"]: k for k, v in VCCONFIG.items()}
# 操作系统简称类别命名
ZBX_SYSTYPE_WIN = "windows"
ZBX_SYSTYPE_LNX = "linux"
# 将虚拟机的操作系统对应各自在 zabbix 上的主机组
ZBX_SYS_GROUP_MAPPING = {
ZBX_SYSTYPE_WIN: ["Windows服务器"],
ZBX_SYSTYPE_LNX: ["Linux服务器"]
}
# zabbix 目前支持的 windows 操作系统
ZBX_SYSPREFIX_WIN = (
"Microsoft Windows 10 (32 位)",
"Microsoft Windows 10 (64 位)",
"Microsoft Windows 2000",
"Microsoft Windows 2000 Professional",
"Microsoft Windows 7 (32 位)",
"Microsoft Windows 7 (64 位)",
"Microsoft Windows Server 2003 (32 位)",
"Microsoft Windows Server 2003 (64 位)",
"Microsoft Windows Server 2003 Standard (32 位)",
"Microsoft Windows Server 2008 (32 位)",
"Microsoft Windows Server 2008 (64 位)",
"Microsoft Windows Server 2008 R2 (64 位)",
"Microsoft Windows Server 2008 R2 (64-bit)",
"Microsoft Windows Server 2012 (64 位)",
"Microsoft Windows Server 2016 (64 位)",
"Microsoft Windows Server 2016 或更高版本 (64 位)",
"Microsoft Windows XP Professional (32 位)",
)
# zabbix 目前支持的 Linux 操作系统
ZBX_SYSPREFIX_LNX = (
"CentOS 4/5 或更高版本 (32 位)",
"CentOS 4/5 或更高版本 (64 位)",
"CentOS 4/5/6 (32 位)",
"CentOS 4/5/6 (32-bit)",
"CentOS 4/5/6/7 (64 位)",
"CoreOS Linux (64 位)",
"Other 3.x or later Linux (64-bit)",
"Red Hat Enterprise Linux 3 (32 位)",
"Red Hat Enterprise Linux 4 (32 位)",
"Red Hat Enterprise Linux 5 (32 位)",
"Red Hat Enterprise Linux 5 (64 位)",
"Red Hat Enterprise Linux 6 (32 位)",
"Red Hat Enterprise Linux 6 (64 位)",
"Red Hat Enterprise Linux 7 (64 位)",
"Red Hat Enterprise Linux 7 (64-bit)",
"RHEL-server-7.2",
"SUSE Linux Enterprise 10 (32 位)",
"SUSE Linux Enterprise 11 (64 位)",
)
# zabbix 中根据添加的主机组来指定配置模板
ZBX_TEMPLATE_SYS_MAPPING = {
ZBX_SYSTYPE_WIN: ["Template OS Windows"],
ZBX_SYSTYPE_LNX: ["Template OS Linux", "APP Monitor New"]
}