ImageVerifierCode 换一换
格式:DOCX , 页数:15 ,大小:424.91KB ,
资源ID:24692981      下载积分:3 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bdocx.com/down/24692981.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(zabbix安装配置.docx)为本站会员(b****5)主动上传,冰豆网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰豆网(发送邮件至service@bdocx.com或直接QQ联系客服),我们立即给予删除!

zabbix安装配置.docx

1、zabbix安装配置Zabbix一 安装配置:环境搭建: VMware Workstation 12 Pro (12.0.0 build-2985596) CentOS-7-x86_64-DVD-1511.iso (user:root password: toor00 ) zabbix-3.0.3.tar 安装过程:Installation from sourcesYou can get the very latest version of Zabbix by compiling it from the sources.A step-by-step tutorial for installin

2、g Zabbix from the sources is provided here.1 Installing Zabbix daemons1 Download the source archiveGo to the Zabbix download page and download the source archive. Once downloaded, extract the sources, by running:$ tar -zxvf zabbix-3.0.0.tar.gzEnter the correct Zabbix version in the command. It must

3、match the name of the downloaded archive.2 Create user accountFor all of the Zabbix daemon processes, an unprivileged user is required. If a Zabbix daemon is started from an unprivileged user account, it will run as that user. However, if a daemon is started from a root account, it will switch to a

4、zabbix user account, which must be present. To create such a user account (in its own group, “zabbix”) on Linux systems, run:groupadd zabbixuseradd -g zabbix zabbixA separate user account is not required for Zabbix frontend installation.If Zabbix server and agent are run on the same machine it is re

5、commended to use a different user for running the server than for running the agent. Otherwise, if both are run as the same user, the agent can access the server configuration file and any Admin level user in Zabbix can quite easily retrieve, for example, the database password.Running Zabbix as root

6、, bin, or any other account with special rights is a security risk.3 Create Zabbix databaseFor Zabbix server and proxy daemons, as well as Zabbix frontend, a database is required. It is not needed to run Zabbix agent.SQL scripts are provided for creating database schema and inserting the dataset. Za

7、bbix proxy database needs only the schema while Zabbix server database requires also the dataset on top of the schema.Having created a Zabbix database, proceed to the following steps of compiling Zabbix.4 Configure the sourcesWhen configuring the sources for a Zabbix server or proxy, you must specif

8、y the database type to be used. Only one database type can be compiled with a server or proxy process at a time. To see all of the supported configuration options, inside the extracted Zabbix source directory run:./configure -helpTo configure the sources for a Zabbix server and agent, you may run so

9、mething like:./configure -enable-server -enable-agent -with-mysql -enable-ipv6 -with-net-snmp -with-libcurl -with-libxml2ac_default_prefix=/usr/localac_default_prefix=/usr/local/bin-with-libcurl configuration option with cURL 7.20.0 or higher is required for SMTP authentication, supported since Zabb

10、ix 3.0.0.-with-libcurl and -with-libxml2 configuration options are required for virtual machine monitoring, supported since Zabbix 2.2.0.To configure the sources for a Zabbix server (with PostgreSQL etc.), you may run:./configure -enable-server -with-postgresql -with-net-snmpTo configure the sources

11、 for a Zabbix proxy (with SQLite etc.), you may run:./configure -prefix=/usr -enable-proxy -with-net-snmp -with-sqlite3 -with-ssh2To configure the sources for a Zabbix agent, you may run:./configure -enable-agentYou may use the -enable-static flag to statically link libraries. If you plan to distrib

12、ute compiled binaries among different servers, you must use this flag to make these binaries work without required libraries. Note that -enable-static does not work under Solaris.Using -enable-static option is not recommended when building server.In order to build the server statically you must have

13、 a static version of every external library needed. There is no strict check for that in configure script. Command-line utilities zabbix_get and zabbix_sender are compiled if -enable-agent option is used.Use -with-ibm-db2 flag to specify location of the CLI API.Use -with-oracle flag to specify locat

14、ion of the OCI API.For encryption support see Compiling Zabbix with encryption support5 Make and install everythingIf installing from SVN, it is required to run first:$ make dbschemamake installThis step should be run as a user with sufficient permissions (commonly root, or by using sudo).Running ma

15、ke install will by default install the daemon binaries (zabbix_server, zabbix_agentd, zabbix_proxy) in /usr/local/sbin and the client binaries (zabbix_get, zabbix_sender) in /usr/local/bin.To specify a different location than /usr/local, use a -prefix key in the previous step of configuring sources,

16、 for example -prefix=/home/zabbix. In this case daemon binaries will be installed under /sbin, while utilities under /bin. Man pages will be installed under /share.6 Review and edit configuration filesedit the Zabbix agent configuration file /usr/local/etc/zabbix_agentd.conf You need to configure th

