incoorect command line arguments supplied

donavan nelson donavan at 4wx.net
Wed Jan 8 07:04:32 CET 2003


I have version 1.5 of check_nrpe....and my check_nrpe does work from the
command line.  My mistake.  I must of had a configuration error....ekkk,
sorry.  I can even prove it :D

[donavan at shzaam libexec]$ ./check_nrpe 192.168.94.253 -p 7777 -c check_public
Traffic ok - Ave. In = 1.2 KB/s, Ave. Out = 861.0 B/s

When you run

./check_nrpe -H 176.1.111.89 -p 5666 -c check_disk1

what happens?  Below, it looks like you have command line parameters for the
check_disk1 command, this would be incorrect.  These go in the nrpe config
file on the sun box.

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

---------- Original Message -----------
From: hrishy <hrishys at yahoo.co.uk>
To: donavan nelson <donavan at 4wx.net>, nagios-users
<nagios-users at lists.sourceforge.net>
Sent: Wed, 8 Jan 2003 05:51:06 +0000 (GMT)
Subject: Re: [Nagios-users] incoorect command line arguments supplied

> Hi Donavan
> 
> well when i tried from the command line of the nagios
> linux box i am able to run the check_nrpe 
> 
> ./check_nrpe -H 176.1.111.89 -p 5666 -c check_users
> USERS OK - 2 users currently logged in
> 
> and that command is sucessfull..
> 
> regards
> Hrishy
> 
>  --- donavan nelson <donavan at 4wx.net> wrote: > you can
> not use check_nrpe from the command line (I
> > tried :) ) it must be used
> > from within nagios.  That will eliminate that
> > frustration.
> > 
> > Have you tried it from within the nagios config
> > files?
> > 
> > .dn
> > 
> > --
> > Donavan Nelson
> > 4wx Networks
> > www.4wx.net
> > 
> > ---------- Original Message -----------
> > From: hrishy <hrishys at yahoo.co.uk>
> > To: donavan nelson <donavan at 4wx.net>, nagios-users
> > <nagios-users at lists.sourceforge.net>
> > Sent: Wed, 8 Jan 2003 05:27:13 +0000 (GMT)
> > Subject: Re: [Nagios-users] incoorect command line
> > arguments supplied
> > 
> > > Hi Donovan
> > > 
> > > LOL..thanks for that encouragement..;-D..
> > > 
> > > 1)Yeah nrpe is restarted on the soalris box
> > > 2)Nagios is restarted on the Linux box
> > > 3)There is no firewall between them
> > > 4)I am able to do ping from the linux box to the
> > > solaris machine
> > > 
> > > well from the commnad line of the nagios box..if i
> > > type
> > > ./check_nrpe -H 176.1.111.89 -p 5666 -c
> > check_users \ 
> > > 
> > > > -wt 20 -ct 10 -to 5
> > > 
> > > i am still getting
> > > Incorrect command line arguments supplied
> > > 
> > > am i missing something..
> > > 
> > > regards
> > > Hrishy
> > >  --- donavan nelson <donavan at 4wx.net> wrote: >
> > that is
> > > what I would expect.  are you doing any
> > > > other check_nrpe commands?  It
> > > > might give us a clue as to were to look next. 
> > I'm
> > > > sure you have restarted
> > > > nrpe on the solaris box and nagios on the nagios
> > > > server?  Any firewalls or
> > > > other network gadgets between you and the
> > solaris
> > > > box?
> > > > 
> > > > And can you ping from the nagios server to the
> > > > solaris box?  (I'm sure this is
> > > > way to basic at this point :) )
> > > > 
> > > > My time isn't too valuable right now....but you
> > are
> > > > welcome.
> > > > 
> > > > .dn
> > > > 
> > > > --
> > > > Donavan Nelson
> > > > 4wx Networks
> > > > www.4wx.net
> > > > 
> > > > ---------- Original Message -----------
> > > > From: hrishy <hrishys at yahoo.co.uk>
> > > > To: donavan nelson <donavan at 4wx.net>,
> > nagios-users
> > > > <nagios-users at lists.sourceforge.net>
> > > > Sent: Wed, 8 Jan 2003 05:06:43 +0000 (GMT)
> > > > Subject: Re: [Nagios-users] incoorect command
> > line
> > > > arguments supplied
> > > > 
> > > > > Hi Donovan
> > > > > 
> > > > > The format of command is 
> > > > > 
> > > > > define command{
> > > > > command_name    check_nrpe
> > > > > command_line   
> > > > /usr/local/nagios/libexec/check_nrpe
> > > > > $HOSTADDRESS$ -c $ARG1$
> > > > >         }
> > > > > 
> > > > > is this command format right ? And oofcourse
> > > > thanks
> > > > > for takin your valuable timeout to respond ;-D
> > > > > 
> > > > > regards
> > > > > Hrishy
> > > > > 
> > > > ***MONSTER SNIP*** 
> > > 
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Everything you'll ever need on one web page
> > > from News and Sport to Email and Music Charts
> > > http://uk.my.yahoo.com
> > ------- End of Original Message -------
> > 
> > 
> > 
> >
> -------------------------------------------------------
> > 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 
> 
> __________________________________________________
> Do You Yahoo!?
> Everything you'll ever need on one web page
> from News and Sport to Email and Music Charts
> http://uk.my.yahoo.com
------- 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