更改主机名为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. Mysql备份还原数据库之mysqldump实例及参数详细说明

    [root@localhost myexport]# mysqldump -h211.100.75.204 -uroot -p@^#coopen -P5029 --single-transaction ...

  2. python函数(五)

    函数 1.函数基本语法及特性 背景提要 现在老板让你写一个监控程序,监控服务器的系统状况,当cpu\memory\disk等指标的使用量超过阀值时即发邮件报警, 你掏空了所有的知识量,写出了以下代码 ...

  3. Low Power Consumption Design --- MCU Attention

    20161008 note : I have a PCB board called 'A' where a piece of STM8L052C6 and a piece of CC1101 are ...

  4. 今天执行grep命令差点把服务器搞崩

    grep "rst" -r ./ >> a.log 今天执行这个命令差点把服务器搞崩了. 本意是查找所有源代码文件中含有rst字符串的行,打印到文件a.log中,然后进 ...

  5. HTML 速查列表

    HTML 基本文档 <!DOCTYPE html> <html> <head> <title>文档标题</title> </head& ...

  6. f.lux for Linux安装

    1.安装f.luxsudo add-apt-repository ppa:kilian/f.lux sudo apt-get update sudo apt-get install fluxgui 2 ...

  7. windows7-PowerDesigner 15.1 的安装图解

    下载 PowerDesigner 15.1 的安装文件和破解文件 破解文件下载地址:http://pan.baidu.com/share/link?shareid=177873&uk=3626 ...

  8. 单个pdf提取测试

    # -*- coding: utf-8 -*- """ Created on Wed Feb 3 09:32:22 2016 pdf单个文件提取测试 @author: A ...

  9. ansible加密命令

    ansible-vault用于配置文件加密,如编写的playbook配置文件中包含敏感信息,不希望其他人随意查看,ansible-valut可加密/解密这个配置文件,刚试了下也可以加密txt文档,猜想 ...

  10. centos6.5分区简易操作

    fdisk /dev/sdb --->n--->p---->输入分区大小(回车就默认全部大小) mkfs.ext4 /dev/sdb1 mkdir /data 在根目录下新建data ...