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
     
  • 相关阅读:
    负数求余数 C 和 Matlab&Python 处理不一样
    [Matlab] 线性卷积&圆周卷积代码实现
    [Arduino] 驱动RC522 读取 UID例程
    [C++] Nested Radical Constant
    [Arduino] 学习总结小合集(更新ING)
    谐振电路的品质因素总结
    142. Linked List Cycle II
    664. Strange Printer
    188. Best Time to Buy and Sell Stock IV
    50. Pow(x, n)
  • 原文地址:https://www.cnblogs.com/wtfbk/p/4968850.html
Copyright © 2011-2022 走看看