Nrpe Error Message

Kaplan, Andrew H. AHKAPLAN at PARTNERS.ORG
Wed Jan 8 19:24:53 CET 2003


When I ran the command on the remote host as follows:

./check_disk -w 80 -c 60 /dev/hda1

I got the following:

DISK OK - [14786 kB (33%) free on /dev/sda1]

The command syntax in nrpe.cfg file is as follows:

command[check_disk2]=/usr/local/nagios/libexec/check_disk -w 10 -c 5
/dev/sda1

I am still getting the incorrect command line arguments supplied error
message on service detail page.




-----Original Message-----
From: donavan nelson [mailto:donavan at 4wx.net]
Sent: Wednesday, January 08, 2003 1:05 PM
To: Kaplan, Andrew H.
Subject: RE: [Nagios-users] Nrpe Error Message


arguments for nrpe go in the nrpe.cfg file on the remote host.

it is a 3 part setup

1. add a service on the nagios server (services.cfg)
2. verify or add a check_nrpe entry on the nagios server (checkcommands.cfg)
3. configure the check on the remote host (test it at the command line first
;) )

.dn

--
Donavan Nelson
4wx Networks
www.4wx.net

---------- Original Message -----------
From: "Kaplan, Andrew H." <AHKAPLAN at PARTNERS.ORG>
To: 'Jeremy Tinley' <jtinley at unirez.com>
Sent: Wed, 8 Jan 2003 12:37:09 -0500
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
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
------- End of Original Message -------


-------------------------------------------------------
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