Bobcares

How to Install NRPE on CentOS 7: Let’s do it!

by | Feb 17, 2020

Looking for steps to ‘Install NRPE on CentOS 7’?

Nagios provides complete monitoring of Linux operating systems with the help of the NRPE service. Often, bad NRPE installation can stop Nagios from working.

At Bobcares, we often get requests from our customers to install NRPE as part of our Server Management Services.

Today, let’s get into the details on how our Support Engineers help to install NRPE.

 

What is NRPE?

Before getting into the detailed NRPE installation, let’s have a quick look at the NRPE.

NRPE stands for Nagios Remote Plugin Executor. Its an agent between remote Linux machine and Nagios Monitoring host.

Nagios is a complete server monitoring system that alerts users when things go wrong and alert them a second time when the problem has been resolved.

NRPE is a Nagios agent that helps remote system monitoring using scripts that are hosted on the remote systems.

In general, NRPE allows you to monitor remote machine metrics such as disk usage, CPU load, etc. It can also communicate with some of the Windows agent add-ons.

Let’s detail how we install NRPE on CentOS 7 for our customers.

 

How we ‘Install NRPE on CentOS 7’?

At Bobcares, where we have more than a decade of expertise in managing servers, we see many customers requesting to install NRPE.

We can further divide the procedure of installing NRPE in the user(remote) end into 3 basic categories.

  • Installation
  • Configuration
  • Testing

Now, let’s see how our Support Engineers help the customers by installing NRPE on CentOS 7.

 

1. Installation

NRPE is installed on the remote host that we want to monitor from our Nagios server.

1. Initially, we enable the EPEL yum repository since NRPE packages and plugin are available in this. We follow the below command to enable it.

rpm -Uvh http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/e/epel-release-7-11.noarch.rpm

We can also use the following command to enable EPEL.

yum install epel-release

2. After enabling this, we install the NRPE and plugins into the customer’s system by running the below command.

yum --enablerepo=epel -y install nrpe nagios-plugins

3. Thereafter, we install the supporting commands that NRPE executes for monitoring services. We can see the list of available commands packages by running the following command.

yum --enablerepo=epel -y list nagios-plugins*

For instance, the prompt appears as follows.

Install NRPE on centos 7

From this, we install the required packages to the remote(user’s) system.

 

2. Configuration

After the installation of NRPE, we then move on to configure it.

By default, the NRPE configuration file will be available at:

/etc/nagios/nrpe.cfg

First and foremost, we have to configure Nagios server IP to this NRPE configuration file for the proper working of the monitoring system.

1. Initially, we open the configuration file using the command follows.

vim /etc/nagios/nrpe.cfg

2. We then add the Nagios server IP with the allowed_hosts field in the configuration file.

allowed_hosts=127.0.0.1,x.x.x.x

Here in the place of x.x.x.x we have to provide corresponding Nagios server IP.

Then save the configuration file. Now the Nagios server is able to connect to NRPE client(remote server).

3. After this, we add the monitoring task according to the requirement in the same configuration file.

For example,

command[check_root_disk]=/usr/lib/nagios/plugins/check_disk -w 20% -c 10% -p /
command[check_load]=/usr/lib/nagios/plugins/check_load -w 15,10,5 -c 30,25,20

We can add more commands according to the requirement of the tasks to monitor.

4. Finally, after adding the necessary tasks, we restart the services.

systemctl enable nrpe.service
systemctl start nrpe.service

 

3. Testing

As a final procedure, we need to test whether our installation is proper or not.

For this, we log in to the Nagios server.

Then we execute the following command to check whether the Nagios server is able to connect to clients NRPE services.

check_nrpe -H x.x.x.x

Here, X.X.X.X indicates the IP address of the remote server where NRPE is installed.

The prompt will then display the version of NRPE installed in the remote server.

NRPE help Nagios server to remotely execute plugins/commands on Linux/Unix machines. We Install NRPE on centos 7 of the remote host which we want to monitor from our Nagios server.

[Having trouble when trying to ‘Install NRPE on CentOS 7’? – Our Experts are available 24/7.]

 

Conclusion

In short, NRPE is the agent that executes the monitoring task between remote Linux machine and Nagios Monitoring host. Today, we saw how our Support Engineers helped the customers to ‘Install NRPE on CentOS 7’.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie
_clck, _clsk, CLID, ANONCHK, MR, MUID, SM

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

_reb2bgeo - The visitor's geographical location

_reb2bloaded - Whether or not the script loaded for the visitor

_reb2bref - The referring URL for the visit

_reb2bsessionID - The visitor's RB2B session ID

_reb2buid - The visitor's RB2B user ID

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid
_reb2bgeo, _reb2bloaded, _reb2bref, _reb2bsessionID, _reb2buid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF