incoorect command line arguments supplied
Showkilr
sysadmin at showkilr.com
Wed Jan 8 06:54:37 CET 2003
Yes $USER1$ is defined in resource.cfg
it is set to the path of the plugins.
# Sets $USER1$ to be the path to the plugins
$USER1$=/usr/lib/nagios/plugins
# Sets $USER2$ to be the path to event handlers
#$USER2$=/usr/lib/nagios/plugins/eventhandlers
Showkilr
On Tue, 2003-01-07 at 23:46, hrishy wrote:
> Hi Showkillr
>
> why is $USER1$ necessary did you define this macro
> somewhere ? I did not understand the meaning of
> $USER1$
>
>
> also from the command line when i say from the nagios
> box..it works..where 176.1.111.89 is my sun solaris
> box and port number is 5666
>
> ./check_nrpe -H 176.1.111.89 -p 5666 -c check_users
> USERS OK - 2 users currently logged in
>
> regards
> Hrishy
>
>
>
> --- Showkilr <sysadmin at showkilr.com> wrote: > Here is
> what needs to be in the checkcommand.cfg for
> > check_nrpe to work
> >
> > define command{
> > command_name check_nrpe
> > command_line $USER1$/check_nrpe -H
> > $HOSTADDRESS$ -c $ARG1$
> > }
> >
> > Showkilr
> >
> >
> > On Tue, 2003-01-07 at 23:06, hrishy wrote:
> > > 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
> > >
> > >
> > >
> > > --- donavan nelson <donavan at 4wx.net> wrote: >
> > what is
> > > the format of your check_nrpe entry in
> > > > chkcommands.cfg?
> > > >
> > > > --
> > > > Donavan Nelson
> > > > 4wx Networks
> > > > www.4wx.net
> > > >
> > > > ---------- Original Message -----------
> > > > From: hrishy <hrishys at yahoo.co.uk>
> > > > To: donavan nelson <donavan at 4wx.net>
> > > > Sent: Wed, 8 Jan 2003 04:19:21 +0000 (GMT)
> > > > Subject: Re: [Nagios-users] incoorect command
> > line
> > > > arguments supplied
> > > >
> > > > > Hi Donavan
> > > > >
> > > > > Yep I have tried that...when i try that on the
> > > > solaris
> > > > > box it works does not complain at all..
> > > > >
> > > > > when i try from my nagios host..only then this
> > > > message
> > > > > is thrown up
> > > > >
> > > > > regards
> > > > > Hrishy
> > > > >
> > > > > --- donavan nelson <donavan at 4wx.net> wrote: >
> > run
> > > > the
> > > > > check_disk on the command line on the sun
> > > > > > box to get the arguments
> > > > > > sorted. change the config file, restart
> > nrpe
> > > > and
> > > > > > all should be good.
> > > > > >
> > > > > > --
> > > > > > Donavan Nelson
> > > > > > 4wx Networks
> > > > > > www.4wx.net
> > > > > >
> > > > > > ---------- Original Message -----------
> > > > > > From: hrishy <hrishys at yahoo.co.uk>
> > > > > > To: nagios-users at lists.sourceforge.net
> > > > > > Sent: Tue, 7 Jan 2003 10:08:30 +0000 (GMT)
> > > > > > Subject: [Nagios-users] incoorect command
> > line
> > > > > > arguments supplied
> > > > > >
> > > > > > > Hi All
> > > > > > >
> > > > > > > My nagios host is running linux from where
> > i
> > > > want
> > > > > > to
> > > > > > > monitor my sun machine.My services.cfg
> > file on
> > > > > > nagios
> > > > > > > host is like this
> > > > > > >
> > > > > > > define service{
> > > > > > > use generic-service ;
> > > > > > > host_name unix1
> > > > > > > service_description /dev/dsk/c0t0d0s0
> > Free
> > > > > > Space
> > > > > > > is_volatile 0
> > > > > > > check_period 24x7
> > > > > > > max_check_attempts 3
> > > > > > > normal_check_interval 5
> > > > > > > retry_check_interval 1
> > > > > > > contact_groups unix-admins
> > > > > > > notification_interval 120
> > > > > > > notification_period 24x7
> > > > > > > notification_options w,u,c,r
> > > > > > > check_command check_nrpe!check_disk1
> > > > > > > }
> > > > > > >
> > > > > > > and the /etc/nrpe.cfg file on the sun
> > solaris
> > > > > > machine
> > > > > > > has the following lines in it..
> > > > > > >
> > > > > > >
> > > > > >
> > > >
> > command[check_disk1]=/usr/nagios/libexec/check_disk
> > > > > > -w
> > > > > > > 20 -c 10 -m /usr
> > > > > > >
> > > > > > > I am getting incorrect command line
> > arguments
> > > > > > > supplied..while as when i run the command
> > in
> > > > stand
> > > > > > > alone mode on the sun server it works..
> > > > > > >
> > > > > > > Can anybody help..why this is happening
> > > > > > >
> > > > > > > regards
> > > > > > > Hrishy
> > > > > > >
> > > > > > >
> > > >
> > __________________________________________________
> > > > > > > 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
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> -------------------------------------------------------
> > > > > > > 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 -------
> > > > > >
> > > > >
> > > > >
> > __________________________________________________
> > > > > 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
> >
> > >
> > > __________________________________________________
> >
> === message truncated ===
>
> __________________________________________________
> 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
>
>
> -------------------------------------------------------
> 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