CentOS6.6 + Puppet3.7.3 distributed deployment of Zabbix2.4 Monitoring System

Source: Internet
Author: User
Tags import database

CentOS6.6 + Puppet3.7.3 distributed deployment of Zabbix2.4 Monitoring System

OS: CentOS-6.6-x86_64 (Minimal)
Puppet 3.7.3
Zabbian 2.4
Puppet/Zabbix master: master/zabbix.redking.com
Puppet/Zabbix agent: agent1 ~ 5.redking.com

Puppet Installation

1. Install puppet-server on the server

Puppet is not in the basic CentOS source. You must add the official sources provided by PuppetLabs. The Puppet Master server installs puppet-server and automatically matches related dependent packages such as Facter installation.
[Root @ master ~] # Rpm-ivh http://yum.puppetlabs.com/el/6/products/x86_64/puppetlabs-release-6-7.noarch.rpm
[Root @ master ~] # Yum install-y puppet-server
[Root @ master ~] # Chkconfig puppetmaster on
[Root @ master ~] # Service puppetmaster start

2. Install puppet on the client

[Root @ agent ~] # Rpm-ivh http://yum.puppetlabs.com/el/6/products/x86_64/puppetlabs-release-6-7.noarch.rpm
[Root @ agent ~] # Yum install-y puppet
[Root @ agent ~] # Chkconfig puppet on
[Root @ agent ~] # Service puppet start

Puppet Master server configuration

1. Configure Automatic Authentication

Allow hosts in all redking.com domains to issue certificates automatically. Create the autosign. conf file.
[Root @ master ~] # Cat>/etc/puppet/autosign. conf <EOF
> * .Redking.com
> EOF
[Root @ master ~] #

Puppet Agent client Configuration

1. Modify the main configuration file puppet. conf of the client to add listeners and specify server domain names.
[Root @ agent ~] # Vim/etc/puppet. conf
[Agent]
Listen = true
Server = master.redking.com

Puppet Testing

In this way, we can use Puppet to manage Puppet, manage all puppet clients by configuring puppet modules, and apply the configuration file to all servers.

The client needs to send a request to the server for the server to manage the client. this is actually a process of issuing certificates. when you run the puppet client for the first time, an SSL certificate is generated and sent to the Puppet server. If the server agrees to manage the client, the certificate is issued. You can use this command to issue the certificate, because we have set the server address on the client, we do not need to contact the server address.
[Root @ agent ~] # Puppet agent -- test

To learn more about the registration process and daily troubleshooting, you can add parameters.

-No-daemonize foreground output log
-Verbose: enter more detailed logs.
-Debug more detailed logs, used in troubleshooting
-Test indicates the test. You can use the-test parameter.
[Root @ agent ~] # Puppet agent -- no-daemonize -- onetime -- verbose -- debug

Server View certificate issuance Information
[Root @ master ~] # Puppet cert list -- all

Zabbix Server Installation

1. Configure the software repository and install Zabbix
[Root @ master ~] # Rpm-ivh http://repo.zabbix.com/zabbix/2.4/rhel/6/x86_64/zabbix-release-2.4-1.el6.noarch.rpm
[Root @ master ~] # Yum install-y zabbix-server-mysql zabbix-web-mysql-server

By default, users and groups running Zabbix are created, and the Web server Apache virtual host configuration file is created.

2. Create a database and import data tables

[Root @ master ~] # Rpm-ivh http://repo.zabbix.com/zabbix/2.4/rhel/6/x86_64/zabbix-release-2.4-1.el6.noarch.rpm
[Root @ master ~] # Yum install-y zabbix-server-mysql zabbix-web-mysql-server
[Root @ master ~] # Service mysqld start
[Root @ master ~] # Chkconfig mysqld on
[Root @ master ~] # Mysqladmin-u root password '123'
[Root @ master ~] # Mysql-uroot-p123456
Mysql> create database zabbix character set utf8;
Mysql> grant all privileges on zabbix. * to zabbix @ localhost identified by 'zabbix ';
Mysql> flush privileges;

Enter the Zabbix database file directory to import database information
[Root @ master ~] # Cd/usr/share/doc/zabbix-server-mysql-2.4.3/create/
[Root @ master create] # mysql-uroot-p123456 zabbix <schema. SQL
[Root @ master create] # mysql-uroot-p123456 zabbix <images. SQL
[Root @ master create] # mysql-uroot-p123456 zabbix <data. SQL

3. Modify Zabbix configuration file configuration database information
[Root @ master ~] # Vim/etc/zabbix/zabbix_server.conf
DBHost = localhost
DBName = zabbix
DBUser = zabbix
DBPassword = zabbix

4. Set the default time zone of PHP
[Root @ master ~] # Vim/etc/php. ini
Date. timezone = PRC

5. Start Zabbix and Apache services
[Root @ master ~] # Service zabbix-server start
[Root @ master ~] # Chkconfig zabbix-server on
[Root @ master ~] # Service httpd start
[Root @ master ~] # Chkconfig httpd on

6. Set Zabbix

Zabbix installation page: http://zabbix.redking.com/zabbix/setup.php

Zabbix background Interface

Install and deploy the distributed monitoring system Zabbix 2.06

Install and deploy the distributed monitoring system Zabbix 2.06

Install and deploy Zabbix in CentOS 6.3

Zabbix distributed monitoring system practice

Under CentOS 6.3, Zabbix monitors apache server-status

Monitoring MySQL database Parameters Using Zabbix in CentOS 6.3

Install Zabbix 2.0.6 in 64-bit CentOS 6.2

 

For more details, please continue to read the highlights on the next page:

  • 1
  • 2
  • Next Page

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.