[Zabbix series] install and add host and zabbix series host

Source: Internet
Author: User

[Zabbix series] install and add host and zabbix series host

Test Environment Ubuntu 14.04.1 LTS


Server Installation]

For installation, the official website provides detailed installation methods, including the source code and package installation of each platform. For more information about Linux, see
Https://www.zabbix.com/documentation/2.4/manual/installation/install_from_packages
Zabbix is a C/S architecture, so it is installed on sub-servers and clients. The client only needs to install zabbix-agent. We recommend that you install zabbix and agent on the server.
Follow these steps to install the server:
Wget http://repo.zabbix.com/zabbix/2.4/ubuntu/pool/main/z/zabbix-release/zabbix-release_2.4-1+trusty_all.deb
Sudo dpkg-I zabbix-release_2.4-1 + trusty_all.deb
Sudo apt-get update
Sudo apt-get install-y zabbix-server-mysql zabbix-frontend-php
Sudo apt-get install zabbix-agent
During installation, you will be prompted to set the mysql root Password and zabbix db password.
After the installation is complete, enter http: // ip/zabbix in the browser to enter the web installation interface of zabbix.
In step 2 of the installation page (check of pre-requisites), if the PHP time zone unknown Fail appears on the right side
Make the following changes:
Sudo vim/etc/apache2/conf-available/zabbix. conf

Remove the comment of # php_value date. timezone Europe/Riga.

(If you are as lazy as you are, copy the following command and execute it)

Sudo sed-I '/date. timezone/s/# //'/etc/apache2/conf-available/zabbix. conf


Restart apache after saving AND EXITING
Sudo service apache2 retart
Solve the problem
Enter the mysql root Password in the next step until the last step.

The default initial administrator password for zabbix is

Account admin
Password zabbix

[Client installation]
Windows Client
Download zabbix-agent windows package http://www.zabbix.com/downloads/2.4.4/zabbix_agents_2.4.4.win.zip from official website
The compressed package contains two directories: bin and conf.
Copy all files in bin \ win64 to c: \
Copy zabbix_agentd.conf under conf \ To c: \.
Modify zabbix_agentd.conf as follows:
Server = 10.0.0.10 \ zabbix Server ip Address
Hostname = hostname of the windows test \ local client. The requirements are described below.
LogFile = c: \ zabbix_agentd.log \ Local log location
ListenPort = 10050 \ Port


Ps: For Hostname, you must note that the hostname specified here must be the same as the hostname one specified in the zabbix server to add the client.


Sample. You can enter the host name as needed, which is not associated with the Host Name of the local system.
Run the following command to install cmd:
Zabbix_agentd.exe -- install
Zabbix_agentd.ext -- start


Linux Client
Sudo apt-get install-y zabbix-agent
Modify the configuration file sudo vim/etc/zabbix/zabbix_agentd.conf
Sever = 10.0.0.10
Hostname = linux test
Restart zabbix-agent service
Sudo service zabbix-agent restart


[Add a host to zabbix]
There are two important points to note:
1. the Hostname must be consistent with the hostname set in zabbix-agent.
2. In Templates, you must set the correct tempalte. For example, in windows OS, You must select the Template OS Windows.
After completing the settings, remember to update the configuration to make it take effect.

Appendix: email alarms are complex and excluded. They are recorded separately in the next article.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.