This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
nms-nmsdoc/nmsclient/NC_install/conf/myconfig.properties
2019-04-02 09:52:52 +08:00

91 lines
3.9 KiB
Properties
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#-------------------需要修改配置Local Path-----------------
# 文件存放总路径不要放于NmsClient部署目录下根据盘符相应修改
local.data.path=
# 可删范围只有在此路径下的文件Agent才可以删除多个路径逗号隔开
common.del.path.include=
# 禁删范围Agent可删路径下不能删除的路径多个路径逗号隔开若是禁删配置有单个文件需相应修改代码
common.del.path.exclude=
#------------------------SSLSocket----------------------
# DataController部署的主机IP需对应修改
server_host=
# DataController端的监听端口用来与Server通信
server_port = 60702
# NMSClient自己的监听端口用来接收Server发送的信息
agent_port = 60701
# SSL通信此值不能更改
local.ssl.keys=./bin/cer/client_ks
local.ssl.trust=./bin/cer/client_ts
local.ssl.path=./bin/cer
# socket通信超时时间
socket.timeout.minutes=30
#------------------------Common------------------------
# 写文件与通信流默认编码
charset =UTF-8
# 删除日志文件,单位天,默认保存七天,可根据情况修改
common.del.log.days=7
# 删除数据文件(包括监测数据和任务相关文件)单位小时默认保存24小时可根据情况修改
common.del.data.hours=24
# 删除升级时推送过来的文件单位天默认保存90天可根据情况修改
common.del.upgradefile.days=90
# 删除临时文件单位天默认保存2天可根据情况修改
common.del.temp.days=2
# 上传数据循环间隔默认5分钟上传一次可根据情况修改【数据由Server主动收集该属性 废弃】
common.upload.data.minutes=5
# 定时清理内存中已完成的任务时间间隔单位小时默认2小时
common.task.clear.hours=2
#------------------------ThreadPool------------------------
# Socket通讯线程池最大个数
common.thread.socket.size=10
# 定时执行线程池最大个数
common.thread.schedule.size=15
#------------------------Compress--------------------------
# 文件累积达到一定数量压缩打包上传默认1000个可修改
common.zip.min.size=1000
# 压缩打包最多包含文件个数默认2000个可修改
common.zip.max.size=2000
# 回传文件累积达到一定数量压缩打包上传默认10个可修改
common.max.return.size=10
#-------------------------Local Path-------------------------
# 自己写的脚本存放路径,不需修改
local.script.path = ./shell
# 监测配置基本信息文件后缀
local.config.file.suffix = .cfg
# NmsClient启动后PID存放文件需与启动脚本中一致建议不修改
local.agent.pidfile = ./temp/agentPid.temp
#-----------------系统预定义的监测类型(不需修改)----------------
sys.check.type.cpu=cpu
sys.check.type.disk=disk
sys.check.type.memory=memory
sys.check.type.net=net
sys.check.type.systemdate=systemdate
sys.check.type.process=process
sys.check.type.process.nmsagent=nmsclient
sys.check.type.systeminfo=systeminfo
#------------------Debug调试使用(不需修改)---------------------
debug.init.task.flag = 0
debug.plugin.flag = 0
debug.sysdetect.flag = 0
#--【数据由Server主动收集该属性 废弃】
debug.uploaddata.flag = 0
debug.alarm.flag = 0
debug.delfile.flag = 0
#--【数据由Server主动收集该属性 废弃】
debug.taskresult.flag = 0
#--【数据由Server主动收集该属性 废弃】
debug.taskreturn.flag =0
active.alarm.start=true
#监测数据设置告警时对于指定多个标识符如多个盘符、多个CPU、多个网卡的分隔符
alarm.set.marker.separator=|
config.update.flag = 5
#监测数据主动上报,0:启用1不启用
data.send.thread.flag=0
#主动数据上报 ip不填默认为 server_host 的值
#data.send.thread.host=
#主动数据上报 port,默认9527
data.send.thread.port=9527
#主动数据上报间隔 interval单位 s默认为 10s
data.send.thread.interval=10