zoukankan      html  css  js  c++  java
  • suse11sp3、suse12 安装 zabbix-agent

      1、添加repo源 

    suse11SP3
    zypper addrepo http://download.opensuse.org/repositories/server:/monitoring/SLE_11_SP3/ server_monitoring
    zypper update
    suse12
    zypper addrepo http://download.opensuse.org/repositories/server:/monitoring/SLE_12/ server_monitoring
    zypper update

    2、安装zabbix-agent
    zypper install zabbix-agent

    3、编辑/etc/zabbix/zabbix-agentd.conf文件
    PidFile=/run/zabbix/zabbix_agentd.pid
    LogFile=/var/log/zabbix/zabbix_agentd.log
    LogFileSize=5 (设置zabbix日志当到达5M时自动回滚,0表示disabled)
    Server=zabbix (zabbix server端的ip或主机名)
    ListenPort=10050
    ServerActive=zabbix (zabbix server端的ip或主机名,在这里可以改变端口号)
    Hostname=zabbix_agent
    Timeout=30
    AllowRoot=1 (设置是否允许以root用户启动,值有1和0,0表示禁止以root用户启动)
    UnsafeUserParameters=1 (设置是否允许自定义监控,值有1和0,0表示disable)
    EnableRemoteCommands=1 (设置是否允许来自zabbix server端的远程命令,值有1和0,0表示不允许)
    LogRemoteCommands=1 (设置是否允许日志文件以warning级别记录来自zabbix server端的远程命令,值有1和0,0表示disabled)

    4、启动zabbix-agentd服务并加入开机自启动
    suse11sp3:
    service zabbix-agentd start
    chkconfig zabbix-agentd on

    suse12:
    systemctl start zabbix-agentd
    systemctl enable zabbix-agentd
     
  • 相关阅读:
    linux集群实施与部署-----Nginx
    以太网链路聚合简单配置
    配置基于源地址的策略路由
    shell --Day 6
    ps初学--Day 1部分工具使用
    shell --Day 5
    shell ——Day 4
    shell——Day3
    shell——Day 2
    初学shell——Day1
  • 原文地址:https://www.cnblogs.com/wtfbk/p/4968850.html
Copyright © 2011-2022 走看看