Icinga1.8.4 Chinese version installation record 1. the operating system in the system environment is Centos6.464-bit. in the past, it was a basic unused server with 2 GB memory and GB hard disk. the installation system is relatively simple. I used PXE to install the system. to minimize the number of servers required, install components... 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. download the software in Icinga 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 libdbi-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 = icinga --- 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 in the preceding command, the last two packages are unique to the pnp component, If the downloaded package does not contain pnp, 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 make all again. 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 the icinga database, And authorize icinga database users. 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. browser input http://yourserverip/icinga 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.
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