Installing Zabbix 2.4 on CentOS 6.5

1: Download Package

# rpm -ivh http://repo.zabbix.com/zabbix/2.4/rhel/6/x86_64/zabbix-release-2.4-1.el6.noarch.rpm

2: Install zabbix server packages

# yum -y install zabbix-server-mysql zabbix-web-mysql zabbix-agent zabbix-java-gateway

3: Install MySQL Database

# yum -y install mysql-server

—vi /etc/my.cnf

[mysqld]

symbolic-links=0

character-set-server=utf8

innodb_file_per_table=1

- Start mysql service with command “service mysqld start”

- Run the secure installation command “mysql_secure_installation” to set the root password:

- Enter current password for root (enter for none): <Press enterwithout password>

– Set root password? [Y/n] <Enter Y>

– Remove anonymous users? [Y/n] <Enter Y>

– Disallow root login remotely? [Y/n] <Enter n>

– Remove test database and access to it? [Y/n] <Enter Y>

– Reload privilege tables now? [Y/n] <Enter Y>

4: Create zabbix database

- Enter following commands to setup the database:

- # mysql -uroot -p<enter root password>

– mysql> create database zabbix character setutf8;

– mysql> grant all privileges on zabbix.* [email protected] identified by ‘M1o2n3itor’;

Note:passoword is M1o2n3itor.

– mysql> exit

5: Import initial schema and data

- # cd /usr/share/doc/zabbix-server-mysql-2.4.0/create
– # mysql -uroot -p<enter root password> zabbix< schema.sql
– # mysql -uroot -p<enter root password> zabbix< images.sql
– # mysql -uroot -p<enter root password> zabbix< data.sql

6: Edit database configuration inzabbix_server.conf

- # vi /etc/zabbix/zabbix_server.conf

Confirm following lines:

– DBHost=localhost (uncomment this line)
– DBName=zabbix
– DBUser=zabbix
– DBPassword=M1o2n3itor (uncomment this line)

7: Start zabbix server / agent services

- # service zabbix-serverstart

– # service zabbix-agentstart

8: Change Timezone

- # vi /etc/httpd/conf.d/zabbix.conf

Uncomment below line and change to desired timezone

- # php_value date.timezone Asia/Shanghai

9: Restart the apache web server

- # service httpd restart

10: Set zabbix services to start on reboot

- # chkconfig zabbix-server on
– # chkconfig zabbix-agent on
– # chkconfig mysqld on
– # chkconfig httpd on

11: Configure Firewall

Before you can access the Front-end interface, you eitherdisable the Firewall (IPTABLES) or add rules for zabbix ports.

In Test Lab:

Only disable iptables firewall if testing this in a labby running the command ‘service iptables stop‘ to stop theservice and use ‘service iptables status‘ to confirm its not running

chkconfig iptables off

In Production Environment:

Add the following lines in iptables for Trapper (10051); Client(10050) & httpd (80)

[code]
vi /etc/sysconfig/iptables
-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 10050 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 10051 -j ACCEPT
[/code]

Restart the Firewall

[code]service iptablesrestart[/code]

12: Configure Zabbix Web interface

-  Enter the following URL on a browser to access the zabbix webinterface http://<zabbix server hostname or ipaddress>/zabbix

- Click Next and make sure all checks are OK

- Change the Database username to ‘zabbix’andpassword to ‘M1o2n3itor’ and click Test connection to ensureconnection is established.

- Leave host name and port as default

- Confirm all settings are right

- Click Finish to complete configuration

Log into zabbix with default credentials (Username: Admin, Password: zabbix)

- Click profile on top right hand corner, click Change password andcomplete the change password process

There we are all done .

时间: 2024-07-31 04:42:07

Installing Zabbix 2.4 on CentOS 6.5的相关文章

[转]Installing python 2.7 on centos 6.3. Follow this sequence exactly for centos machine only

Okay for centos 6.4 also On apu.0xdata.loc, after this install was done $ which python /usr/local/bin/python $ python -V Python 2.7.3 $ ls -ltr /usr/local/bin/pyth* lrwxrwxrwx 1 root root 24 Jan 30 2013 /usr/local/bin/python -> /usr/local/bin/python2

zabbix server3.0在centos 7上安装

安装前准备: 1.1 安装依赖包: yum -y install wget net-snmp-devel OpenIPMI-devel httpd openssl-devel java lrzsz fping-devel libcurl-devel perl-DBI pcre-devel libxml2 libxml2-devel mysql-devel gcc php php-bcmath php-gd php-xml php-mbstring php-ldap php-mysql.x86_6

zabbix 3.2.6+centos 7 +nginx 1.12+ mysql 5.6+ Grafana +php 5.6

先只记录关键点 1.nginx.MYSQL 用官方的YUM库安装 2.CENTOS升级到最新 3.ZABBIX 官方RPM安装,然后下载源码库,源码中的PHP复制至NGINX的配置目录 4.NGINX的配置 location ~ \.php$ { root /usr/share/nginx/html; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root

Zabbix 3.4 在CentOS 7.2 上安装详细步骤

一.环境准备 操作系统: [[email protected] ~]# cat /etc/redhat-release  CentOS Linux release 7.3.1611 (Core)  修改主机名: [[email protected] ~]# hostnamectl set-hostname zabbix-server [[email protected] ~]# logout 配置hosts: [[email protected] ~]# cat >> /etc/hosts &

zabbix 3.0 on centos 7

yum install httpd httpd-develyum -y install mariadb*yum install php php-cli php-common php-devel php-pear php-gd php-mbstring php-mysql php-xml systemctl start mariadb.service systemctl enable mariadb.servicehttp://blog.csdn.net/default7/article/deta

Installing IPython using pip on CentOS

1. First to install pip # wget https://bootstrap.pypa.io/get-pip.py # python get-pip.py 2. Install iPython by pip # pip install ipython Refer Link: http://ipython.readthedocs.io/en/stable/install/install.html#installing-ipython-itself https://pip.pyp

Installing Percona XtraDB Cluster on CentOS

PXC简介 Percona XtraDB Cluster(简称PXC集群)提供了MySQL高可用的一种实现方法. 1.集群是有节点组成的,推荐配置至少3个节点,但是也可以运行在2个节点上. 2.每个节点都是普通的mysql/percona服务器,可以将现有的数据库服务器组成集群,反之,也可以将集群拆分成单独的服务器. 3.每个节点都包含完整的数据副本. PXC集群主要由两部分组成:Percona Server with XtraDB和Write Set Replication patches(使

在CentOS 7.4 搭建zabbix 3.4 监控系统

[[email protected] ~]# cat /etc/redhat-releaseCentOS Linux release 7.4.1708 (Core) [[email protected] ~]# uname -r3.10.0-693.11.1.el7.x86_64 下载zabbix3.4版本的 yum源安装包 [[email protected] zabbix]# wget http://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbi

在CentOS 7.5 搭建最新版zabbix 4.4 监控系统-date201911-13

安装zabbix前的准备 先了解zabbix架构 先安装mariaDB , http 即搭建LAMP架构和其它的依赖包 执行以下安装命令 成功后 下面开始安装zabbix 这是官网安装教程,可以作为参考https://www.zabbix.com/download?zabbix=4.0&os_distribution=centos&os_version=8&db=mysql Choose your platform Install and configure Zabbix serv