Do I need Ports Opened on Server for NRPE Agent Install

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
ethics13
Posts: 6
Joined: Tue Mar 20, 2012 3:42 pm

Do I need Ports Opened on Server for NRPE Agent Install

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

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

Post 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..
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
ethics13
Posts: 6
Joined: Tue Mar 20, 2012 3:42 pm

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

Post 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?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

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

Post by scottwilkerson »

The default is nrpe.cfg however it can also include configs of other names...
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
ethics13
Posts: 6
Joined: Tue Mar 20, 2012 3:42 pm

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

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

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

Post by scottwilkerson »

Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
ethics13
Posts: 6
Joined: Tue Mar 20, 2012 3:42 pm

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

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

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

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
ethics13
Posts: 6
Joined: Tue Mar 20, 2012 3:42 pm

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

Post by ethics13 »

Yum list does not have any knowledge of perl(Net::SNMP) or fping.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

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

Post by scottwilkerson »

This is why our fullinstall script needs network access, so it can go out to the repositories and get the required packages...
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked