当前位置首页 > Ubuntu知识

zabbix系列(六)zabbix添加对ubuntu系统的监控

阅读次数:307 次  来源:admin  发布时间:

在ubuntu os上安装agent,使用如下命令:

wget http://mirrors.aliyun.com/zabbix/zabbix/3.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.0-1%2btrusty_all.de

dpkg -i zabbix-release_3.0-1+trusty_all.de

udo apt-get -y install zabbix-agent

修改配置,可以直接在命令行执行:

# 定义服务器地址

ZABBIX_SERVERIP=zabbix.chinasoft.com

# 修改服务器地址

ed -i "s#Server=127.0.0.1#Server=$ZABBIX_SERVERIP#g" /etc/zabbix/zabbix_agentd.conf

ed -i "s#ServerActive=127.0.0.1#ServerActive=$ZABBIX_SERVERIP#g" /etc/zabbix/zabbix_agentd.conf

# 修改本机hostname

ed -i "s#Hostname=Zabbix server#Hostname=`hostname`#g" /etc/zabbix/zabbix_agentd.conf

# 修改本机zabbix-agent监听端口

ed -i "s/# ListenPort=10050/ListenPort=20050/g" /etc/zabbix/zabbix_agentd.conf

重启服务

sudo service zabbix-agent restart
上一篇:Debian系统网卡调试出问题,无线网卡提示devicenotmanaged如何解决?
下一篇:Debian使用vim鼠标右键无法粘贴问题解决