Files
remote-host-agent/config.sh.example
T

19 lines
605 B
Plaintext
Raw Normal View History

# ============================================================
# remote-host-agent 机器B端配置
# 复制为 config.sh 并填写后,与 agent.sh 放在同一目录
# ============================================================
# 机器A 的 collector 服务地址(A 有固定 IP/域名)
SERVER="http://121.40.164.32:16018"
# 认证 token(在机器A 执行: cat data/token.txt 获取)
TOKEN=""
# 本机标识(默认取 hostname,建议设为有意义的名称如 web-server-01
HOST_NAME="$(hostname)"
# 上报间隔(秒)
INTERVAL=10
# 命令执行超时(秒)
CMD_TIMEOUT=30