connection timed out
hrishy
hrishys at yahoo.co.uk
Wed Jan 8 07:29:37 CET 2003
Hi Showkilr
Yep i have done this ....
if i specify the port number it seems to be working
./check_nrpe -H 176.1.111.89 -p 5666 -c check_users
USERS OK - 2 users currently logged in
so in my commnads.cfg now i have coded
define command{
command_name check_nrpe
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -p
5666 -c $ARG1$
}
regards
Hrishy
--- Showkilr <sysadmin at showkilr.com> wrote: > In your
nrpe.cfg on the remote server your trying to
> check
> there is a line allowed_hosts=
>
> by default it reads
>
> allowed_hosts=127.0.0.1
>
> change it to read something like this
>
> allowed_hosts=127.0.0.1,192.168.0.1
>
>
> 192.168.0.1 being the monitoring server interface IP
>
> Showkilr
>
>
> On Wed, 2003-01-08 at 00:18, hrishy wrote:
> > Hi Showkilr
> >
> > so you are the developer..hmm..nice thats really
> > cool..i am excited talki to you ;-D..
> >
> > now to the problem..
> >
> > when i run the command
> >
> > ./check_nrpe -H 176.1.111.89 -c check_disk1
> >
> > Connection refused by host
> >
> > wheras earlier i never had this problem
> >
> >
> >
> >
> > --- hrishy <hrishys at yahoo.co.uk> wrote: > Hio
> > Showkilr
> > >
> > > Well dude once agin your suggestion worked like
> > > charm..;-D..but i guess there is a port
> problem..
> > >
> > > now i am getting the error connection refused by
> > > host
> > >
> > > ./check_nrpe -H 192.168.50.122 -c check_disk1
> > > Connection refused or timed out
> > >
> > > well thats strange..because earlier i never had
> thsi
> > > problem..
> > >
> > > regards
> > > Hrishy
> > >
> > >
> > > --- Showkilr <sysadmin at showkilr.com> wrote: > I
> > > have
> > > the current CVS build. and since 1.7 -H is in
> > > > there
> > > >
> > > > Usage: /usr/lib/nagios/plugins/check_nrpe -H
> > > > <host_address> [-p port]
> > > > [-c command] [-wt warn_time] [-ct crit_time]
> [-to
> > > > to_sec]
> > > >
> > > > you can test the check_nrpe from the command
> line.
> > > >
> > > > /usr/lib/nagios/plugins/check_nrpe
> 192.168.50.122
> > > -c
> > > > check_disk1 =
> > > > Failure
> > > >
> > > > /usr/lib/nagios/plugins/check_nrpe -H
> > > 192.168.50.122
> > > > -c check_disk1 =
> > > > Sucess
> > > >
> > > >
> > > > Showkilr
> > > >
> > > >
> > > > On Tue, 2003-01-07 at 23:43, donavan nelson
> wrote:
> > > > > I don't have the -H in mine. I'm running
> the
> > > > latest released versions of the
> > > > > plugins and nagios.
> > > > >
> > > > > hrishy, what versions are you running?
> > > > >
> > > > > .dn
> > > > >
> > > > > --
> > > > > Donavan Nelson
> > > > > 4wx Networks
> > > > > www.4wx.net
> > > > >
> > > > > ---------- Original Message -----------
> > > > > From: Showkilr <sysadmin at showkilr.com>
> > > > > To: hrishy <hrishys at yahoo.co.uk>
> > > > > Sent: 07 Jan 2003 23:37:53 -0600
> > > > > Subject: Re: [Nagios-users] incoorect
> command
> > > line
> > > > arguments supplied
> > > > >
> > > > > > 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
>
=== 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
More information about the Users
mailing list