nrpe not working
Carroll, Jim P [Contractor]
jcarro10 at sprintspectrum.com
Mon Nov 25 23:34:53 CET 2002
Do the following, then try your tests again:
pkill -12 xinetd
Let us know how it goes.
jc
> -----Original Message-----
> From: Jeff McKeon [mailto:jsm at inpro.net]
> Sent: Monday, November 25, 2002 3:51 PM
> To: Carroll, Jim P [Contractor]
> Cc: Nagios List
> Subject: RE: [Nagios-users] nrpe not working
>
>
> Telnet to host on 5666:
>
> --snip--
>
> [jsm at rh80-jsm jsm]$ telnet 10.32.1.12 5666
> Trying 10.32.1.12...
> Connected to 10.32.1.12.
> Escape character is '^]'.
> Connection closed by foreign host.
>
> --snip--
>
> run ./check_nrpe localy on target host:
>
> --snip--
>
> [root at db02tc07927 libexec]# ./check_nrpe localhost -c check_disk1
> CHECK_NRPE: Received 0 bytes. Are we allowed to connect to the host?
>
> --snip--
>
> On Mon, 2002-11-25 at 16:17, Carroll, Jim P [Contractor] wrote:
> > Try telnetting to port 5666 on the target host; see if you
> get a connection.
> >
> > Try installed check_nrpe on the target host and doing this command:
> >
> > ./check_nrpe localhost -c check_disk1
> >
> > Let us know how that goes.
> >
> > jc
> >
> > > -----Original Message-----
> > > From: Jeff McKeon [mailto:jsm at inpro.net]
> > > Sent: Monday, November 25, 2002 2:32 PM
> > > To: Nagios List
> > > Subject: [Nagios-users] nrpe not working
> > >
> > >
> > > Hey guys/gals,
> > >
> > > Needed to set up linux disk monitoring of a remote host.
> downloaded
> > > nrpe (as suggested by mailing list) and installed the
> daemon on the
> > > remote host according to the directions. Also copied the
> check_disk
> > > plugin to that remote server.
> > >
> > > installed on the nagios host server and coped the
> check_nrpe to the
> > > /usr/local/nagios/libexec dir.
> > >
> > > confirmed that a check_disk command issued at the command
> prompt will
> > > work on the remote host. So at least I know that works...
> > >
> > > Left the nrpe.cfg file as is, placed it in the /etc/ dir.
> > >
> > > below is the nrpe xinetd file I've modified.
> > >
> > > Problem::::
> > >
> > > If on the nagios host machine I issue:
> > >
> > > [jsm at rh80-jsm jsm]$ cd /usr/local/nagios/libexec/
> > > [jsm at rh80-jsm libexec]$ ./check_nrpe 10.32.1.12 -c check_disk1
> > > CHECK_NRPE: Error receiving data from host.
> > > [jsm at rh80-jsm libexec]$
> > >
> > > I get the error shown.
> > >
> > > If I look on the remote host in the var/log/messages file I get:
> > >
> > > Nov 25 20:12:37 db02tc07927 xinetd[2777]: execv(
> > > /usr/local/nagios/libexec ) failed: Permission denied (errno = 13)
> > >
> > > Any suggestions on what I'm doing wrong?
> > >
> > > # default: on
> > > # description: NRPE
> > > service nrpe
> > > {
> > > flags = REUSE
> > > socket_type = stream
> > > wait = no
> > > user = nagios
> > > server = /usr/local/nagios/libexec/nrpe
> > > server_args = -i /etc/nrpe.cfg
> > > log_on_failure += USERID
> > > disable = no
> > > only_from = 127.0.0.1 10.16.2.101
> > > }
> > >
> > >
> > >
> > > Nov 25 20:12:37 db02tc07927 xinetd[2777]: execv(
> > > /usr/local/nagios/libexec ) failed: Permission denied (errno = 13)
> > >
> > >
> > >
> > >
> > > -------------------------------------------------------
> > > This SF.net email is sponsored by: Get the new Palm Tungsten T
> > > handheld. Power & Color in a compact size!
> > > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
> > > _______________________________________________
> > > 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: Get the new Palm Tungsten T
handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
More information about the Users
mailing list