- 浏览: 334428 次
- 性别:
- 来自: 郑州
文章分类
最新评论
-
Aceslup:
很感谢分享。清晰的思路。
linux安装php,gd支持jpeg -
u011467537:
最后那个问题解决了么?
android,view的执行过程onDraw、onSizeChanged,onFinishInflate -
kerme:
写的很好,但是查出来的unicode格式的前两个字节输出是-1 ...
字符编码原理 ASCII,Unicode和UTF-8 -
ling凌yue月:
Errorize 写道 你是不是搞错了?Java代码是这样子的 ...
数组转换为树 -
Errorize:
你是不是搞错了?Java代码是这样子的么?
数组转换为树
Centos Zabbix 安装
1,建用户,不建议用root及有特殊权限的用户,会不安全
# groupadd -g 130 zabbix
# useradd -u 130 -g zabbix -c 'Zabbix monitoring' zabbix
2,需要安装以下组件:
• Zabbix Server (收集数据)
• Zabbix Agent (监视)
• Net-SNMP (为了支持 SNMP(简单网络管理协议))
• Jabber (支持消息通知)
• OpenIPMI (监视)
• cURL (网页监视)
3,安装依赖包
#yum install zlib-devel mysql-devel glibc-devel curl-devel gcc automake mysql libidn-devel openssl-devel net-snmp-devel rpm-devel OpenIPMI-devel
安装Jabber需要依赖于iksemel包的iksemel-devel包,但是在CentOS 的Repo里没有,所以我们要用EPEL(Extra Packages for Enterprise Linux)
配置 EPEL库从http://fedoraproject.org/wiki/EPEL/FAQ#howtouse:
# rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
安装 iksemel-devel包和iksemel包
# yum --enablerepo=epel install iksemel iksemel-devel
4,下载zabbix-1.8.1.tar.gz 从 http://www.zabbix.com/download.php
5,编译安装
#tar zxvf zabbix-1.8.8.tar.gz
#cd zabbix-1.8.1
# ./configure --prefix=/usr/local/zabbix --enable-server --with-mysql --with-net-snmp --with-jabber --with-libcurl --with-openipmi --enable-agent
出现:
***********************************************************
* Now run 'make install' *
* *
* Thank you for using Zabbix! *
* <http://www.zabbix.com> *
***********************************************************
#make install
6,生成rpm
#wget http:// pkgs.repoforge.org/checkinstall/checkinstall-1.6.0-3.rh7.rf.i386.rpm
# rpm -ivh checkinstall-1.6.0-3.rh7.rf.i386.rpm
# yum install rpm-build
# cd zabbix-1.8.8
# checkinstall --nodoc --install=yes
**********************************************************************
Done. The new package has been installed and saved to
/usr/src/redhat/RPMS/i386/zabbix-1.8.8-1.i386.rpm
You can remove it from your system anytime using:
rpm -e zabbix-1.8.8-1
**********************************************************************
表示安装完成
参考地址:http://www.zabbix.com/wiki/howto/install/centos/centosinstall
----------------------以下是原文------------------------------
Zabbix 1.8.x on CentOS using source (manual)
Works also with Zabbix 1.8.1 - 1.8.5 and CentOS 5.4 - 6.0. I have also tested this with Zabbix 1.9.5 on RHEL 5.7
This Guide is for installing Zabbix 1.8.1 on CentOS 5.4 using a MySQL Database, I assume you have installed CentOS with Apache, MySQL, PHP, and a Mail Server during the Setup.
# will indicate that we are using the prompt as the root user
$ will indicate that we are using the prompt as a different user
Setting up the user accounts
The Zabbix server and client both need a user account that they can run on, so may as well set this up first. This also needs to be done on every monitored machine that is running the Zabbix agent:
# groupadd -g 130 zabbix
# useradd -u 130 -g zabbix -c 'Zabbix monitoring' zabbix
I have added the ”-u 130” parameter – this ensures that the zabbix user gets created with the same user ID on every server that we created it on, as well as with the zabbix group (which will be group id 130).
Zabbix Installation
We will be installing following components:
• Zabbix Server (for gathering data)
• Zabbix Agent (for monitoring)
• Net-SNMP (for SNMP Support)
• Jabber (for notifications)
• OpenIPMI (for monitoring)
• cURL (for web monitoring)
All these commands are done with the user root, starting of from the root home folder /root
Dependencies
First install all the dependencies with yum using the command
# yum install zlib-devel mysql-devel glibc-devel curl-devel gcc automake mysql libidn-devel openssl-devel net-snmp-devel rpm-devel OpenIPMI-devel
CentOS should find all packages in its Repo's and do the rest for you. For Jabber we will need the packages iksemel-devel wich depends on iksemel, however these RPM's aren't in the CentOS Repo's so we will be use them from EPEL instead.
Configure the EPEL repository from http://fedoraproject.org/wiki/EPEL/FAQ#howtouse:
# rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
Than we can install the following packages with yum
# yum --enablerepo=epel install iksemel iksemel-devel
Compile and Install Source
Now that we have our dependencies set up we need to download the actual source, this can also be done with the wget command.
# wget http://downloads.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/1.8.1/zabbix-1.8.1.tar.gz?use_mirror=freefr
After it has downloaded the file we can unzip and untar with following command.
# gunzip zabbix-1.8.1.tar.gz && tar -xvf zabbix-1.8.1.tar
This should have created a folder called zabbix-1.8.1 in your home directory. Next we need to browse to the directory and configure our setup.
# cd zabbix-1.8.1
# ./configure --enable-server --with-mysql --with-net-snmp --with-jabber --with-libcurl --with-openipmi --enable-agent
If you encounter any problems you should read the error messages carefully and check the config.log located in the same directory. If all goes well it will print out your configuration, please make sure following is set:
Enable server: yes
With database: MySQL
WEB Monitoring via: cURL
Native Jabber: yes
SNMP: net-snmp
IPMI: openipmi
Enable agent: yes
If everything matches the above we can carry on with the command make
# make
After make has compiled all the stuff we can use CHECKINSTALL as described in the next chapter - OR - we could simply proceed as usual with:
# make install
checkinstall
After make has compiled we won't be using make install, but checkinstall which gives us the option to first make a RPM out of the installation and than install it. This gives us the advantage to be able to deinstall Zabbix again with rpm. Because checkinstall also isn't on the CentOS Repo we will download it using wget to our home directory.
# cd ..
# wget http://dag.wieers.com/rpm/packages/checkinstall/checkinstall-1.6.0-3.el5.rf.i386.rpm
and than install checkinstall with rpm and rpmbuild with yum
# rpm -ivh checkinstall-1.6.0-3.el5.rf.i386.rpm
# yum install rpm-build
Now we can use checkinstall to make a RPM and install it.
# cd zabbix-1.8.1
# checkinstall --nodoc --install=yes -y
You Should be able to choose what kind of package that you wish you create, because CentOS is based on RedHat we are going for [R], type R and press Enter.
If you don't encounter any errors you should get following output:
**********************************************************************
Done. The new package has been installed and saved to
/usr/src/redhat/RPMS/i386/zabbix-1.8.1-1.i386.rpm
You can remove it from your system anytime using:
rpm -e zabbix-1.8.1-1
**********************************************************************
Now Zabbix is installed.
1,建用户,不建议用root及有特殊权限的用户,会不安全
# groupadd -g 130 zabbix
# useradd -u 130 -g zabbix -c 'Zabbix monitoring' zabbix
2,需要安装以下组件:
• Zabbix Server (收集数据)
• Zabbix Agent (监视)
• Net-SNMP (为了支持 SNMP(简单网络管理协议))
• Jabber (支持消息通知)
• OpenIPMI (监视)
• cURL (网页监视)
3,安装依赖包
#yum install zlib-devel mysql-devel glibc-devel curl-devel gcc automake mysql libidn-devel openssl-devel net-snmp-devel rpm-devel OpenIPMI-devel
安装Jabber需要依赖于iksemel包的iksemel-devel包,但是在CentOS 的Repo里没有,所以我们要用EPEL(Extra Packages for Enterprise Linux)
配置 EPEL库从http://fedoraproject.org/wiki/EPEL/FAQ#howtouse:
# rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
安装 iksemel-devel包和iksemel包
# yum --enablerepo=epel install iksemel iksemel-devel
4,下载zabbix-1.8.1.tar.gz 从 http://www.zabbix.com/download.php
5,编译安装
#tar zxvf zabbix-1.8.8.tar.gz
#cd zabbix-1.8.1
# ./configure --prefix=/usr/local/zabbix --enable-server --with-mysql --with-net-snmp --with-jabber --with-libcurl --with-openipmi --enable-agent
出现:
***********************************************************
* Now run 'make install' *
* *
* Thank you for using Zabbix! *
* <http://www.zabbix.com> *
***********************************************************
#make install
6,生成rpm
#wget http:// pkgs.repoforge.org/checkinstall/checkinstall-1.6.0-3.rh7.rf.i386.rpm
# rpm -ivh checkinstall-1.6.0-3.rh7.rf.i386.rpm
# yum install rpm-build
# cd zabbix-1.8.8
# checkinstall --nodoc --install=yes
**********************************************************************
Done. The new package has been installed and saved to
/usr/src/redhat/RPMS/i386/zabbix-1.8.8-1.i386.rpm
You can remove it from your system anytime using:
rpm -e zabbix-1.8.8-1
**********************************************************************
表示安装完成
参考地址:http://www.zabbix.com/wiki/howto/install/centos/centosinstall
----------------------以下是原文------------------------------
Zabbix 1.8.x on CentOS using source (manual)
Works also with Zabbix 1.8.1 - 1.8.5 and CentOS 5.4 - 6.0. I have also tested this with Zabbix 1.9.5 on RHEL 5.7
This Guide is for installing Zabbix 1.8.1 on CentOS 5.4 using a MySQL Database, I assume you have installed CentOS with Apache, MySQL, PHP, and a Mail Server during the Setup.
# will indicate that we are using the prompt as the root user
$ will indicate that we are using the prompt as a different user
Setting up the user accounts
The Zabbix server and client both need a user account that they can run on, so may as well set this up first. This also needs to be done on every monitored machine that is running the Zabbix agent:
# groupadd -g 130 zabbix
# useradd -u 130 -g zabbix -c 'Zabbix monitoring' zabbix
I have added the ”-u 130” parameter – this ensures that the zabbix user gets created with the same user ID on every server that we created it on, as well as with the zabbix group (which will be group id 130).
Zabbix Installation
We will be installing following components:
• Zabbix Server (for gathering data)
• Zabbix Agent (for monitoring)
• Net-SNMP (for SNMP Support)
• Jabber (for notifications)
• OpenIPMI (for monitoring)
• cURL (for web monitoring)
All these commands are done with the user root, starting of from the root home folder /root
Dependencies
First install all the dependencies with yum using the command
# yum install zlib-devel mysql-devel glibc-devel curl-devel gcc automake mysql libidn-devel openssl-devel net-snmp-devel rpm-devel OpenIPMI-devel
CentOS should find all packages in its Repo's and do the rest for you. For Jabber we will need the packages iksemel-devel wich depends on iksemel, however these RPM's aren't in the CentOS Repo's so we will be use them from EPEL instead.
Configure the EPEL repository from http://fedoraproject.org/wiki/EPEL/FAQ#howtouse:
# rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
Than we can install the following packages with yum
# yum --enablerepo=epel install iksemel iksemel-devel
Compile and Install Source
Now that we have our dependencies set up we need to download the actual source, this can also be done with the wget command.
# wget http://downloads.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/1.8.1/zabbix-1.8.1.tar.gz?use_mirror=freefr
After it has downloaded the file we can unzip and untar with following command.
# gunzip zabbix-1.8.1.tar.gz && tar -xvf zabbix-1.8.1.tar
This should have created a folder called zabbix-1.8.1 in your home directory. Next we need to browse to the directory and configure our setup.
# cd zabbix-1.8.1
# ./configure --enable-server --with-mysql --with-net-snmp --with-jabber --with-libcurl --with-openipmi --enable-agent
If you encounter any problems you should read the error messages carefully and check the config.log located in the same directory. If all goes well it will print out your configuration, please make sure following is set:
Enable server: yes
With database: MySQL
WEB Monitoring via: cURL
Native Jabber: yes
SNMP: net-snmp
IPMI: openipmi
Enable agent: yes
If everything matches the above we can carry on with the command make
# make
After make has compiled all the stuff we can use CHECKINSTALL as described in the next chapter - OR - we could simply proceed as usual with:
# make install
checkinstall
After make has compiled we won't be using make install, but checkinstall which gives us the option to first make a RPM out of the installation and than install it. This gives us the advantage to be able to deinstall Zabbix again with rpm. Because checkinstall also isn't on the CentOS Repo we will download it using wget to our home directory.
# cd ..
# wget http://dag.wieers.com/rpm/packages/checkinstall/checkinstall-1.6.0-3.el5.rf.i386.rpm
and than install checkinstall with rpm and rpmbuild with yum
# rpm -ivh checkinstall-1.6.0-3.el5.rf.i386.rpm
# yum install rpm-build
Now we can use checkinstall to make a RPM and install it.
# cd zabbix-1.8.1
# checkinstall --nodoc --install=yes -y
You Should be able to choose what kind of package that you wish you create, because CentOS is based on RedHat we are going for [R], type R and press Enter.
If you don't encounter any errors you should get following output:
**********************************************************************
Done. The new package has been installed and saved to
/usr/src/redhat/RPMS/i386/zabbix-1.8.1-1.i386.rpm
You can remove it from your system anytime using:
rpm -e zabbix-1.8.1-1
**********************************************************************
Now Zabbix is installed.
发表评论
-
vimrc配置
2014-04-20 20:57 487set nu set fencs=utf-8 ... -
linux 下phpCentos rpm 包镜像
2012-02-02 12:10 1265地址一:http://mirror.fubra.com/rpm ... -
linux svn服务器的安装
2011-12-19 14:26 1956svn服务器的安装与配置 ... -
linux下mysql-5.5安装 配置 选项
2011-12-07 16:43 1491近段安装mysql-5.5,发现需要用cmake安装了,安装步 ... -
redhat 6修改root密码
2011-12-01 17:59 1545与5不同的是在内核启动项中应该输入 setenforce 0 ... -
nginx 支持pathinfo
2011-10-25 14:31 3834错误描述:1,打开网页,页面提示不支持pathinfo ... -
nginx,php不能上传大图问题(413)
2011-09-30 11:19 1852上传图片 出现错误:413 Request Entity To ... -
mysql 修改 read only 1290
2011-09-29 18:15 8474mysql 数据修改出现错误:1290 the mysql s ... -
linux4位权限分别代表什么意思
2011-09-02 15:55 18682接触linux一段时间了, ... -
linux下mysqldump导出数据、表结构,导入数据
2011-09-01 15:47 10565导出完整的数据库备份 mysqldump -h127.0 ... -
linux安装php,gd支持jpeg
2011-08-30 12:07 33013这几天弄一个项目的服务器,一同事突然告诉我报错误了 :Fata ... -
linux svn 客户端安装
2011-08-27 11:34 5033到 http://subversion.tigris.org/ ... -
linux 系统下nginx 屏蔽迅雷配置
2011-08-12 17:43 2009新建:/etc/nginx/agent.conf 添加if ( ... -
: Can’t connect to local mysql server through socket ‘/tmp/mysql.sock’
2011-08-08 16:17 2254配置mysql多实例3307、3308端口。很明显我在my.c ... -
mysql多实例
2011-08-01 13:58 1462MySQL多实例部署 By 赵佳佳, on 五月 26th, ... -
linux 安装php-5.2.17出现 libjpeg.(a|so) not found
2011-07-26 13:40 2356近几天在linux安装php,提示错误:libjpeg.(a| ... -
linux安装mysql-5.1.55,没有innoDB数据引擎
2011-07-12 18:00 4092第一次在linux下安装数据库,遇到不少的麻烦。以下就是麻烦之 ... -
linux安装flare
2011-06-23 16:25 1781说明:flare是分布式的,持久的key-value存储器,兼 ... -
linux安装q4m
2011-06-02 17:29 1934安装好后开始装Q4M: 安装前请确认libboost和libb ...
相关推荐
Centos7.9安装部署Zabbix6,需要安装包的发邮箱,文件里面包含邮箱地址
文档谢了在centos下快速安装zabbix
centos下安装zabbix,用来监控和告警
shell脚本完成zabbix 3.4 版本的一键安装过程,减少新手或小白的操作难度,即装即用,快速体验。
本文使用最新的文档版本,对网络上非标准化文档进行标准化设计及发布,更新了很多bug
centos8安装zabbix全套
基于centos7下zabbix的搭建,收集整理自主实验的资料。
采用当前abbix5.0的最新软件,进行自动化安装zabbix服务端的整个体系,包括mysql、nginx、本机agent,省去人工配置,只...该shell脚本仅支持centos7版本,可调整zabbix的repo源从而支持更多版本 但相应参数也需要修改。
CentOS 6.5安装Zabbix 3.0.4准备篇
centos7安装zabbix,快速部署zabbix,通用 、全面、可靠。
Linux CentOS-7 Zabbix5.0安装包
包括zabbix安装过程的资料安装包以及教程,包含mysql安装,nginx配置,php安装教程,以及zabbix配置过程
包含了centos8在线安装zabbix6.0脚本、离线安装zabbix6.0的脚本与离线包; 上传包至/root目录,脚本直接运行即可
# dnf install zabbix-server-mysql zabbix-web-mysql zabbix-apache-conf zabbix-sql-scripts zabbix-selinux-policy zabbix-agent # mysql -uroot -p password mysql> create database zabbix character set utf8...
centos7 安装zabbix4.2.pdf 是我写的,有什么不懂可以留言
centos7安装zabbix3.0超详细步骤解析
安装Zabbix Agent `yum install zabbix-agent` `systemctl start zabbix-agent.service` 安装zabbix前端 `rpm -ivh <https://repo.zabbix....
Centos8.2+zabbix5.2搭建网络监控
centos7.6/7,7+zabbix4.4.7+mysql5.7+grafana6.4.4安装指导 本人亲测,自用没毛病,centos的Firewalld ,selinux 需关闭。