Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Zabbix source code installation

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Zabbix introduction

Zabbix consists of two parts, zabbix server and optional component zabbix agent.

Zabbix server can provide remote server / network status monitoring and data collection through SNMP,zabbix agent,ping, port monitoring and other methods. It can run on Linux, Solaris, HP-UX, AIX, Free BSD, Open BSD, OS X and other platforms. Zabbix agent needs to be installed on the monitored target server, and it mainly collects hardware information or operating system-related memory, CPU and other information. Zabbix agent can run on Linux, Solaris, HP-UX, AIX, Free BSD, Open BSD, OS X, Tru64/OSF1, Windows NT4.0, Windows 2000/2003/XP/Vista) and other systems. Zabbix installation installation zabbix dependency package shell > yum install net-snmp-devel curl-devel create zabbix user shell > groupadd zabbixshell > useradd-r-g zabbix zabbix extract zabbix installation package shell > tar zxvf zabbix-2.4.5.tar.gz shell > cd zabbix-2.4.5/ create zabbix database library and import initialization data mysql > create database zabbix character set utf8;Query OK, 1 row affected (0.02 sec) mysql > grant all on zabbix.* to zabbix@localhost identified by '123qwewe` Query OK, 0 rows affected (0.01 sec) mysql > flush privileges;Query OK, 0 rows affected (0.00 sec) shell > mysql-u zabbix-p zabbix

< database/mysql/schema.sqlshell>

Mysql-u zabbix-p zabbix

< database/mysql/images.sqlshell>

Mysql-u zabbix-p zabbix

< database/mysql/data.sql编译安装zabbixshell>

. / configure-- prefix=/usr/local/zabbix-- enable-server-- enable-proxy-- enable-agent\-- with-mysql=/db/mysql/bin/mysql_config-- with-net-snmp-- with-libcurlshell > make & & make installshell > ln-s / usr/local/zabbix/sbin/* / usr/local/sbin/shell > ln-s / usr/local/zabbix/bin/* / usr/local/bin/zabbix configuration add zabbix server port shell > grep zabbix/ etc/services zabbix -agent 10050/tcp # Zabbix Agentzabbix-agent 10050/udp # Zabbix Agentzabbix-trapper 10051/tcp # Zabbix Trapperzabbix-trapper 10051/udp # Zabbix Trapper changes the database section of the zabbix-server.conf configuration file. Shell > vi / usr/local/zabbix/etc/zabbix_server.conf===DBHost=localhostDBName=zabbixDBUser=zabbixDBPassword=123@qweDBSocket=/tmp/mysql.sockDBPort=3306ListenIP=127.0.0.1AlertScriptsPath=/usr/local/zabbix/share/zabbix/alertscripts=== changes about the database section in the zabbix_agent.conf configuration file shell > vi / usr/local/zabbix/etc/zabbix_agentd.conf===Include=/usr/local/etc/zabbix_agentd.conf.d/UnsafeUserParameters=1=== start running zabbix copy zabbix front end to web directory shell > cp-a frontends/php/* / usr / local/nginx/html/zabbix/shell > chown-R nginx.nginx / usr/local/nginx/html/ add zabbix to boot script and modify shell > cp misc/init.d/fedora/zabbix_agentd / etc/init.d/shell > cp misc/init.d/fedora/zabbix_server / etc/init.d/ modify / etc/init.d/zabbix_server, BASEDIR=/usr/local/zabbixshell > / etc/init.d/zabbix_agentd startStarting zabbix_agentd in / etc/init.d/zabbix_agentd: [OK] shell > / etc/init.d/zabbix_server startStarting zabbix_server: [OK] configure web site to modify php configuration document parameters shell > vi / usr/local/php/lib/php. Ini===date.timezone = Asia/Shanghaipost_max_size = 32Mmax_execution_time = 300max_input_time = 300 starting php-fpm, Nginxshell > / usr/local/php/sbin/php-fpm shell > / usr/local/nginx/nginx configure zabbix through the web page

Entering http:///zabbix/setup.php, in the browser will display the

Welcome-> nextCheck of pre-requisites-> next. If the check fails, you may need to modify the php configuration file or dynamically expand to compile phpConfigure DB connection-> enter database user information, Test connection, nestZabbix server details-- > nextPre-Installation summary-- > nextInstall-> Finish

Use the default account: admin password: zabbix login

Reference:

Https://www.zabbix.com/documentation/2.4/manual/installation/install

Http://coolnull.com/217.html

Http://www.osyunwei.com/archives/7984.html

Organize from the network

Svoid

2015-07-02

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report