更改主机名为test3

[root@localhost ~]# cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=test3

关闭selinux

[root@localhost ~]# sed -i 's#SELINUX=enforcing#SELINUX=disabled#g' /etc/selinux/config

重启使上面更改的配置生效

[root@localhost ~]# reboot

关闭防火墙

[root@test3 /]# /etc/init.d/iptables stop
iptables: Setting chains to policy ACCEPT: filter [ OK ]
iptables: Flushing firewall rules: [ OK ]
iptables: Unloading modules: [ OK ]

安装需要的包   # lrzsz文件上传工具

[root@test3 ~]# yum -y install gcc lrzsz

上传zabbix安装包

[root@test3 /]# ls | grep zabbix-3.0.

zabbix-3.0..tar.gz

创建zabbix用户

[root@test3 /]# groupadd zabbix
[root@test3 /]# useradd -g zabbix -s /sbin/nologin zabbix

解压到当前目录

[root@test3 /]# tar zxvf zabbix-3.0..tar.gz
[root@test3 /]# cd /zabbix-3.0.
[root@test3 zabbix-3.0.]# pwd
/zabbix-3.0.

编译、安装

[root@test3 zabbix-3.0.]# ./configure --prefix=/usr/local/zabbix --enable-agent
Enable Java gateway: no LDAP support: no
IPv6 support: no ***********************************************************
* Now run 'make install' *
* *
* Thank you for using Zabbix! *
* <http://www.zabbix.com> *
***********************************************************
[root@test3 zabbix-3.0.]# make install

查找zabbix_agentd.conf

[root@test3 etc]# find / -name zabbix_agentd.conf
/usr/local/zabbix/etc/zabbix_agentd.conf
/zabbix-3.0./conf/zabbix_agentd.conf

修改配置文件 /usr/local/zabbix/etc/zabbix_agentd.conf

[root@test3 zabbix-3.0.]#  cd /usr/local/zabbix/etc/
[root@test3 etc]# pwd
/usr/local/zabbix/etc
[root@test3 etc]# ls
zabbix_agentd.conf zabbix_agentd.conf.d
[root@test3 etc]# sed -i 's#Server=127.0.0.1#Server=192.168.161.132#g' zabbix_agentd.conf
[root@test3 etc]# sed -i 's#ServerActive=127.0.0.1#ServerActive=192.169.161.132#g' zabbix_agentd.conf
[root@test3 etc]# sed -i 's#Hostname=Zabbix server#Hostname=test3#g' zabbix_agentd.conf

开机启动

[root@test3 etc]# cp /zabbix-3.0./misc/init.d/fedora/core/zabbix_agentd /etc/init.d/zabbix_agentd
[root@test3 etc]# chkconfig --add /etc/init.d/zabbix_agentd
[root@test3 etc]# chkconfig zabbix_agentd on
[root@test3 etc]# sed -i 's#BASEDIR=/usr/local#BASEDIR=/usr/local/zabbix#g' /etc/init.d/zabbix_agentd
[root@test3 etc]# /etc/init.d/zabbix_agentd start
Starting zabbix_agentd: [ OK ]
[root@test3 etc]# netstat -anpt | grep ''
tcp 0.0.0.0: 0.0.0.0:* LISTEN /zabbix_agentd

zabbix 添加用户web页面: 配置——主机——创建主机

模板——选择——添加——添加

日志文件

[root@test3 /]# find / -name zabbix_agentd.log
/tmp/zabbix_agentd.log

