nrpe problem
narendran.neelamegam at wipro.com
narendran.neelamegam at wipro.com
Fri Oct 12 15:43:21 CEST 2007
Sukesh,
1. Can you execute this command and also check if you have proper
version of nrpe running on both client and server.
Without SSL
$./check_nrpe -H xxxxx -n
NRPE v2.9
With SSL
$./check_nrpe -H xxxxx
NRPE v2.9
2. Can you can run the nrpe command locally with check_nrpe
./check_nrpe -H localhost -c command
3. Can you see if the plugin are located as configured in the
nrpe.cfg?
4. Can you verify if nagios user has execute permission to run
plugins?
Regards,
Narendan Neelamegam
________________________________
From: nagios-users-bounces at lists.sourceforge.net
[mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of
tom.welsh at bt.com
Sent: Friday, October 12, 2007 3:59 PM
To: sukesh.v at jigrahak.com; nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] nrpe problem
Hi
________________________________
From: Sukesh /IT/BLR/JIG/IN [mailto:sukesh.v at jigrahak.com]
Sent: 12 October 2007 04:17
To: Welsh,T,Tom,DLS C
Subject: RE: [Nagios-users] nrpe problem
This is my remote host log messages
Oct 11 07:00:13 ngapps-prd xinetd[619]: START: nrpe pid=1767
from=192.168.1.84
Oct 11 07:00:15 ngapps-prd nrpe[1767]: Could not read request from
client, bailing out...
Oct 11 07:00:15 ngapps-prd xinetd[619]: EXIT: nrpe status=0 pid=1767
duration=2(sec)
________________________________
From: tom.welsh at bt.com [mailto:tom.welsh at bt.com]
Sent: Thursday, October 11, 2007 6:07 PM
To: sukesh.v at jigrahak.com; nagios-users at lists.sourceforge.net
Subject: RE: [Nagios-users] nrpe problem
From: nagios-users-bounces at lists.sourceforge.net
[mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Sukesh
/IT/BLR/JIG/IN
Sent: 11 October 2007 10:48
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] nrpe problem
Hi
Iam running nagios-3.0a4 and nrpe V2.8.1.iam not getting the result
while running ./check_nrpe -H <IP Address>. alreday no firewall is
running behind those servers .tried to put '-t' option also but didn't
work.Still iam able to telnet 5666 with out any problem/so please help
him for this.(iam able to access one server and client using nrpe daemon
other could not)/
Thanks,
Sukesh .
Hi Sukesh,
>From reading your email i take it you can sucessfully connect to the
remote NRPE host via telnet.
user2 at usel <mailto:user2 at usel> :~> telnet host1.somedomain.com 5666
Trying xxx.xxx.xxx.199...
Connected to host1.somedomain.com.
Escape character is '^]'.
If this is correct then NRPE is accepting connections.
You said in the previous mail that NRPE is working correctly on one
machine but not on another. This sounds like you have some configuration
differences between the two boxes.
We really need to have more details to help you with this problem.
What OS is running on the two remote boxes?
Is it the same OS on both boxes.
Can you send snippets off your configuration THAT RELATE TO nrpe?
NRPE.CFG. SERVICES.CFG CHECKCOMMAND.CFG etc
Have you carried out the following
Turn on debugging on the remote host running nrpe and see what comes out
in the logs?
To do this edit your nrpe.cfg file and turn debugging on
debugging=1
An example off NRPE debugging turned on
Oct 11 13:30:01 host1 nrpe[3950]: Added
command[check_dns1]=/usr/local/nagios/libexec/check_dns -H www.teeks.org
-w 1 -c 2
Oct 11 13:30:01 host1 nrpe[3950]: Added
command[check_swap]=/usr/local/nagios/libexec/check_swap -w 30% -c 20%
Oct 11 13:30:01 host nrpe[3950]: Added
command[check_ntp]=/usr/local/nagios/libexec/check_ntp -H xxx.xxx.xxx-t
15
Oct 11 13:30:01 host nrpe[3950]: INFO: SSL/TLS initialized. All network
traffic will be encrypted.
Oct 11 13:30:01 host nrpe[3950]: Handling the connection...
Hi Sukesh,
Please dont respond to me directly. Please respond via the mailing list.
Also please ost your reply comments at the bottom off teh email as it
makes it easier to read it in chronological order. Well enough off that
spagetti, back to your problem.
Your log extract
---------------<SNIP>---------------
Oct 11 07:00:13 ngapps-prd xinetd[619]: START: nrpe pid=1767
from=192.168.1.84
Oct 11 07:00:15 ngapps-prd nrpe[1767]: Could not read request from
client, bailing out...
Oct 11 07:00:15 ngapps-prd xinetd[619]: EXIT: nrpe status=0 pid=1767
duration=2(sec)
---------------<SNIP>---------------
This really does not tell me anything. I take it you have already
goggled for "nrpe + Could not read request from client, bailing out..."
and found the Nagios FAQ about this. It doset look like its your problem
but I dont know as you have provided only one piece off te information i
asked for.
So here we go again.
1.
>>"./check_nrpe -H <IP Address>. already no firewall is running behind
those servers .tried to put '-t' option also but didn't
>>work."
Please paste the output off the above command when you run it against
your two hosts. I take it you are running the check_nrpe command as the
user nagios?
Here is an example that I ran on my nagios server connecting to one off
my remote NRPE boxes
usel:~ # su - nagios
nagios at usel:~> id
uid=1001(nagios) gid=100(users) groups=100(users),1001(nagcmd)
/usr/local/nagios/libexec/check_nrpe -H xxx.xxx.xxx.xxx -p 5666
-c check_users
USERS OK - 0 users currently logged in |users=0;5;10;0
2.
>>Still I am able to telnet 5666 with out any problem/
Please paste in the output off your telnet sessions to both boxes and
the syslog/messages output on the remote hosts like I have below.
nagios at usel:~> telnet xxx.xxx.xxx.xxx 5666
Trying xxx.xxx.xxx.xxx...
Connected to xxx.xxx.xxx.xxx.
Escape character is '^]'.
3.
>>so please help him for this.
We will If you provide us with more information
4.
>> (iam able to access one server and client using nrpe daemon other
could not)
Show us. Post your output above as host1( working) host2(non-working)
The problem is probably going to be related to differences between your
two remote nrpe hosts. To understand this you need to tell us what OS
you are running on the boxes and also other relevant information. Things
like the following
4.1 OS Version
Host1 (working
Host2 (non-working)
4.2 ./configure syntax used to create makefile
Host1 (working
Host2 (non-working)
4.3 SSL - is it installed on both boxes and is the development libs also
there. something like "rpm -qa | grep ssl" on a Redhat box would show
you what ssl related stuff you have installed
Host1 (working
Host2 (non-working)
If you provide the above info it is entirely possible that whilst going
through the steps to gather the info you might actually "stumble"
across the cause off your problem.
I look forward to hearing back from you
Regards
Tom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20071012/39d995e7/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list