Icinga1.8.4 Chinese version installation record

Source: Internet
Author: User

Icinga1.8.4 Chinese version installation record 1. the operating system in the system environment is Centos 6.4 64-bit. In the past, it was a basic unused server with 2 GB memory and 250 GB hard disk. the installation system is relatively simple. I installed it with PXE. I chose to minimize the server mode for the installation components. Other required software was installed with yum. II. software Download Icinga Chinese edition in http://sourceforge.net/projects/icinga-cn/files? Source = navbar download. I downloaded the integrated pnp4 version. You can use rrd to plot and display the data collected by Icinga. in addition, you also need to download the corresponding Plugins package, which is required for Icinga monitoring/check. without Plugins, Icinga is an empty shelf. you should know that Nagios kids shoes have been installed. III. software Installation 3.1 system essential components. tools required for compilation, class Library yum install gcc glibc-common gd-develyum install libjpeg-devel libpng-develyum install rrdtool-devel perl-rrdtool perl perl-develb.LAMP kit yum install httpd mysql-libserver DBI libdbi-devel l Ibdbi-drivers libdbi-dbd-mysql php-gd php-mysqlphp components can be added as needed. After all, it is a waste of time to install a machine for the Icinga service. 3.2 install Icingaa. create Icinga users and user groups. /usr/sbin/groupadd icinga/usr/sbin/useradd-m icingapasswd icinga/usr/sbin/usermod-a-G icinga unzip, enter the decompressed directory, and execute :. /configure -- prefix =/usr/local/icinga -- with-icinga-user = icinga-with-icinga-group = icinga -- with-command-user = I Cinga -- with-command-group = icinga -- e nable-idoutils -- with-httpd-conf =/etc/httpd/conf. d -- enable-nanosleep -- enable-event-brokerconfigure automatically detects the system environment and whether the dependent packages are installed. if no error is reported, execute the following operations: make allmake does not report an error. The following make commands are displayed, which can be executed in sequence. make installmake install-initmake install-configmake install-eventhandlersmake install-commandmodemake install-idoutilsmake install-processperfdatamake install-plugins The package containing the pnp component is exclusive. If you download a package that does not contain the pnp component, you do not need to execute it. I am using 1.8.4 in Chinese. It may be the negligence of the Chinese author. In the make all stage, there is a small bug, that is, when compiling cgi, an error is reported, it is said that no ruler is used to compile statuswml. cgi. After comparing the Makefile in the English version 1.8.4cgi directory with the Makefile in the Chinese version, we found that there is a line in the cgi/Makefile: CGIS = avail. cgi cmd. cgi config. cgi extinfo. cgi history. cgi events. cgi outages. cgi showlog. cgi status. cgi statusmap. cgi statuswml. cgi summary. cgi tac. cgi $ (CGIEXTRAS) use the editor to modify cgi/Makefile and remove statuswml from the line. cgi, and then execute again Make all to continue. the original English version can be used smoothly. A convenient make command is provided on the icinga official website. The following make fullinstallmake install-config command can also be installed, but I have not tested it. if the compilation process goes smoothly, the main program of Icinga will be installed. run the command chkconfig -- add icingachkconfig -- add ido2dbchkconfig icinga onchkconfig ido2db on to enable the icinga service to run automatically at the next server startup. you can use service Icinga [start | stop | restart] To start/Close the icinga service in the future, which is convenient. c. database creation and IDOUtils idoutils support mysql, PGsql, Oracle, and other databases. mysql is supported by default. start the mysql service and run the following command To create an icinga database and authorize the icinga database user. mysql-u root-pCREATE DATABASE icinga; grant usage on icinga. * TO 'icinca' @ 'localhost' identified by 'icinca' WITH limit 0MAX_CONNECTIONS_PER_HOUR 0MAX_UPDATES_PER_HOUR 0; grant select, INSERT, UPDATE, DELETE, DROP, create view, INDEX, EXECUTEON icinga. * TO 'icinca' @ 'localhost'; flush privileges; quit, 2 ~ Step 11: operate at the mysql> prompt, not at the shell prompt. then go to the module/idoutils/db/mysql under the icinga source code directory and run mysql-u root-p icinga <mysql. SQL to import the database. d. install the plug-in. and then execute the following command. note that \ (and \) must be used to escape () in the file name. I directly renamed the mv file name and decompressed it with tar .. /configure -- prefix =/usr/local/icinga -- with-cgiurl =/icinga/cgi-bin -- with-icinga-user = icinga -- with-icinga-group = icingamakemake install plugin package, there are a lot of new check components in it. It is recommended to download and decompress them. After Entering the decompressed directory, because they are all scripts, you can directly make install without using configure. after installing the Icinga plug-in, you can start apache, ido2db, and icinga services. run the htpasswd-c/usr/local/icinga/etc/htpasswd command before accessing icinga in a browser. users icingaadmin adds a web-authenticated user. The command prompts you to enter the password and asks you to enter a confirmation message again. after the preceding command is executed, you can access it in a browser. enter http: // yourserverip/icinga in the browser. The authentication dialog box is displayed. Enter the icingaadmin user name and your password created by the htpasswd command to view the Icinga interface. because there is a linux configuration in the default icinga configuration that uses Nrpe for detection, I have not installed it here, so I will/usr/local/icinga/etc/icinga. in cfg, export _file =/usr/local/icinga/etc/objects/linux. the cfg line commented. restart the icinga service and you can see that there is only one localhost. wait for a piece of data, icinga will run some service detection. If everything goes well, you will see that the services in the service details are green and normal words. because I installed a small number of packages during installation, there was a service check_iostat error in localhost. after research, it is found that the system does not install the iostat and bc commands, install the sysstat package and the bc package, and the service will be normal.

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.