Nrpe Error Message
Kaplan, Andrew H.
AHKAPLAN at PARTNERS.ORG
Wed Jan 8 19:51:52 CET 2003
The file reads as follows:
# default: on
# description: NRPE
service nrpe
{
disable = no
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/local/nagios/nrpe
server_args = -i /usr/local/nagios/nrpe.cfg
log_on_failure += USERID
only_from = 132.183.12.125
}
-----Original Message-----
From: Jeremy Tinley [mailto:jtinley at unirez.com]
Sent: Wednesday, January 08, 2003 1:47 PM
To: Kaplan, Andrew H.
Subject: RE: [Nagios-users] Nrpe Error Message
Ok, what's the /etc/xinetd.d/nrpe file look like?
-----Original Message-----
From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG]
Sent: Wednesday, January 08, 2003 12:44 PM
To: 'Jeremy Tinley'
Cc: 'Nagios-users at lists.sourceforge.net'
Subject: RE: [Nagios-users] Nrpe Error Message
I am running nrpe under xinetd.
I did a netstat -a | grep 5666 and there was no output. I was returned to a
shell prompt.
Nrpe.cfg is located at /usr/local/nagios
Anything else?
-----Original Message-----
From: Jeremy Tinley [mailto:jtinley at unirez.com]
Sent: Wednesday, January 08, 2003 1:36 PM
To: Kaplan, Andrew H.
Subject: RE: [Nagios-users] Nrpe Error Message
Ok, take one giant step backwards.
How are you running nrpe? As a daemon or xinetd/inetd?
Now do a netstat -a | grep 5666
What's the output?
Now, where is nrpe.cfg?
-----Original Message-----
From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG]
Sent: Wednesday, January 08, 2003 12:34 PM
To: 'Jeremy Tinley'
Cc: 'Nagios-users at lists.sourceforge.net'
Subject: RE: [Nagios-users] Nrpe Error Message
The messages log file had the following entries:
Server /usr/local/nagios/nrpe is not executable [line=10]
nrpe[26725]: Unable to open config file '//nrpe.cfg' for reading
Config file '//nrpe.cfg' contained errors, bailing out...
What gives?
-----Original Message-----
From: Jeremy Tinley [mailto:jtinley at unirez.com]
Sent: Wednesday, January 08, 2003 1:07 PM
To: Kaplan, Andrew H.
Subject: RE: [Nagios-users] Nrpe Error Message
check_disk? Or check)disk. Not sure if you just made a typo on the command
back into the email.
Check the log on oneofxeon, probably in /var/log/messages to see what's
going
on. That usually means that you don't have permission to connect (ala,
/etc/hosts.allow if you run under (x)inetd or the nrpe.cfg file if you
don't.
-----Original Message-----
From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG]
Sent: Wednesday, January 08, 2003 11:55 AM
To: 'Jeremy Tinley'
Subject: RE: [Nagios-users] Nrpe Error Message
I entered in the following:
./check_nrpe -H oneofxeon -p 5666 -c check)disk
and got the following:
CHECK_NRPE: Error receiving data from host.
-----Original Message-----
From: Jeremy Tinley [mailto:jtinley at unirez.com]
Sent: Wednesday, January 08, 2003 12:49 PM
To: Kaplan, Andrew H.
Subject: RE: [Nagios-users] Nrpe Error Message
Perhaps I gave you the wrong command.. lowercase c, instead of capital:
$ ./check_nrpe -H db1 -p 5666 -c check_disk_var
DISK OK - [4632496 kB (96%) free on /dev/sda8]
-----Original Message-----
From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG]
Sent: Wednesday, January 08, 2003 11:46 AM
To: 'Jeremy Tinley'
Subject: RE: [Nagios-users] Nrpe Error Message
Here's what I entered:
./check_nrpe -H oneofxeon -p 5666 -C check_disk -w 80 -c 95
I got the same error message.....
I also tried
./check_nrpe -H oneofxeon -p 5666 -C check_disk
and got the same result....
-----Original Message-----
From: Jeremy Tinley [mailto:jtinley at unirez.com]
Sent: Wednesday, January 08, 2003 12:41 PM
To: Kaplan, Andrew H.
Subject: RE: [Nagios-users] Nrpe Error Message
You have to specify -C check_disk
It's the same command in the square brackets:
command[check_users]=....
-----Original Message-----
From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG]
Sent: Wednesday, January 08, 2003 11:37 AM
To: 'Jeremy Tinley'
Cc: 'Nagios-users at lists.sourceforge.net'
Subject: RE: [Nagios-users] Nrpe Error Message
The command that I entered at the monitoring host was
./check_nrpe -H oneofxeon -p 5666 -C /usr/local/nagios/libexec/check_disk -w
80 -c 95
The result was INCORRECT COMMAND LINE ARGUMENTS SUPPLIED
What gives?
-----Original Message-----
From: Jeremy Tinley [mailto:jtinley at unirez.com]
Sent: Wednesday, January 08, 2003 11:49 AM
To: Kaplan, Andrew H.
Subject: RE: [Nagios-users] Nrpe Error Message
Try running the check_nrpe command from the monitoring host.
check_nrpe -H <host> -p <port> -C check_userrs
see if that gets you any further.
I noticed that -H and -p were added in the change from nrpe 1.5 to 1.6
-J
-----Original Message-----
From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Kaplan,
Andrew
H.
Sent: Wednesday, January 08, 2003 10:33 AM
To: 'Carroll, Jim P [Contractor]'
Cc: Nagios-users at lists.sourceforge.net
Subject: RE: [Nagios-users] Nrpe Error Message
Things got a little better since I sent out my e-mail. I am getting a
connection
to
to the remote client. Now I am getting an INCORRECT COMMAND LINE ARGUMENTS
SUPPLIED
error.
When I run the check from the command line, it comes out fine.
Here is the syntax of the nrpe.cfg file on the client:
command[check_users]=/usr/local/nagios/libexec/check_users 50 80
command[check_disk1]=/usr/local/nagios/libexec/check_disk 80 95 /dev/sda8
command[check_load]=/usr/local/nagios/libexec/check_load 15,10,5 30,25,20
command[check_procs]=/usr/local/nagios/libexec/check_procs 150 200
What is going on?
-----Original Message-----
From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com]
Sent: Wednesday, January 08, 2003 11:05 AM
To: Kaplan, Andrew H.; Nagios-users at lists.sourceforge.net
Subject: RE: [Nagios-users] Nrpe Error Message
And running check_nrpe from the command line...? Pass or fail...?
jc
> -----Original Message-----
> From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG]
> Sent: Wednesday, January 08, 2003 9:00 AM
> To: Nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Nrpe Error Message
>
>
> I installed the latest nrpe client on a remote machine, and
> also copied the
> necessary
> plugins from the nagios server to the client. The nrpe.cfg
> file was modified
> to suit the
> remote machine's configuration. When I tried to monitor the
> various services
> on the client
> I was confronted with the following error message:
>
> Return code of 127 is out of bounds - plugin may be missing.
>
> I am running Nagios 1.0 with the latest nrpe client as well
> as the latest
> nagios plug-ins.
>
> There were no apparent problems with compiling and installing the nrpe
> client on the remote machine.
>
> The /etc/xinetd.d services were restarted after the nrpe install was
> complete.
>
> The nagios server is running on a Red Hat 8.0 box and the
> remote client is
> Red Hat 7.3
>
>
>
>
> -------------------------------------------------------
> This SF.NET email is sponsored by:
> SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
> http://www.vasoftware.com
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
>
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
More information about the Users
mailing list