下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、centos安装zabbixcentos zabbix 安装1,建用户,不建议用root及有特别权限的用户,会担心全 groupa -g 130 zabbix -u 130 -g zabbix -c 'zabbix monitoring' zabbix2,需要安装以下组件: ? zabbix server (收集数据) ? zabbix agent (监视) ? net-snmp (为了支持 snmp(容易网络管理协议) ? jabber (支持消息通知) ? openipmi (监视) ? curl (网页监视)3,安装依靠包 yum install zlib-devel m
2、ysql-devel glibc-devel curl-devel gcc automake mysql libn-devel openssl-devel net-snmp-devel rpm-devel openipmi-devel 安装jabber需要依靠于iksemel包的iksemel-devel包,但是在centos 的repo里没有,所以我们要用epel(exa packages for enterprise linux) 配置 epel库从/wiki/epel/faqhowtouse: rpm -uvh 安装 iksemel-devel包
3、和iksemel包 yum -repo=epel install iksemel iksemel-devel4,下载zabbix-1.8.1.tar.gz 从 tar zxvf zabbix-1.8.8.tar.gz 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' * * tha
4、nk you for using zabbix! * * make install6,生成rpm wget http:/ /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 t
5、o /usr/src/redhat/rpms/i386/zabbix-1.8.8-1.i386.rpm you can remove it from your system any using: rpm -e zabbix-1.8.8-1*表示安装完成参考地址: -以下是原文- zabbix 1.8.x on centos using source (manual) works ao 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
6、 guide is for installing zabbix 1.8.1 on centos 5.4 using a mysql database, i asme you have installed centos with apache, mysql, , and a mail server ring the setup. will indie that we are using the prompt as the root user $ will indicate that we are using the prompt as a erent user setting up the us
7、er accounts the zabbix server and client both need a user account that they can run on, so may as well 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 a
8、dded 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 ( will be group id 130). zabbix installation we will be installing following components: ? zabbix server (for gathering data) ? zab
9、bix 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 er /root dependeies first install all the dependencies with yum using the comma
10、nd yum install zlib-devel mysql-devel glibc-devel curl-devel gcc automake mysql libidn-devel openssl-devel net-snmp-devel rpm-devel openipmi-develcentos should 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
11、these rpm's aren't in the centos repo's so we will be use them from epel instead. configure the epel repository from /wiki/epel/faqhowtouse: rpm -uvh than we can install the following packages with yum yum -enablerepo=epel install iksemel iksemel-devel compile and
12、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 after it has downloaded the we can un and untar with following command. g zabbix-1.8.1.tar.gz tar -xvf zabbix-1.8.1.tar this should have created a folder c
13、alled zabbix-1.8.1 in your home directory. nt we need to browse to the directory and configure our . 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 carefull
14、y and check the config.log d 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
15、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 g
16、ives 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 than install checkinst
17、all 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 ba on redhat we are going for r, type r and press enter. if you don
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 八年级下学期地理月考考试题
- 气道异物急诊教学|海姆立克 + 内镜取出一体化教学
- 2026年平顶山市新华区中小学编制教师招聘考试备考试题及答案详解
- 2025年枣庄市市中区中小学编制教师招聘考试试题及答案详解
- 2026年临沧地区中小学编制教师招聘笔试参考题库及答案详解
- 2026年甘肃省酒泉市事业编单位人员招聘笔试备考题库及答案详解
- 2026年深圳市南山区中小学编制教师招聘笔试模拟试题及答案详解
- 2026年黄山市黄山区中小学编制教师招聘考试备考题库及答案详解
- 2026年鹤壁市鹤山区中小学编制教师招聘考试参考题库及答案详解
- 2026年湖北省宜昌市中小学编制教师招聘笔试参考题库及答案详解
- 温泉度假村智能化系统顶层设计方案
- 门式起重机安装、拆除专项施工方案
- YD 5201-2014通信建设工程安全生产操作规范
- 雅思8000词汇表单
- 第四章城市水文与水资源课件
- 国开大学2023年01月11293《心理学》期末考试答案
- 变速箱厂总平面布置设计
- 专职消防员及消防文员报名登记表
- 挡土墙(重力式、衡重式、悬臂式)图示图集-原创
- GB/T 41715-2022定向刨花板
- GB/T 19292.1-2018金属和合金的腐蚀大气腐蚀性第1部分:分类、测定和评估
评论
0/150
提交评论