找回密码
 立即注册
查看: 307|回复: 0

[Agent配置] Linux/Unix 下Agent卸载重装

[复制链接]
发表于 2023-10-19 17:22:21 | 显示全部楼层 |阅读模式 来自 北京
一、Agent卸载
1、查看agent进程
  1. [root@bogon ~]# ps -elf | grep Agent
复制代码
图片.png
2、kill掉agent进程,需要将agent及其守护进程都kill掉
  1. [root@bogon ~]# kill -9 7748
  2. [root@bogon ~]# kill -9 7755
复制代码
3、进程kill后直接删除agent安装目录
  1. [root@bogon ~]# cd /opt/
  2. [root@bogon opt]# ls
  3. AgentLinux   AgentLinux-jre64.tar   rh
  4. [root@bogon opt]# rm -rf AgentLinux
  5. [root@bogon opt]# ls
  6. [root@bogon opt]# AgentLinux-jre64.tar   rh
  7. [root@bogon opt]# ps -elf | grep Agent
复制代码
图片.png





二、Agent安装
1、将AgentLinux-jre64.tar安装包放至/opt下(agent安装包可在/opt/pigms/bsm-basic/webapps/download/agentx/AgentLinux-jre64.tar目录下下载)
2、解压安装包
  1. [root@localhost ~]# cd /opt/
  2. [root@localhost opt]# tar -xvf  AgentLinux-jre64.tar
复制代码
3、修改configure.properties配置文件,修改agentserver ip为pigoss监控IP,如果被监控机的ip不唯一,需要修改localIP为被监控机的IP
  1. [root@localhost ~]# cd /opt/AgentLinux/conf
  2. [root@localhost conf]# vi configure.properties
复制代码
commServerIp=pigoss的监控IP
4、修改wrapper.conf配置文件,修改wrapper.java.command,改成agent安装目录下的/$Agent_Home/jre/bin/java路径
  1. [root@localhost conf]# vi /opt/AgentLinux/conf/wrapper.conf
复制代码
wrapper.java.command=/$Agent_Home/jre/bin/java路径
5、重启agent服务
  1. [root@localhost conf]# cd /opt/AgentLinux
  2. [root@localhost AgentLinux]# ./AgentRestartService.sh
  3. [root@localhost AgentLinux]# ps -elf | grep Agent
复制代码
图片.png

至此,重装完成。







运维监控系统PIGOSS BSM :服务器、小型机、网络设备、操作系统、数据库、存储、中间件的全方位监控。官网 http://www.netistate.com
*滑块验证:
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

 
 
公告:
限时免费一对一技术支持服务现已开放!
点击了解详情

官方技术客服微信

小黑屋|PIGOSS产品论坛 ( 京ICP备09033901号-3|京公网安备11010802043305号 )

GMT+8, 2024-9-8 10:31 , Processed in 0.048658 second(s), 21 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表