下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025 小学六年级语文下册 民间故事 传承意义课件
- 口腔种植体采购合同(医疗机构用2025年)
- 嵊州社工面试题目及答案
- 深度解析(2026)《GBT 34366-2017轻型输送带 轻型输送带运转产生的静电场的测定》
- 深度解析(2026)《GBT 34199-2017电气化铁路接触网支柱用热轧H型钢》
- 2026年七年级历史上册期末考试试卷及答案(三)
- 2026年广东省第二中医院招聘黄埔医院普外科临时负责人备考题库及参考答案详解
- 2026年芜湖市中西医结合医院(湾沚区总医院)招聘麻醉医师备考题库及答案详解参考
- 深圳市公办中小学2025年12月面向2026年应届毕业生公开招聘教师备考题库及答案详解(易错题)
- 2026年中远海运船员青岛分公司门诊部放射岗、医学检验岗医生招聘备考题库(含答案详解)
- 继发性高血压课件
- 广东省深圳第二外国语学校2024-2025学年高二上学期期末考试英语试题【含答案】
- 应用化工技术职业生涯规划书
- 水表过户申请书范本
- 福建省泉州市丰泽区北附中学2024-2025学年九年级上学期期末考试语文试题(含答案)
- 宏天BPMX3.3业务流程管理平台操作手册
- 高中二年级 综合实践活动 劳动 主题四《家庭录影记趣事 第一课时 摄影基础》课件
- 2024网络安全人才实战能力白皮书安全测试评估篇
- 桶装水配送承包运输协议书范本(2024版)
- 我国贸易进出口总额影响因素的实证分析
- 质疑函授权委托书
评论
0/150
提交评论