zoukankan      html  css  js  c++  java
  • Zabbix客户端安装

    CentOS 7

    [root@localhost /]# rpm -ivh http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-agent-3.0.3-1.el7.x86_64.rpm
    [root@localhost /]# yum -y install vim zabbix-agent
    [root@localhost /]# vim /etc/zabbix/zabbix_agentd.conf

    修改如下条目:

    Server=172.16.1.186
    ServerActive=172.16.1.186
    Hostname=L-172.16.1.200
    

     在尾部添加如下代码(统计连接数):

    UserParameter=connection.tcp,ss -nat|grep ESTABLISHED|wc -l
    

    查看服务状态:

    [root@localhost /]# systemctl list-unit-files | grep zabbix-agent
    

    添加到启动项:

    [root@localhost /]# systemctl enable zabbix-agent.service
    

    启动服务:

    [root@localhost /]# systemctl start zabbix-agent.service
    

    查看端口运行状况:

    [root@yqtrack03 /]# ss -antup | grep zabbix_agent

    CentOS 6

    [root@localhost /]# rpm -ivh http://repo.zabbix.com/zabbix/3.0/rhel/6/x86_64/zabbix-agent-3.0.3-1.el6.x86_64.rpm
    [root@localhost /]# yum -y install vim zabbix-agent
    [root@localhost /]# vim /etc/zabbix/zabbix_agentd.conf

    修改如下条目:

    Server=172.16.1.186
    ServerActive=172.16.1.186
    Hostname=L-172.16.1.200
    

     在尾部添加如下代码(统计连接数):

    UserParameter=connection.tcp,netstat -nat|grep ESTABLISHED|wc -l
    

    查看服务状态:

    [root@localhost /]# chkconfig --list | grep zabbix-agent
    

    添加到启动项:

    [root@localhost /]# chkconfig zabbix-agent on
    

    启动服务:

    [root@localhost /]# service zabbix-agent start
    

    查看端口运行状况:

    [root@yqtrack03 /]# netstat -antup | grep zabbix-agen
    

    Windows:

    安装zabbix客户端服务

    C:	oolszabbixinzabbix_agentd.exe -c c:	oolszabbixconfzabbix_agentd.win.conf -i
    

    启动zabbix客户端服务

    C:	oolszabbixinzabbix_agentd.exe -c c:	oolszabbixconfzabbix_agentd.win.conf -s
    

    关闭zabbix客户端服务

    C:	oolszabbixinzabbix_agentd.exe -c c:	oolszabbixconfzabbix_agentd.win.conf -x
    

    卸载zabbix客户端服务

    C:	oolszabbixinzabbix_agentd.exe -c c:	oolszabbixconfzabbix_agentd.win.conf -d
  • 相关阅读:
    小程序入门
    页面滚动触底加载
    js取整
    【Codeforces 1389D】Segment Intersections
    【Codeforces 1385 E】Directing Edges
    【Codeforces 1369D】TediousLee
    【Codeforces Global Round 9 D】Replace by MEX
    【Codeforces Global Round 9 C】Element Extermination
    【Codeforces Round #639 (Div. 2) A】Puzzle Pieces
    【Codeforces Round #639 (Div. 2) B】Card Constructions
  • 原文地址:https://www.cnblogs.com/configure/p/5833658.html
Copyright © 2011-2022 走看看