Flipkart

Showing posts with label zabbix. Show all posts
Showing posts with label zabbix. Show all posts

Saturday, February 29, 2020

How To Install Zabbix 4.4 Server On CentOS 7

Zabbix is an open source network monitoring software designed to monitor and track the status of various network devices, servers, and virtual machines
Update the system using below command
# yum update
Install required packages
# yum install  mariadb-server  httpd -y                          
# yum install php php-cli php-common php-devel php-pear php-gd php-mbstring php-mysql php-xml php-bcmath  



# systemctl start httpd
Install Repository with MySQL database
# mysql_secure_installation


Install yum repository to install Zabbix
CentOS/RHEL 7: 
After adding Zabbix apt repository in your system use following command to install Zabbix server.
 # yum install zabbix-server-mysql zabbix-web-mysql zabbix-agent zabbix-java-gateway

Create initial database schema
# mysql -u root -p
mysql> create database zabbix character set utf8 collate utf8_bin;
mysql> grant all privileges on zabbix.* to zabbix@localhost identified by 'Password';
FLUSH PRIVILEGES;
mysql> quit;


Import initial schema and data. You will be prompted to enter your newly created password.
 # zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql –u zabbix -p zabbix

Configure the database for Zabbix server
Edit file /etc/zabbix/zabbix_server.conf
Update the following database configurations. This will be used by Zabbix server to connect to the database.
DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=password

Configure PHP for Zabbix frontend
Edit file /etc/httpd/conf.d/zabbix.conf, uncomment and set the right timezone for you.
# php_value date.timezone Asia/Kolkata


Start Zabbix server and agent processes and make it start at system boot:
# systemctl start zabbix-server zabbix-agent httpd mariadb
# systemctl enable zabbix-server zabbix-agent httpd mariadb

Now your Zabbix server is up and running!
Configure Zabbix frontend
Connect to your newly installed Zabbix frontend: http://server_ip_or_name/zabbix
Follow steps described in Zabbix documentation: Installing frontend
 Start using Zabbix

Check for pre-requisites
Check if you meet all the system requirements. If not configure your php.ini.
Configure DB Connection
Fill your DB details which you created and click on Next Step 
Zabbix server details
This is the host and port of running Zabbix server. As your Zabbix server is running on the same host, so keep the values unchanged. You can give a name for your instance.

 Pre-Installation Summary
This will give you a summary of your configuration. Click on Next Step

Install Zabbix
Click on Finish button to install Zabbix server

Install Zabbix
You will see a successful installation message on this page. This will also show you a message for the created configuration file.

Login to Zabbix
Login to Zabbix with following credentials
UserName          : Admin
Password    : Zabbix

You will see your Zabbix home screen now
Congratulation! Your Zabbix setup has been completed.



Saturday, October 6, 2018

Install Zabbix agent on Windows

Download Agent Source Code

Download latest windows zabbix agent source code from zabbix official site or use below link to download zabbix agent 3.0.0.

http://www.zabbix.com/downloads/3.0.0/zabbix_agents_3.0.0.win.zip

Check the agent configuration file server IP and hostname of Zabbix server should be defined.

clip_image001

Install Zabbix Agent as Windows Service

Lets install zabbix agent as windows server by executing following command from command line.

c:\zabbix\bin\win64> zabbix_agentd.exe -c c:\zabbix\zabbix_agentd.conf --install

zabbix_agentd.exe [9084]: service [Zabbix Agent] installed successfully
zabbix_agentd.exe [9084]: event source [Zabbix Agent] installed successfully

clip_image002

clip_image003

Start/Stop Agent Service

Use following command to start zabbix agent service from command line

c:\zabbix\bin\win64> zabbix_agentd.exe --start

zabbix_agentd.exe [5048]: service [Zabbix Agent] started successfully

c:\zabbix\bin\win64> zabbix_agentd.exe --stop

zabbix_agentd.exe [7608]: service [Zabbix Agent] stopped successfully

Also we can start/stop/restart from windows services control panel. To open services control panel use below steps.

Open run windows >> type “services.msc” >> press enter

clip_image004

Congratulation’s! You have successfully installed Zabbix Agent on Windows

Friday, October 5, 2018

Zabbix agent installation on RHEL 6

First download the rpm and install it. Then install the agent.

Repository installation

CentOS/RHEL 6:
rpm -Uvh http://repo.zabbix.com/zabbix/3.4/rhel/6/x86_64/zabbix-release-3.4-1.el6.noarch.rpm

