Page 1 of 2

Do I need Ports Opened on Server for NRPE Agent Install

Posted: Tue Mar 20, 2012 4:20 pm
by ethics13
Trying to get NRPE agents installed on our production machines. SA's are telling me that the fullinstall script for that process needs to go out to RPMForge and that they do not allow that network traffic

Code: Select all

#!/bin/sh

##########################################
# INSTALL YUM REPOS
##########################################

. ./init.sh

# See if we need to install RPMForge...
if ! rpm -q rpmforge-release &>/dev/null; then
	echo "Enabling RPMForge repo..."
	(
		cd /tmp
		URL=$(curl -s http://repoforge.org/use/ | grep -o "http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-[0-9.-]\+.$dist.rf.$basearch.rpm")
		curl -L -O "$URL"
		rpm -Uvh rpmforge-release*.rpm
		rm rpmforge-release*.rpm
	)
	yum check-update
fi
Can I get an explanation why I need to open up traffic to that site?

Thanks.

Re: Do I need Ports Opened on Server for NRPE Agent Install

Posted: Tue Mar 20, 2012 4:34 pm
by scottwilkerson
Certainly there are many ways to install the NRPE packages and plugins.

In our easy install script you are using we require some items from the rpmforge repo.

However you could install the packages directly through YUM, the packages you will need are nagios-plugins-nrpe and nrpe

One thing to note though is it won't come pre-configured to work, you might need to find where it installed the plugins, change the paths, manually add the allowed IP's etc..

Re: Do I need Ports Opened on Server for NRPE Agent Install

Posted: Tue Mar 20, 2012 5:51 pm
by ethics13
Thanks, is there a default dir it will put the configs? Do you know the name of the config files for NRPE by any chance?

Re: Do I need Ports Opened on Server for NRPE Agent Install

Posted: Wed Mar 21, 2012 11:00 am
by scottwilkerson
The default is nrpe.cfg however it can also include configs of other names...

Re: Do I need Ports Opened on Server for NRPE Agent Install

Posted: Wed May 09, 2012 10:47 am
by ethics13
Scott, I am getting errors when I try to install:


# rpm -ivh nagios-nrpe-2.5.2-1.el5.rf.x86_64.rpm
warning: nagios-nrpe-2.5.2-1.el5.rf.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
error: Failed dependencies:
nagios-plugins is needed by nagios-nrpe-2.5.2-1.el5.rf.x86_64

Which NRPE and NRPE plugins should I be downloading/installing?

Thanks.

Re: Do I need Ports Opened on Server for NRPE Agent Install

Posted: Wed May 09, 2012 12:25 pm
by scottwilkerson

Re: Do I need Ports Opened on Server for NRPE Agent Install

Posted: Wed May 09, 2012 1:47 pm
by ethics13
Has another dependency

Yum is not detecting those packages so I cannot install them.

# uname -a
Linux servername 2.6.18-308.el5 #1 SMP Fri Jan 27 17:17:51 EST 2012 x86_64 x86_64 x86_64 GNU/Linux
# ls -al
total 107576
drwxr-xr-x 2 username 20673 4096 May 9 14:40 .
drwxr-xr-x 50 username 20673 4096 May 3 16:10 ..
-rwxr--r-- 1 username 20673 8217639 Mar 20 13:25 linux-nrpe-agent.tar.gz
-rwxr--r-- 1 username 20673 34164 May 9 11:08 nagios-nrpe-2.5.2-1.el5.rf.x86_64.rpm
-rwxr--r-- 1 username 20673 2004555 May 9 14:40 nagios-plugins-1.4.15-2.el5.rf.x86_64.rpm
-rwxr--r-- 1 username 20673 19466 May 9 11:08 nagios-plugins-nrpe-2.5.2-1.el5.rf.x86_64.rpm
-rwxr--r-- 1 username 20673 411768 Mar 23 16:25 nrpe-2.13.tar.gz
-rwxr--r-- 1 username 20673 39613064 Oct 27 2011 xi-2011r1.7.tar.gz
-rwxr--r-- 1 username 20673 30908079 Nov 30 18:54 xi-2011r1.8.tar.gz
-rwxr--r-- 1 username 20673 28788124 Mar 12 18:54 xi-2011r2.2.tar.gz
# rpm -ivh nagios-plugins-1.4.15-2.el5.rf.x86_64.rpm
warning: nagios-plugins-1.4.15-2.el5.rf.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
error: Failed dependencies:
fping is needed by nagios-plugins-1.4.15-2.el5.rf.x86_64
perl(Net::SNMP) is needed by nagios-plugins-1.4.15-2.el5.rf.x86_64

# yum list | grep -i ping

# yum list | grep -i Net::SNMP

Re: Do I need Ports Opened on Server for NRPE Agent Install

Posted: Wed May 09, 2012 3:10 pm
by scottwilkerson

Code: Select all

yum install perl(Net::SNMP) fping -y
rpm -ivh nagios-plugins-1.4.15-2.el5.rf.x86_64.rpm

Re: Do I need Ports Opened on Server for NRPE Agent Install

Posted: Fri May 11, 2012 7:37 am
by ethics13
Yum list does not have any knowledge of perl(Net::SNMP) or fping.

Re: Do I need Ports Opened on Server for NRPE Agent Install

Posted: Fri May 11, 2012 11:09 am
by scottwilkerson
This is why our fullinstall script needs network access, so it can go out to the repositories and get the required packages...