LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 04-25-2005, 12:45 PM   #1
kaplan71
Member
 
Registered: Nov 2003
Posts: 718

Rep: Reputation: 39
Unable to Connect to Specific Port


Hi there --

We have a server running Fedora Core 3 and I have modified the /etc/services file to open port 5666 to allow TCP connections. The syntax of the newly added line is as follows:

nrpe 5666/tcp # NRPE

After the line was added I stopped and restarted xineted via the startup script /etc/init.d/xinetd. After that, I tested the port's accessibility via telnet from a Windows 2000 workstation. The command syntax used there was:

telnet <hostname> 5666

The result was an error message saying connection could not be established. I verified the system could be pinged and also was found via nslookup.

What else do I need to check for in order to correct this problem? Thanks.
 
Old 04-25-2005, 01:52 PM   #2
benjithegreat98
Senior Member
 
Registered: Dec 2003
Location: Shelbyville, TN, USA
Distribution: Fedora Core, CentOS
Posts: 1,019

Rep: Reputation: 45
I don't know how nrpe would be started exactly, but editing the /etc/services file would not start it. See if there is an nrpe startup file in /etc/init.d . An example might be /etc/init.d/nrpe start . You can look to see what services are actively listening on ports by using this command: netstat -pantu

Also, if it is running you may need to allow that port to be let through your firewall. Do you have a firewall running right now?

Last edited by benjithegreat98; 04-25-2005 at 01:54 PM.
 
Old 04-25-2005, 02:21 PM   #3
kaplan71
Member
 
Registered: Nov 2003
Posts: 718

Original Poster
Rep: Reputation: 39
< I don't know how nrpe would be started exactly, but editing the /etc/services file would not start it. See if there is an nrpe startup file in < /etc/init.d . An example might be /etc/init.d/nrpe start .

The nrpe client is normally started via a script in the /etc/xinetd.d directory. The syntax of the script is the following:

flags = REUSE
socket_type = STREAM
wait = no
user = root
server = /usr/local/nagios/bin/nrpe
server_args = -c /usr/local/nagios/etc/nrpe.cfg --inetd
log_on_failure += USERID
disable = no
only_from = < ip address >

The permissions for the file itself are: -rw-r--r-- 1 root root 311 <date> nrpe

< You can look to see what services are actively listening on ports by using this command: netstat -pantu

The results of the above command indicated that the 5666 port is not being actively listened upon.

< Also, if it is running you may need to allow that port to be let through your firewall. Do you have a firewall running right now?

I ran the setup command within xterm and checked the status of the firewall. The utility indicated the firewall was disabled.
 
Old 04-25-2005, 04:01 PM   #4
tormented_one
Member
 
Registered: Oct 2004
Location: Small Town USA
Distribution: slamd64 2.6.12 Slackware 2.4.32 Windows XP x64 pro
Posts: 383

Rep: Reputation: 30
I know nothing about nrpe, just so you know. Can you open it manually with the command $nrpe 5666/tcp ? If not then it probably cant be started like that in a script. Can nrpe be accessed by telnet?
 
Old 04-25-2005, 04:32 PM   #5
benjithegreat98
Senior Member
 
Registered: Dec 2003
Location: Shelbyville, TN, USA
Distribution: Fedora Core, CentOS
Posts: 1,019

Rep: Reputation: 45
I was curious and installed the rpms to nrpe..... It installed a startup file called /etc/init.d/nrpe . Do you have that file? You could disable the xinit version of nrpe and just call /etc/init.d/nrpe start to get it started. Do you have a file called /etc/init.d/nrpe ?
 
Old 04-27-2005, 03:53 AM   #6
johnnydangerous
Member
 
Registered: Jan 2005
Location: Sofia, Bulgaria
Distribution: Fedora Core 4 Rawhide
Posts: 431

Rep: Reputation: 30
what is that nrpe for?
 
Old 04-27-2005, 03:28 PM   #7
tormented_one
Member
 
Registered: Oct 2004
Location: Small Town USA
Distribution: slamd64 2.6.12 Slackware 2.4.32 Windows XP x64 pro
Posts: 383

Rep: Reputation: 30
I don't know???? What is it for?
 
Old 04-28-2005, 07:16 AM   #8
kaplan71
Member
 
Registered: Nov 2003
Posts: 718

Original Poster
Rep: Reputation: 39
Guys --

First off -- Thank-you for your replies to my e-mail. I tried a different tact where instead of using the xinetd approach to starting the file, I had the file activated into "daemon" mode via /etc/rc.local. That appears to have solved the problem. I'm sorry I had not replied sooner to your responses.

Second -- The question was asked: what is nrpe for? Simply put, it is the client program or agent that is installed on remote computers that allow the Nagios server to send requests to the remote systems and get responses. The NRPE program can be configured to poll the
client system for things like disk usage, cpu load, and so on. If you have any other questions, let me know.
 
Old 04-28-2005, 10:01 AM   #9
johnnydangerous
Member
 
Registered: Jan 2005
Location: Sofia, Bulgaria
Distribution: Fedora Core 4 Rawhide
Posts: 431

Rep: Reputation: 30
can you tell the URL?>
 
Old 04-28-2005, 12:34 PM   #10
kaplan71
Member
 
Registered: Nov 2003
Posts: 718

Original Poster
Rep: Reputation: 39
Sure, it is:
www.nagios.org
 
Old 05-09-2005, 05:31 AM   #11
Aparna1
LQ Newbie
 
Registered: May 2005
Location: India
Posts: 1

Rep: Reputation: 0
Nrpe err

Hi there
i have the same problem.how do i enable the port 5666.
I have made the nrpe deamon run on my remote host.
but having problem on my application server

let me knw

Thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Display users on specific Port peter_jansen Linux - Networking 4 06-01-2004 03:22 PM
DNS entry to specific Port? paintcheck200 Linux - Networking 2 05-03-2004 10:22 AM
Null routing to one specific IP/Port astroboy5714 Linux - Networking 1 03-12-2004 06:51 AM
routing on a specific port stapper Linux - Networking 0 10-10-2002 01:08 PM
Telnet to a specific port... Harbinger Linux - Networking 1 01-28-2001 10:41 AM


All times are GMT -5. The time now is 03:46 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration