Icinga is actually a secondary development of Nagios. It includes all Nagios functions and can even be used directly by the Nagios configuration file. Icinga-CN is a specialized Chinese project and is more suitable for Chinese users.
1 Preparation
# Yum install FreeType libjpeg libpng fontconfig libdbi-drivers libdbi-devel libdbi-DBD-mysql GCC glibc-common Gd-devel libjpeg-devel libpng-devel net-snmp -SNMP-devel
2. Download and install icinga
# Wget http://cdnetworks-kr-1.dl.sourceforge.net/project/icinga-cn/icinga-cn/icinga-cn-1.5.1/icinga-cn-1.5.1.tar.bz2
# Tar jxvf icinga-cn-1.5.1.tar.bz2
# Cd icinga-1.5.1/
#. /Configure-Prefix =/usr/local/icinga-enable-idoutils-enable-embedded-perl-enable-SSL-with-icinga-user = icinga-with-icinga-group = icinga-with-command-user = icinga-with-command-grou = icinga
# Make all
# Make install
# Make install-init // # Install the masterProgram , CGI and HTML
# Make install-commandmode // install the startup script in/etc/rc. d/init. d.
# Make install-API // install the API File
# Make install-config // install the configuration instance configuration file
# Make install-webconf // install Apache-related configuration files
# Chkconfig-add icinga
# Chkconfig icinga on
#/Etc/init. d/icinga start
3. Set the login user and password on the web page (required)
Default username icingaadmin default password Admin
You can modify it by yourself, for example, htpasswd-C/usr/local/icinga/etc/htpasswd. Users icinga.
4. Install Nagios-plugins
# Wget http://sourceforge.net/projects/nagiosplug/files/nagiosplug/1.4.15/nagios-plugins-1.4.15.tar.gz/download
# Tar zxvf nagios-plugins-1.4.15.tar.gz
# Cd nagios-plugins-1.4.15/
#. /Configure-Prefix =/var/www/icinga/-with-cgiurl =/icinga/cgi-bin-with-htmurl =/icinga-with-Nagios-user = icinga- -Nagios-group = icinga
# Make & make install
5. Install nrpe
# Wget http://cdnetworks-kr-1.dl.sourceforge.net/project/icinga-cn/nrpe-icinga/nrpe-icinga-2.12.tar.bz2
# Tar jxvf nrpe-icinga-2.12.tar.bz2
#./Configure-with-nrpe-user = icinga-with-nrpe-group = icinga-with-icinga-user = icinga-with-icinga-group = icinga
# Make & make install
Copy the nrpe file:
# Cp src/nrpe/usr/local/icinga/bin
# Cp sample-config/nrpe. cfg/usr/local/icinga/etc
Start nrpe disease check:
#/Usr/local/icinga/bin/nrpe-n-C/usr/local/icinga/etc/nrpe. cfg-d
#/Usr/local/icinga/libexec/check_nrpe-H 127.0.0.1-n
Nrpe v2.12
Stop nrpe:
# Kill 'ps-Ef | grep "Sample-config/nrpe. cfg" | grep-V grep | awk '{print $2 }''
Login
Enter http: // ip/icinga/in the browser/
Enter your username and password to log in. Souvenir