17、is file for every host with zabbix_agentd installed. You must specify the Zabbix server IP address in the file. Connections from other hosts will be denied.edit the Zabbix server configuration file /usr/local/etc/zabbix_server.confYou must specify the database name, user and password (if using any).

18、With SQLite the full path to database file must be specified; DB user and password are not required.The rest of the parameters will suit you with their defaults if you have a small installation (up to ten monitored hosts). You should change the default parameters if you want to maximize the performa

19、nce of Zabbix server (or proxy) though. See the performance tuning section for more details.if you have installed a Zabbix proxy, edit the proxy configuration file /usr/local/etc/zabbix_proxy.confYou must specify the server IP address and proxy hostname (must be known to the server), as well as the

20、database name, user and password (if using any).With SQLite the full path to database file must be specified; DB user and password are not required.7 Start up the daemonsRun zabbix_server on the server side. shell zabbix_serverMake sure that your system allows allocation of 36MB (or a bit more) of s

21、hared memory, otherwise the server may not start and you will see “Cannot allocate shared memory for .” in the server log file. This may happen on FreeBSD, Solaris 8.See the See alsosection at the bottom of this page to find out how to configure shared memory.Run zabbix_agentd on all the monitored m

22、achines. shell zabbix_agentdMake sure that your system allows allocation of 2MB of shared memory, otherwise the agent may not start and you will see “Cannot allocate shared memory for collector.” in the agent log file. This may happen on Solaris 8.If you have installed Zabbix proxy, run zabbix_proxy

23、. shell zabbix_proxy2 Installing Zabbix web interfaceCopying PHP filesZabbix frontend is written in PHP, so to run it a PHP supported webserver is needed. Installation is done by simply copying the PHP files from frontends/php to the webserver HTML documents directory. Common locations of HTML docum

24、ents directories for Apache web servers include:/usr/local/apache2/htdocs (default directory when installing Apache from source)/srv/www/htdocs (OpenSUSE, SLES)/var/www/html (Fedora, RHEL, CentOS)/var/www (Debian, Ubuntu)It is suggested to use a subdirectory instead of the HTML root. To create a sub

25、directory and copy Zabbix frontend files into it, execute the following commands, replacing the actual directory:mkdir /zabbixcd frontends/phpcp -a . /zabbixIf installing from SVN and planning to use any other language than English, you must generate translation files. To do so, run:locale/make_mo.s

26、hmsgfmt utility from gettext package is required. Additionally, to use any other language than English, its locale should be installed on the web server. See the See alsosection in the “User profile” page to find out how to install it if required.Installing frontendStep 1In your browser, open Zabbix

27、 URL: You should see the first screen of the frontend installation wizard.Step 2Make sure that all software prerequisites are met.通过修改/etc/php.ini post_max_size =16M max_execution_time =300 max_input_time =300 date.timezone = PRCpost_max_size = 32M时区问题:修改php.ini文件,查找 ;date.timezone = ,把前面的分号去掉在 “=”后

28、面加上时区。比如:Asia/Chongqing (重庆),Asia/Shanghai (上海),Asia/Urumqi (乌鲁木齐),Asia/Macao (澳门),Asia/Hong_Kong (香港),Asia/Taipei (台北),PRC例;date.timezone =改成:date.timezone = Asia/ShanghaiPre-requisiteMinimum valueDescriptionPHP version5.4.0 PHP memory_limit option128MB In php.ini:memory_limit = 128M PHP post_max_s

29、ize option16MB In php.ini:post_max_size = 16M PHP upload_max_filesize option2MB In php.ini:upload_max_filesize = 2M PHP max_execution_time option300 seconds (values 0 and -1 are allowed) In php.ini:max_execution_time = 300 PHP max_input_time option300 seconds (values 0 and -1 are allowed) In php.ini

30、:max_input_time = 300 PHP session.auto_start optionmust be disabled In php.ini:session.auto_start = 0 Database supportOne of: IBM DB2, MySQL, Oracle, PostgreSQL, SQLite One of the following modules must be installed:ibm_db2, mysql, oci8, pgsql, sqlite3 bcmathphp-bcmath mbstringphp-mbstring PHP mbstr

31、ing.func_overload optionmust be disabled In php.ini:mbstring.func_overload = 0 PHP always_populate_raw_post_data optionmust be disabled Required only for PHP versions 5.6.0 or newer.In php.ini:always_populate_raw_post_data = -1 socketsphp-net-socket. Required for user script support. gd2.0 or higher php-gd. PHP GD extension must support PNG images (-with-png-dir), JPEG (-with-jpeg-dir) images and FreeType 2 (-with-freetype-dir). libxml2.6.1

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1