For information on ICINGA-PHP4 documentation, refer to: http://icinga-cn.sourceforge.net/
I'm using icinga-pnp4-cn-1.12.2.tar.xz here.
Because of the account limit, there is no new Icinga user, and the user of the subsequent Icinga is the monitor users. The subsequent precompilation needs to be specified.
One, according to the dependency package
# yum Install httpd gcc glibc glibc-common gd gd-devel
# yum Install libjpeg libjpeg-devel libpng libpng-devel
# yum Install Net-snmp net-snmp-devel net-snmp-utils
Second, unpack the installation package
# tar XVF icinga-pnp4-cn-1.12.2.tar.xz
Third, pre-compilation
# CD icinga-pnp4-cn-1.12.2
#./configure--prefix=/home/monitor/icinga--with-icinga-user=monitor-with-icinga-group=monitor-- With-command-user=monitor--with-command-group=monitor--enable-idoutils=no
Note: If you do not have the following--enable-idoutils=no specified, configure:error:error-we really need a libdbi to link against will be reported during compilation.
After the precompilation is complete, the following information is output
Configuration Summary forpnp4icinga-0.6. - Geneva- on- -***General Options:------------------------- -------------------ICINGAPNP4 User/group:monitor Monitor Install directory:/home/monitor/Icinga HTML Dir:/home/monitor/icinga/share Config Dir:/home/monitor/icinga/etc location of RRDtool binary:/usr/bin/rrdtool Version1.3.8rrds Perl Modules:Not FOUND * * *RRD Files storedinch:/home/monitor/icinga/var/perfdata process_perfdata.pl Logfile:/home/monitor/icinga/var/log/perfdata.log perfdata files (npcd) storedinch:/home/monitor/icinga/var/spool/perfdata Web Interface Options:------------------------- -------------------HTML url:http://Localhost/icingaApache Config File:/etc/httpd/conf.d/icinga.conf Review the options above foraccuracy. If They look okay, type' make all'To compile.
Obviously, Rrds Perl modules is not installed, if not installed, will result in PnP out of the data is garbled.
# yum Install Rrdtool-perl
Iv. compiling
# make All
The output information is as follows:
Compile Finished * * *If The main program and CGIs compiled without any errors, youcan continue with installing Icinga as follows (type ' Make'without any arguments fora list of all possible options): Make Install-This installs the main program (Icinga Core), CGIs (classical Web), and HTML files Make Install-Init-This installs the Init scriptinch/etc/rc.d/INIT.D Make Install-Commandmode-This installs and configures permissions on the directory forHolding the external commandfile Make Install-idoutils-This installs the database addon idoutils into the destination directory Make Install-Config-This installs *sample* config filesinch/home/monitor/icinga/etc You'll has to modify these the sample files before you canUse Icinga. Read the HTML documentation for More InfoOn doing this. Pay particular attention to the docs onObjectconfiguration files, as they determine what/How things get monitored! Make Install-webconf-This installs the Apache Configfileand HTTP Authfile forThe Icinga Classic UI Make Install-webconf-Auth-this installs the Apache HTTP authfile forThe Classic UI Make Install-Processperfdata-Pnp4icinga Processperfdatainch/home/monitor/icinga/libexec Make Install-Plugins-Pnp4icinga Pluginsinch/home/monitor/icinga/libexec
In addition to make install-idoutils, execute the above command sequentially
# make Install
# Make Install-init
# Make Install-commandmode
# Make Install-eventhandlers
# Make Install-config
# Make Install-webconf
# Make Install-webconf-auth
# Make Install-processperfdata
# Make Install-plugins
V. Configure classic Web pages
# Make CGIs
# Make Install-cgis
# Make Install-html
Set the user and password to access the Web page, where the username is icingaadmin and the password is Icinga
# htpasswd-c/home/monitor/icinga/etc/htpasswd.users icingaadmin
VI. Compiling and installing the Icinga plugin
# tar XVF nagios-cn-plugins-2.0.3.tar.xz
# CD nagios-cn-plugins-2.0.3
#./configure--prefix=/home/monitor/icinga--with-nagios-user=monitor--with-nagios-group=monitor
# make
# make Install
Vii. compiling and installing the Nrpe plugin
# tar XVF icinga-nrpe-2.14.tar.gz
# CD icinga-nrpe-2.14
#./configure--prefix=/home/monitor/icinga--with-nrpe-user=monitor--with-nrpe-group=monitor--with-icinga-user= Monitor--with-icinga-group=monitor--enable-command-args
# make All
The output is as follows, according to your own needs.
Compile Finished * * * Make Install-This installs filesinch/home/monitor/Icinga Make Install-plugin-This installs Init-script filesinch/home/monitor/icinga/libexec Make Install-Init-This installs Init-script filesinch/etc/INIT.D Make Install-xinetd-This installs sample-config/nrpe.xinetdinch/etc/XINIT.D Make Install-init-FreeBSD-This installs INIT-SCRIPT.FREEBSD filesinch/etc/INIT.D Make Install-init-Debian-This installs Init-script.debian filesinch/etc/INIT.D Make Install-init-SuSE-This installs Init-script.suse filesinch/etc/INIT.D Make Install-daemon-Config-This installs the Nrpe Configfile inch/home/monitor/icinga/etc
# make Install
# Make Install-plugin
# Make Install-init
# Make Install-daemon-config
Eight, adjust the SELinux strategy
Temporary close: # Setenforce 0
Permanently closed:
# Vim/etc/sysconfig/selinux
Selinux=disabled
Nine, start Http,icinga and add power-on self-boot
#/ETC/INIT.D/HTTPD Start
#/etc/init.d/icinga Start
# Chkconfig httpd on
# Chkconfig Icinga on
Deploying ICINGA-PHP4