Automatic NRPE Installation Shell Script | Arkit

Installing NRPE manually in Centos 7 Or RHEL 7 is easy however if NRPE is not working then troubleshooting and tweaking all the settings going to be an TDS job. Here is the simple Nagios Client Installation Shell Script Centos 7.

Nagios Client Installation NRPE Centos 7

Its very easy and simple to install just running one command will do below steps for you

  • Installs required packages using yum
  • Creates users and groups for Nagios
  • Defines services for xinetd
  • Installs NRPE Agent and required Nagios Plugins
  • Allow firewall ports for client server communication
  • Configure the agent to send data

Which process will work in multiple operating systems such as Centos 5-7, RHEL 6 & 7, Debain, Ubuntu, SLES & OpenSUSE and Fedora

NRPE Installation script

yum install wget -y

wget is required for downloading the TAR package

Download it in temp location after installation you can delete the entire directory

# cd /tmp# wget http://assets.nagios.com/downloads/nagiosxi/agents/linux-nrpe-agent.tar.gz

then unzip the package using below command

# tar -xvf linux-nrpe-agent.tar.gz
# cd linux-nrpe-agent
# ./fullinstall

After script execution it will ask you for the confirmation as below

Your system $PATH does not include /sbin and /usr/sbin. This is usually the result of installing GNOME rather than creating a clean system.
Adding /sbin and /usr/sbin to $PATH.
============================
Nagios Linux Agent Installer
============================

This script will install the Nagios Linux Agent by executing all necessary
sub-scripts.

IMPORTANT: This script should only be used on a clean installed system:

RedHat Enterprise, CentOS, Fedora, Cloud Linux or Oracle
OpenSUSE or SUSE Enterprise
Ubuntu or Debian

Do NOT use this on a system running any other distro or that
does not allow additional package installation.

Do you want to continue? [Y/n]

Say yes it will automatically download EPEL repository and configured Nagios client for you

nrpe

nrpe

That’s it Now go back to Nagios Server and configure your service monitoring.

Related Articles

 

Thanks for your wonderful Support and Encouragement

Ravi Kumar Ankam

My Name is ARK. Expert in grasping any new technology, Interested in Sharing the knowledge. Learn more & Earn More

Leave a Reply

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