OpenStack Development--monitoring Zabbix installation

Source: Internet
Author: User
Tags fully qualified domain name

Note: This installation is using the Ubuntu OS
  1. First install Apache, PHP, MySQL, build the lamp environment
    sudo apt-get install apache2 installation completed at the end of the following information: * Starting Web server apache2AH00558:apache2:Could not reliably determine the Server ' s fully qualified domain name, using 127.0.1.1. Set the ' ServerName ' directive globally to suppress this message *
    Based on the conclusion of the online search: no httpd.conf configured.Check apahe2.conf file Discovery (sudo vim/etc/apache2/apache2.conf) There are no httpad.conf configuration items at all,/etc/apache2/ There are no httpd.conf files, so we have to do the following:
    1, under/etc/apache2/new httpd.conf file, the content is: ServerName 127.0.0.12, modify/etc/apache2/apache2.conf file in   includeoptional Mods-enabled/*.conf is added as follows:    # Include All the user configurations    : include/etc/apache2/httpd.conf
  2. sudo/etc/init.d/apache2 Restart

  3. sudo apt-get install php5

  4. sudo apt-get install libapache2-mod-php5

  5. sudo apt-get install mysql-server (set Password and duplicate password: root)

  6. sudo apt-get install libapache2-mod-auth-mysql

  7. sudo apt-get install php5-mysql

  8. sudo/etc/init.d/apache2 Restart

  9. sudo ls /etc/apache2/mods-enabled   See php5.conf  and  php5.load description OK

  10. Here you also need to configure the next/etc/php5/apache2/php.ini

    ;d Ate.timezone ===> Remove comments after = add Asia/shanghaimax_input_time =600max_execution_time= 600post_max_size =32M
  11. Sudo/etc/init.d/apache2 restart
  12. Zabbix installation
  13. sudo apt-get install zabbix-server-mysql 
     The installation process is very quiet, did not appear online said will enter 2-3 times the database password, sudo/etc/init.d/zabbix-server start will appear: * Zabbix_server is disabled in/etc/default/ Zabbix-server. View related files: sudo vim/etc/default/zabbix-server# The following section # This was by default set to "No" because a MySQL database nee DS to is prepared# and configured before you can start the Zabbix server for the first time.## instructions on what to set The up the database can be found in#/usr/share/doc/zabbix-server-mysql/readme. Debianstart=no is set to No, of course, will not start, change to Yes 
  14. It's not over yet, because the database is not set

     View related files: cat/usr/share/ Doc/zabbix-server-mysql/readme. Debian can see the relevant information:-> Apt-get install mysql-servercreate a new database (let's call it "Zabbix"):-> mysql-p-E "Create Database Zabbix Character Set UTF8 "Create a MySQL user that have access rights to the database (* use another password than ' Secretpassword '):-> mysql-p-E "Grant all on zabbix.*-' Zabbix ' @ ' localhost ' identified by ' Secretpassword '" Cre Ate the database schema:-> zcat/usr/share/zabbix-server-mysql/{schema,images,data}.sql.gz | Mysql-uzabbix-psecretpassword Zabbix We do it (but I added the username, because I am currently logged in to the account is not root, if yes, do not add): Mysql-uroot-p-E "Create Database Zabbix Character Set UTF8 "Mysql-uroot-p-e" Grant all on zabbix.*-' Zabbix ' @ ' localhost ' identified by ' Zabbix ' "zcat/usr/share/zabbix-server-mysql/{schema,images,data}.sql.gz | Mysql-uzabbix-pzabbix Zabbix (Wait a little) 
  15. sudo/etc/init.d/zabbix-server Start (success!) )

  16. then install the Zabbix website

    sudo apt-get install zabbix-frontend-php again ann quietly installed, did not let input what root, and so, manually copied to the Apache directory: sudo cp-r/usr/share/zabbix/var/ Www/html/zabbix Restart Zabbixsudo/etc/init.d/zabbix-server stopsudo/etc/init.d/zabbix-server start
  17. now access, can finally appear the Setup interface: HTTP//server address or domain name/zabbix  

  18. Step Three: Port 3306,password,user is root

  19. but the installation to the last step and the problem, still good, provided the download, download after ftp to the server

  20. After download, put the file in the /etc/zabbix/directory, refresh the page, OK

  21. OK, it's finally ready. Login user name password Admin/zabbix

  22. Finally, install the Zabbix client

    sudo apt-get install zabbix-agent  after installing the client, you need to modify the Zabbix configuration file/etc/zabbix/zabbix_agent.conf and/etc/zabbix/if it is not the server natively Zabbix_sagentd.conf line Server=zabbix server address or domain name
  23. Problems that you may encounter

    WORKAROUND: 1. Set "configuration--host" on the page to set the host to monitor the client's machine hostname. The hostname in 2./etc/zabbix/zabbix_agent.conf is consistent with the settings in 1.
  24. Finally, this post references: http://blog.csdn.net/Yoara/article/details/41845473


OpenStack Development--monitoring Zabbix installation

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.