Install nagios client and nagios NRPE on Centos 6.3 or Redhat 6.3 RHEL

Howto Install nagios client and nagios NRPE on Centos 6.3 or Redhat 6.3 RHEL

1. Before install Nagios NRPE, Nagios Client – We need install epel Repository

http://ithelpblog.com/os/linux/redhat/centos-redhat/install-epel-repository-on-centos-6-3-or-redhat-6-3-rhel/

2.  Install Nagios NRPE and Nagios Client on Centos or RHEL Server

[root@localhost ~]# yum install nagios-nrpe nagios-devel
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: centos-hcm.viettelidc.com.vn
* epel: ftp.jaist.ac.jp
* extras: centos-hcm.viettelidc.com.vn
* updates: mirror.neu.edu.cn
Setting up Install Process
Resolving Dependencies
–> Running transaction check
—> Package nagios-devel.x86_64 0:3.4.1-2.el6 will be installed
–> Processing Dependency: nagios = 3.4.1-2.el6 for package: nagios-devel-3.4.1-2.el6.x86_64
—> Package nrpe.x86_64 0:2.13-1.el6 will be installed
–> Running transaction check
—> Package nagios.x86_64 0:3.4.1-2.el6 will be installed
–> Processing Dependency: user(nagios) for package: nagios-3.4.1-2.el6.x86_64
–> Processing Dependency: user(nagios) for package: nagios-3.4.1-2.el6.x86_64
–> Processing Dependency: nagios-common for package: nagios-3.4.1-2.el6.x86_64
–> Processing Dependency: group(nagios) for package: nagios-3.4.1-2.el6.x86_64
–> Processing Dependency: group(nagios) for package: nagios-3.4.1-2.el6.x86_64
–> Processing Dependency: libgd.so.2()(64bit) for package: nagios-3.4.1-2.el6.x86_64
–> Running transaction check
—> Package gd.x86_64 0:2.0.35-10.el6 will be installed
—> Package nagios-common.x86_64 0:3.4.1-2.el6 will be installed
–> Finished Dependency ResolutionDependencies Resolved=====================================================================================================================================================================================================
Package Arch Version Repository Size
=====================================================================================================================================================================================================
Installing:
nagios-devel x86_64 3.4.1-2.el6 epel 17 k
nrpe x86_64 2.13-1.el6 epel 221 k
Installing for dependencies:
gd x86_64 2.0.35-10.el6 base 142 k
nagios x86_64 3.4.1-2.el6 epel 1.2 M
nagios-common x86_64 3.4.1-2.el6 epel 16 kTransaction Summary
=====================================================================================================================================================================================================
Install 5 Package(s)Total download size: 1.6 M
Installed size: 6.1 M
Is this ok [y/N]: y
Downloading Packages:
(1/5): gd-2.0.35-10.el6.x86_64.rpm | 142 kB 00:00
(2/5): nagios-3.4.1-2.el6.x86_64.rpm | 1.2 MB 00:13
(3/5): nagios-common-3.4.1-2.el6.x86_64.rpm | 16 kB 00:00
(4/5): nagios-devel-3.4.1-2.el6.x86_64.rpm | 17 kB 00:00
(5/5): nrpe-2.13-1.el6.x86_64.rpm | 221 kB 00:03
—————————————————————————————————————————————————————————————————–
Total 85 kB/s | 1.6 MB 00:18
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : nagios-common-3.4.1-2.el6.x86_64 1/5
Installing : gd-2.0.35-10.el6.x86_64 2/5
Installing : nagios-3.4.1-2.el6.x86_64 3/5
Installing : nagios-devel-3.4.1-2.el6.x86_64 4/5
Installing : nrpe-2.13-1.el6.x86_64 5/5
Verifying : nagios-devel-3.4.1-2.el6.x86_64 1/5
Verifying : nrpe-2.13-1.el6.x86_64 2/5
Verifying : gd-2.0.35-10.el6.x86_64 3/5
Verifying : nagios-common-3.4.1-2.el6.x86_64 4/5
Verifying : nagios-3.4.1-2.el6.x86_64 5/5

Installed:
nagios-devel.x86_64 0:3.4.1-2.el6 nrpe.x86_64 0:2.13-1.el6

Dependency Installed:
gd.x86_64 0:2.0.35-10.el6 nagios.x86_64 0:3.4.1-2.el6 nagios-common.x86_64 0:3.4.1-2.el6

Complete!
[root@localhost ~]#

3. Start NRPE and add to start boot

[root@localhost ~]# /etc/init.d/nrpe start
Starting nrpe: [ OK ]
[root@localhost ~]# chkconfig nrpe on
[root@localhost ~]#

4. Check NRPE service

[root@localhost ~]# ps -ef | grep nrpe
nrpe 3433 1 0 11:05 ? 00:00:00 /usr/sbin/nrpe -c /etc/nagios/nrpe.cfg -d
root 3449 2933 0 11:07 pts/1 00:00:00 grep nrpe
[root@localhost ~]#

That’s all. Thanks for using IThelpblog.com

 

Leave a reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>