Deploy Icinga-php4, icingapnp4nagios

Source: Internet
Author: User
Tags rrdtool snmp icinga

Deploy Icinga-php4, icingapnp4nagios

For information about the Icinga-php4 documentation and, refer to: http://icinga-cn.sourceforge.net/

Here I use icinga-pnp4-cn-1.12.2.tar. xz.

Because of account restrictions, no icinga user is created here, and subsequent icinga users are monitor users. This parameter must be specified during subsequent pre-compilation.

1. Dependent packages

# Yum install httpd gcc glibc-common gd-devel

# Yum install libjpeg-devel libpng-devel

# Yum install net-snmp-devel net-snmp-utils

Ii. Unzip the installation package

# Tar xvf icinga-pnp4-cn-1.12.2.tar.xz

Iii. 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 -- enable-idoutils = no is specified, configure: error: ERROR-We really need a libdbi to link against will be reported during compilation.

After the pre-compilation is completed, the following information is output:

*** Configuration summary for pnp4icinga-0.6.25 03-01-2015 ***  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 Version 1.3.8  RRDs Perl Modules:                *** NOT FOUND ***  RRD Files stored in:              /home/monitor/icinga/var/perfdata  process_perfdata.pl Logfile:      /home/monitor/icinga/var/log/perfdata.log  Perfdata files (NPCD) stored in:  /home/monitor/icinga/var/spool/perfdata  Web Interface Options:  -------------------------         -------------------  HTML URL:                         http://localhost/icinga  Apache Config File:               /etc/httpd/conf.d/icinga.conf  Review the options above for accuracy.  If they look okay,  type 'make all' to compile.

Apparently, RRDs Perl Modules is not installed. If it is not installed, the data generated by pnp may be garbled.

# Yum install rrdtool-perl

Iv. Compilation

# 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 for a 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 script in /etc/rc.d/init.d  make install-commandmode     - This installs and configures permissions on the       directory for holding the external command file  make install-idoutils     - This installs the database addon IDOUtils into the       destination directory  make install-config     - This installs *SAMPLE* config files in /home/monitor/icinga/etc       You'll have to modify these sample files before you can       use Icinga.  Read the HTML documentation for more info       on doing this.  Pay particular attention to the docs on       object configuration files, as they determine what/how       things get monitored!  make install-webconf     - This installs the Apache config file and http auth file for       the Icinga Classic UI  make install-webconf-auth     - This installs the Apache http auth file for the Classic UI make install-processperfdata     - pnp4icinga processperfdata in /home/monitor/icinga/libexec make install-plugins     - pnp4icinga plugins in /home/monitor/icinga/libexec

In addition to make install-idoutils, execute the preceding commands in sequence.

# 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

5. Configure the classic WEB page

# Make cgis

# Make install-cgis

# Make install-html

Set the user and password that can access the Web page. Here, the user name is icingaadmin and the password is icinga.

# Htpasswd-c/home/monitor/icinga/etc/htpasswd. users icingaadmin

6. Compile and install the Icinga plug-in

# 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. Compile and install the NRPE plug-in

# 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.

*** Compile finished ***  make install     - This installs files in /home/monitor/icinga  make install-plugin     - This installs init-script files in /home/monitor/icinga/libexec  make install-init     - This installs init-script files in /etc/init.d  make install-xinetd     - This installs sample-config/nrpe.xinetd in /etc/xinit.d  make install-init-freebsd     - This installs init-script.freebsd files in /etc/init.d  make install-init-debian     - This installs init-script.debian files in /etc/init.d  make install-init-suse     - This installs init-script.suse files in /etc/init.d  make install-daemon-config     - This installs the Nrpe config file in /home/monitor/icinga/etc

# Make install

# Make install-plugin

# Make install-init

# Make install-daemon-config

8. Adjust SELinux policies

Temporarily disable: # setenforce 0

Permanently close:

# Vim/etc/sysconfig/selinux

SELINUX = disabled

9. Start HTTP, Icinga, and add auto-start upon startup

#/Etc/init. d/httpd start

#/Etc/init. d/icinga start

# Chkconfig httpd on

# Chkconfig icinga on

 

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.