To install the agent, run

# yum install zabbix-agent

clip_image001

You can see the agent package installed and dependency packages also get installed.

Check the agent configuration file server IP and hostname of Zabbix server should be defined.

clip_image002

clip_image003

To start the agent service, run:

# service zabbix-agent start

Thursday, October 4, 2018

Install and configure Zabbix agent on CentOS/RHEL 7

First download the rpm and install it. Then install the agent.

Repository installation

CentOS/RHEL 7:

rpm -Uvh http://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-2.el7.noarch.rpm

To install the agent, run

# yum install zabbix-agent

clip_image001

You can see the agent package installed and dependency packages also get installed.

Check the agent configuration file server IP and hostname of Zabbix server should be defined.

clip_image002

clip_image003

To start the agent service, run:

# systemctl start zabbix-agent

Monday, October 1, 2018

Install and configure Zabbix

Zabbix 3.4 on Linux 7/6

clip_image001

Zabbix is an open source network monitoring software designed to monitor and track the status of various network devices, servers, and virtual machines

Update system

# yum update

Install required packages

# yum install -y mariadb-server

# yum install php php-cli php-common php-devel php-pear php-gd php-mbstring php-mysql php-xml php-bcmath

clip_image003

# service httpd start

# systemctl start httpd

# service mysqld start ………. Linux 5/6

Install Repository with MySQL database

Note: Zabbix 3.0 require PHP 5.4 later

# systemctl start mariadb ……….. Linux 7

# mysql_secure_installation

clip_image005

clip_image006

Configure yum repository to install Zabbix

CentOS/RHEL 7:

# rpm -i https://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-2.el7.noarch.rpm

CentOS/RHEL 6:

# rpm -i https://repo.zabbix.com/zabbix/3.4/rhel/6/x86_64/zabbix-release-3.4-1.el6.noarch.rpm

Install Zabbix server

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

# yum update zabbix-server-mysql zabbix-web-mysql zabbix-agent

clip_image008

# wget http://mirror.centos.org/centos/7/os/x86_64/Packages/php-mbstring-5.4.16-45.el7.x86_64.rpm

# rpm –Uvh php-mbstring-5.4.16-45.el7.x86_64.rpm

# wget http://mirror.centos.org/centos/7/os/x86_64/Packages/php-bcmath-5.4.16-45.el7.x86_64.rpm

# rpm -Uvh php-bcmath-5.4.16-45.el7.x86_64.rpm

Now install Zabbix Server

Create initial database

# mysql -u root -p

password

mysql> create database zabbix character set utf8 collate utf8_bin;

mysql> grant all privileges on zabbix.* to zabbix@localhost identified by 'Password';

FLUSH PRIVILEGES;

mysql> quit;

Import initial schema and data. You will be prompted to enter your newly created password.

# zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql –u zabbix -p zabbix

Configure the database for Zabbix server

Edit file /etc/zabbix/zabbix_server.conf

DBPassword=password

Configure PHP for Zabbix frontend

Edit file /etc/httpd/conf.d/zabbix.conf, uncomment and set the right timezone for you.# php_value date.timezone Asia/Kolkata

Start Zabbix server and agent processes

Start Zabbix server and agent processes and make it start at system boot:

# systemctl restart zabbix-server zabbix-agent httpd mariadb

# systemctl enable zabbix-server zabbix-agent httpd mariadb

Now your Zabbix server is up and running!

1. Configure Zabbix frontend

Connect to your newly installed Zabbix frontend: http://server_ip_or_name/zabbix

Follow steps described in Zabbix documentation: Installing frontend

2. Start using Zabbix

clip_image010

Check for pre-requisites

Check if you meet all the system requirements. If not configure your php.ini.

clip_image012

Configure DB Connection

Fill your DB details which you created and click on Next Step

clip_image014

Zabbix server details

Edit your server details

clip_image016

Pre-Installation Summary

This will give you a summary of your configuration. Click on Next Step

Install Zabbix

Click on Finish button to install Zabbix serverInstall Zabbix

Click on Finish button to install Zabbix serverInstall Zabbix

Click on Finish button to install Zabbix serverdd

clip_image018

Install Zabbix

Click on Finish button to install Zabbix server

clip_image020

Login to Zabbix

Login to Zabbix with following credentials

UserName : Admin

Password : Zabbix

clip_image022

You will see your Zabbix home screen now

clip_image024