Icinga-CN Chinese project

Source: Internet
Author: User
Tags snmp icinga

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

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.