code refactor

This commit is contained in:
Ulric Qin 2020-09-26 22:21:23 +08:00
parent f16315328b
commit 107ad572f8
4 changed files with 13 additions and 21 deletions

View File

@ -4,9 +4,9 @@ logger:
keepHours: 24
enable:
mon: false
job: false
report: false
mon: true
job: true
report: true
job:
metadir: ./meta
@ -22,11 +22,11 @@ report:
# physical物理机virtual虚拟机container容器switch交换机
cate: physical
# 使用哪个字段作为唯一KEY即作为where条件更新对应记录
# 一般使用sn虚机的话把uuid当做sn即可不同IaaS平台获取方式可能不同
uniqkey: sn
# 使用哪个字段作为唯一KEY即作为where条件更新对应记录一般使用sn或ip
uniqkey: ip
# 如果是虚拟机应该是获取uuid
# curl -s http://169.254.169.254/a/meta-data/instance-id
sn: dmidecode -s system-serial-number | tail -n 1
fields:
@ -37,8 +37,8 @@ report:
sys:
# timeout in ms
# interval in second
timeout: 1000
interval: 20
timeout: 5000
interval: 30
ifacePrefix:
- eth
- em

View File

@ -8,9 +8,3 @@
cn: 主机设备删除
- en: ams_host_modify
cn: 主机设备信息修改
- title: 网络设备
ops:
- en: ams_netware_mgr_menu
cn: 网络设备管理菜单
- en: ams_netware_modify
cn: 网络设备信息修改

View File

@ -63,4 +63,4 @@
- title: 告警历史
ops:
- en: mon_event_write
cn: 告警历史屏蔽、认领、忽略
cn: 告警历史屏蔽、认领、忽略

View File

@ -9,16 +9,14 @@ http:
cookieName: ecmc-user
sso:
enable: true
ssoAddr: "http://10.86.76.13:8071"
redirectURL: "http://10.86.76.13:8072/api/rdb/auth/callback"
enable: false
ssoAddr: "http://10.1.2.3:8071"
redirectURL: "http://10.1.2.3:8072/api/rdb/auth/callback"
clientId: ""
clientSecret: ""
apiKey: ""
tokens:
- uic-builtin-token
- hsp-builtin-token
- rdb-builtin-token
# for ldap authorization
@ -44,7 +42,7 @@ ldap:
# as queue for sender
redis:
enable: false
enable: true
addr: 127.0.0.1:6379
pass: ""
idle: 5