Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Server \ How to deploy Icinga client     - Detailed reference Oracle 11g Partition (Database)

- Linux cron job (crontab) Examples (Linux)

- Linux performance monitoring and common commands Introduction (Linux)

- Oracle 11g partition maintenance (Nice) - Truncating And Partitions (Database)

- MySQL 5.7 and 5.6 group by differences (Database)

- CentOS 5.x install Lua 5.2.3 error (LIBS = -lncurses) (Linux)

- Ora-1092: OPI colleague K aborting process --- killed by OO Well killer (Database)

- Linux Systemd-- To start / stop / restart services in RHEL / CentOS 7 (Linux)

- MySQL master-slave database configuration and error handling Raiders (Database)

- Use Tmux and Vim to make IDE (Linux)

- Android use canvas board painting (Programming)

- Smooth upgrade to OpenSSH 6.1 Procedure (Linux)

- Broadcom transplanted to OpenWrt summary (Programming)

- In-depth understanding of capture Node.js garbage collection and memory leaks (Programming)

- Using Oracle for Oracle GoldenGate to achieve a one-way data synchronization (Database)

- Linux operating system security can not be ignored (Linux)

- Oracle 12CIN-memory in table spaces (Database)

- Install Ubuntu Software Center App Grid (Linux)

- Embedded Linux to solve the problem in the time zone (Linux)

- MySQL view (Database)

 
         
  How to deploy Icinga client
     
  Add Date : 2018-11-21      
         
         
         
  Icinga client deployment with respect to the server side, it is much simpler. For the server side, if you want to monitor the server by this way, it must include three components, Icinga core, Icinga plugins, NRPE (Nagios Remote Plugin Executor). Icinga for clients who only need to deploy Icinga plugins and NRPE.

Download icinga cultural project is: http: //sourceforge.net/projects/icinga-cn/files/

Wherein, Icinga plugins, NRPE were icinga plugins directory.

Here, I downloaded nagios-cn-plugins-2.0.3.tar.xz and icinga-nrpe-2.14.tar.gz.

New icinga user

# Useradd icinga -s / sbin / nologin

Install nagios-cn-plugins

# Cd / usr / src /

# Tar xvf /root/nagios-cn-plugins-2.0.3.tar.xz

# Cd nagios-cn-plugins-2.0.3 /

# ./configure --prefix = / Usr / local / icinga

Last output is as follows:

config.status: creating po / Makefile
            --with-apt-get-command:
              --with-ping6-command: / usr / sbin / ping6 -n -U -w% d -c% d% s
               --with-ping-command: / usr / bin / ping -n -U -w% d -c% d% s
               --with-package-name: nagios-plugins
               --with-nagios-user:
               --with-nagios-group:
                       --with-ipv6: yes
                      --with-mysql: no
                    --with-openssl: yes
                     --with-gnutls: no
               --enable-extra-opts: yes
                       --with-perl: / usr / bin / perl
             --enable-perl-modules: no
                     --with-cgiurl: / nagios / cgi-bin
               --with-trusted-path: / bin: / sbin: / usr / bin: / usr / sbin
                   --enable-libtap: no
# Make

# Make install

Setting permissions

# Chown -R icinga.icinga / usr / local / icinga /

Install NRPE

# Cd / usr / src /

# Tar xvf /root/icinga-nrpe-2.14.tar.gz

# Cd icinga-nrpe-2.14 /

# ./configure

Last output is as follows:

*** Configuration summary for nrpe 2.14 12-21-2012 ***:

 General Options:
 -------------------------
 NRPE port: 5666
 NRPE user: icinga
 NRPE group: icinga
 Icinga user: icinga
 Icinga group: icinga


Review the options above for accuracy. If they look okay,
type 'make all' to compile the NRPE daemon and client.
Follow the prompts,

# Make all

The output is as follows:

*** Compile finished ***

  make install
     - This installs files in / usr / local / icinga

  make install-plugin
     - This installs init-script files in / usr / local / 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 / usr / local / icinga / etc

If the NRPE daemon and client compiled without any errors, you
can continue with the installation or upgrade process.

Read the PDF documentation (NRPE.pdf) for information on the next
steps you should take to complete the installation or upgrade.
For Linux systems, you can run make install, make install-plugin, make install-init, make install-xinetd, make install-daemon-config. Refer to the specific role of the foregoing description.

Modify the NRPE configuration file

# Vim /usr/local/icinga/etc/nrpe.cfg

Behind allowed_hosts add the address of the Icinga server

allowed_hosts = 127.0.0.1,192.168.244.145
 

Start NRPE service

# /etc/init.d/icinga-nrpe Start

Starting icinga-nrpe (via systemctl): Warning: Unit file of icinga-nrpe.service changed on disk, 'systemctl daemon-reload' recommended.
                                                           [OK]
# Systemctl daemon-reload

# /etc/init.d/icinga-nrpe Start

View 5666 whether to open ports to listen

# Netstat -ntlup | grep 5666

tcp 0 0 0.0.0.0:5666 0.0.0.0:* LISTEN 26517 / nrpe
 

Verified on the service side

# / Usr / local / icinga / libexec / check_nrpe -H 192.168.244.146
Wherein the client's address is 192.168.244.146

If the output is NRPE version number:

NRPE v2.14
It represents the server and the client has established communications.

 

to sum up:

1. If verified on the service side, the following error message:

CHECK_NRPE: Error - Could not complete SSL handshake.
Generally NRPE configuration file is not modified, or firewall rules blocking the connection Icinga server and NRPE processes.

2. System account shell using / sbin / nologin, at this time can not login, nor even to the password.

The so-called "not land" refers to only the users can not use bash or another shell landing system to it, does not mean that the account will not be able to use the system resources. For example, each system account, the print job has the lp account management, www apache server has the account management, they can program the system to work, but it is unable to access the host. Sometimes some services, such as mail service, most of them are used to receive e-mail host, and do not need to log in. If there is an account trying to connect my host made shell, we can refuse. Also, if I want to make a have / sbin / nologin users know that they can not log host, you can create a new /etc/nologin.txt this document, written in the document plane landing No reason, when the user logs in, will appear in this file contents on the screen.
     
         
         
         
  More:      
 
- Let 32 Linux / CentOS system to support more than 4G memory (Linux)
- CentOS card fails to start at boot progress bar certmonger solve (Linux)
- UNIX file permissions in the "set user ID bit" (Linux)
- ARP spoofing prevent Linux environment LAN (Linux)
- The correct method to modify the maximum number of concurrent connections Tomcat 7 (Server)
- Mac OS X command line to submit the local project to Git (Server)
- Based AutoYaST automated installation of SUSE practice (Linux)
- CentOS install SVN server configuration and automatically synchronized to the Web directory (Server)
- Ora-00600 [fast hot Atkins soft _ that _ Oh, of course not _less_ profile] (Database)
- Use 3G wireless network card under Linux (Linux)
- When the master key encounter NULL (Database)
- High-performance JavaScript loops and flow control (Programming)
- Redis-2.8.17 installation and configuration process some errors (Linux)
- Installation of JDK and Tomcat under Linux (CentOS) (Linux)
- Dalvik heap memory management and recycling (Linux)
- Linux character device - user mode and kernel mode data transfer data (Linux)
- Use Ansible installation NGINX and NGINX Plus (Server)
- Ubuntu configuration SVN and http mode access (Server)
- Read and write files efficiently from Apache Kafka (Server)
- C ++ two second pointer memory model (two-dimensional array) (Programming)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.