Nagios Client Installation steps in Linux and problems encountered

Source: Internet
Author: User
Tags install openssl

Software and plugins to be installed

Server A nagios-3.2.3,nagios-cn-3.2.3 Chinese version of nagios-plugins-1.4.15

Client Server B nrpe-2.12;nagios-plugins-1.4.15

First step: Create accounts and Groups first (note: First confirm that there are no accounts and groups, if not, you need to create, if not create subsequent cannot continue)

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/74/42/wKioL1YXfAjxdlHMAAEA1LyFrcA079.jpg "title=" 2.png " alt= "Wkiol1yxfajxdlhmaaea1lyfrca079.jpg"/>


Step Two: Upload the installation package nrpe-2.12;nagios-plugins-1.4.15 to client B and unzip it in the/USR/LOCAL/SRC.

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/74/45/wKiom1YXe1Ogh9JJAABrXNkBSXY305.jpg "title=" 1.png " alt= "Wkiom1yxe1ogh9jjaabrxnkbsxy305.jpg"/>

Unable to compile when installing nagios-plugins-1.4.15

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/74/42/wKioL1YXf1eD_dboAAF7FdhwGbQ834.jpg "title=" 3.png " alt= "Wkiol1yxf1ed_dboaaf7fdhwgbq834.jpg"/>

So you need to install the build environment gcc.

Yum install-y phpgcc glibc glibc-common gd gd-devel

Compile and install after installation

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/74/45/wKiom1YXgELymEnpAAFJotQVDCA201.jpg "title=" 4.png " alt= "Wkiom1yxgelymenpaafjotqvdca201.jpg"/>

unable to compile and install properly when installing nrpe-2.12

Tips "Checking for SSL headers ... configure:error:Cannot find SSL headers"

The reason is missing Openssl-devel package, yum-y install openssl-devel problem solving

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/74/45/wKiom1YXgMSgePa-AAFEnPHYlf0077.jpg "title=" 5.png " alt= "Wkiom1yxgmsgepa-aafenphylf0077.jpg"/>

Step three: Configure NRPE

Modifying the /etc/xinetd.d/nrpe configuration file

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/74/42/wKioL1YXgsSCp0niAAE1e7gTo9A443.jpg "title=" 6.png " alt= "Wkiol1yxgsscp0niaae1e7gto9a443.jpg"/>

# Note : After only_from , the client above the configuration file adds server-side a IP, whereas the server adds the IP of client B , separated by a space in the middle }


Fourth step: Add a service port

Modify the /etc/services service file to add a service port

# at the end of the file, if you do not add a port,Nrpe will not function properly

Nrpe 5666/tcp #nrpe


Nrep is a xinetd based service, so just turn on the xinetd service .

[Email protected]~]#/etc/init.d/xinetd Restart

[[Email protected]~]# Netstat-na | grep 5666

issue: Unable to detect port 5666 after installation.

Problem solving:1, check whether XINETD service is turned on

No, and cannot be turned on. Cause: The XINETD service is not installed. Installing the XINETD service solves the problem

Yum install-y "xinetd*"

2, start the XINETD service.

Service xinetd Resstart

Fifth, configure the appropriate monitoring project on the server side and the client

1. Service Side

In/usr/local/nagios/etc/objects/

COMMANDS.CFG # Command configuration file

CONTACTS.CFG # Contact configuration file

TIMEPERIODS.CFG # time period configuration file

Templates.cfg # Template configuration file

CONTACTGROUPS.CFG # Add Contact Group definition file

HOSTS.CFG # Increase the host configuration file

HOSTGROUPS.CFG # Increase host group configuration file

SERVICES.CFG # Add a service configuration file

SERVICEGROUPS.CFG # Add a service group configuration file

Configure the appropriate data in Commands.cfg, Hosts.cfg, Hostgroups.cfg, services.cfg, and Servicegroups.cfg

2. Client Configuration

Modify /usr/local/nagios/etc/nrpe adding monitoring entries

As follows

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/74/48/wKiom1YX1YKgeh91AANT_VSEXEM479.jpg "title=" 7.png " alt= "Wkiom1yx1ykgeh91aant_vsexem479.jpg"/>



And then you can have a good surveillance.


Nagios Client Installation steps in Linux and problems encountered

Related Article

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.