CentOS 6.5 3.0.4安装agentd的更多相关文章

  1. Centos 7 nginx-1.12.0编译安装

    参考:http://www.nginx.cn/install 也不知道我的系统是否有这些依赖包,试试吧?缺少哪些我就装哪些吧,多踏点坑总是能学到点东西的.   获取nginx包 http://ngin ...

  2. centos php7.1 redis4.0.9 安装扩展phpredis

    1.扩展列表 https://github.com/phpredis/phpredis/releases [root@VM_27_0_centos server]# ls data lib.pl my ...

  3. CentOS 7.0编译安装Nginx1.6.0+MySQL5.6.19+PHP5.5.14

    准备篇: CentOS 7.0系统安装配置图解教程 http://www.osyunwei.com/archives/7829.html 一.配置防火墙,开启80端口.3306端口 CentOS 7. ...

  4. centos 7.0 编译安装php 7.0.3

    php下载页面 http://cn2.php.net/downloads.php 7.0.3多地区下载页面 http://cn2.php.net/get/php-7.0.3.tar.gz/from/a ...

  5. zabbix 3.0快速安装简介(centos 7)

    zabbix快速安装 系统版本:centos 7 通过yum方法安装Zabbix3.0,安装源为阿里云 yum源配置 rpm -ivh http://mirrors.aliyun.com/zabbix ...

  6. CentOS 6.0下面安装JDK7

    下载地址:http://www.oracle.com/technetwork/java/javase/downloads/java-se-jdk-7-download-432154.html 1. 安 ...

  7. CentOS 6.0 图文安装教程

    CentOS 6.0下载地址:wget http://ftp.riken.jp/Linux/centos/6.0/isos/i386/CentOS-6.0-i386-bin-DVD.iso 下边就是安 ...

  8. CentOS 7.0编译安装Nginx1.6.0+MySQL5.6.19+PHP5.5.14方法分享

    一.配置防火墙,开启80端口.3306端口 CentOS 7.0默认使用的是firewall作为防火墙,这里改为iptables防火墙. 1.关闭firewall: systemctl stop fi ...

  9. Centos 7.0 下安装 Zabbix server 3.0服务器的安装及 监控主机的加入(1)

    一.本系列分为6部分 1.Centos 7.0 下安装 Zabbix server 3.0服务器的安装及 监控主机的加入 2.Centos 6.5 下安装 Zabbix server 3.0服务器的安 ...

随机推荐

  1. vim配置有竖对齐线

    https://github.com/lvxiaobo616/vim-indent-guides 参考 https://github.com/Yggdroot/indentLine 先安装 Yggdr ...

  2. shell 中 &&和||的方法

    Shell && 和 || shell 在执行某个命令的时候,会返回一个返回值,该返回值保存在 shell 变量 $? 中.当 $? == 0 时,表示执行成功:当 $? == 1 时 ...

  3. Knockoutjs快速入门(经典)

    Knockoutjs是一个JavaScript实现的MVVM框架.主要有如下几个功能: 1. Declarative bindings 2. Observables and dependency tr ...

  4. css中 Span 元素的 width 属性无效果原因及多种解决方案

    先运行下程序看下: <span style='width:300px;'>123</span> 输出:123 可以看到 span会自动根据包含的内容来变化宽度 这是因为:对于内 ...

  5. cocos2d 3.6 win7下的配置

    我搭建cocos2.6的开发环境需要安装工具包括: 1.Visual Studio 2012(由于不兼容win7,需要安装Update 4)和虚拟光驱daemon tool,虚拟光驱的下载地址:htt ...

  6. C#------对SQLServer进行简单的增,删,改,查

    EF中的操作转载: http://www.cnblogs.com/mcgrady/archive/2015/03/21/4355282.html PSContext db = new PSContex ...

  7. LDA(主题模型算法)

    LDA整体流程 先定义一些字母的含义: 文档集合D,topic集合T D中每个文档d看作一个单词序列< w1,w2,...,wn >,wi表示第i个单词,设d有n个单词.(LDA里面称之为 ...

  8. Runner站立会议07

    开会时间:21.10~21.30 地点:基教负一 今天做了什么:看网上下载的日历代码 明天准备做什么:继续看代码 遇到的困难:下载的代码有很多看不懂的地方,很多包.函数等都不知道 会议图: 燃尽图:

  9. HTML学习笔记——选择器

    1> ID选择器.交叉选择器.群组选择器.子代选择器 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN& ...

  10. ecshop 订单编号 get_order_sn

    文件地址include/lib_order.php ,要引用需要先导入 lib_order.php require_once(ROOT_PATH . 'includes/lib_order.php') ...