code refactor
This commit is contained in:
parent
f16315328b
commit
107ad572f8
|
@ -4,9 +4,9 @@ logger:
|
||||||
keepHours: 24
|
keepHours: 24
|
||||||
|
|
||||||
enable:
|
enable:
|
||||||
mon: false
|
mon: true
|
||||||
job: false
|
job: true
|
||||||
report: false
|
report: true
|
||||||
|
|
||||||
job:
|
job:
|
||||||
metadir: ./meta
|
metadir: ./meta
|
||||||
|
@ -22,11 +22,11 @@ report:
|
||||||
# physical:物理机,virtual:虚拟机,container:容器,switch:交换机
|
# physical:物理机,virtual:虚拟机,container:容器,switch:交换机
|
||||||
cate: physical
|
cate: physical
|
||||||
|
|
||||||
# 使用哪个字段作为唯一KEY,即作为where条件更新对应记录
|
# 使用哪个字段作为唯一KEY,即作为where条件更新对应记录,一般使用sn或ip
|
||||||
# 一般使用sn,虚机的话把uuid当做sn即可,不同IaaS平台获取方式可能不同
|
uniqkey: ip
|
||||||
uniqkey: sn
|
|
||||||
|
|
||||||
# 如果是虚拟机,应该是获取uuid
|
# 如果是虚拟机,应该是获取uuid
|
||||||
|
# curl -s http://169.254.169.254/a/meta-data/instance-id
|
||||||
sn: dmidecode -s system-serial-number | tail -n 1
|
sn: dmidecode -s system-serial-number | tail -n 1
|
||||||
|
|
||||||
fields:
|
fields:
|
||||||
|
@ -37,8 +37,8 @@ report:
|
||||||
sys:
|
sys:
|
||||||
# timeout in ms
|
# timeout in ms
|
||||||
# interval in second
|
# interval in second
|
||||||
timeout: 1000
|
timeout: 5000
|
||||||
interval: 20
|
interval: 30
|
||||||
ifacePrefix:
|
ifacePrefix:
|
||||||
- eth
|
- eth
|
||||||
- em
|
- em
|
||||||
|
|
|
@ -8,9 +8,3 @@
|
||||||
cn: 主机设备删除
|
cn: 主机设备删除
|
||||||
- en: ams_host_modify
|
- en: ams_host_modify
|
||||||
cn: 主机设备信息修改
|
cn: 主机设备信息修改
|
||||||
- title: 网络设备
|
|
||||||
ops:
|
|
||||||
- en: ams_netware_mgr_menu
|
|
||||||
cn: 网络设备管理菜单
|
|
||||||
- en: ams_netware_modify
|
|
||||||
cn: 网络设备信息修改
|
|
|
@ -63,4 +63,4 @@
|
||||||
- title: 告警历史
|
- title: 告警历史
|
||||||
ops:
|
ops:
|
||||||
- en: mon_event_write
|
- en: mon_event_write
|
||||||
cn: 告警历史屏蔽、认领、忽略
|
cn: 告警历史屏蔽、认领、忽略
|
||||||
|
|
10
etc/rdb.yml
10
etc/rdb.yml
|
@ -9,16 +9,14 @@ http:
|
||||||
cookieName: ecmc-user
|
cookieName: ecmc-user
|
||||||
|
|
||||||
sso:
|
sso:
|
||||||
enable: true
|
enable: false
|
||||||
ssoAddr: "http://10.86.76.13:8071"
|
ssoAddr: "http://10.1.2.3:8071"
|
||||||
redirectURL: "http://10.86.76.13:8072/api/rdb/auth/callback"
|
redirectURL: "http://10.1.2.3:8072/api/rdb/auth/callback"
|
||||||
clientId: ""
|
clientId: ""
|
||||||
clientSecret: ""
|
clientSecret: ""
|
||||||
apiKey: ""
|
apiKey: ""
|
||||||
|
|
||||||
tokens:
|
tokens:
|
||||||
- uic-builtin-token
|
|
||||||
- hsp-builtin-token
|
|
||||||
- rdb-builtin-token
|
- rdb-builtin-token
|
||||||
|
|
||||||
# for ldap authorization
|
# for ldap authorization
|
||||||
|
@ -44,7 +42,7 @@ ldap:
|
||||||
|
|
||||||
# as queue for sender
|
# as queue for sender
|
||||||
redis:
|
redis:
|
||||||
enable: false
|
enable: true
|
||||||
addr: 127.0.0.1:6379
|
addr: 127.0.0.1:6379
|
||||||
pass: ""
|
pass: ""
|
||||||
idle: 5
|
idle: 5
|
||||||
|
|
Loading…
Reference in New Issue