nrpe not working

emily zhou Emily.Zhou at algonquincollege.com
Tue Mar 18 23:45:59 CET 2003


Hi JC,
I guess you have experience with NRPE, could you give me some clue?
I use command line working fine:   (Both Server and Client are Solaris 8)
~libexec/check_nrpe <remote server name or address> -c check_disk1
DISK OK - [2724125 kB (52%) free on /dev/dsk/c0t3d0s7]

However, when I put in the nagios, it's not working, the status information is :
Incorrect command line arguments supplied, my config file this:

in checkcommands.cfg:
# 'check_nrpe' command definition
define command{
 command_name check_nrpe
 command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$
 }

In services.cfg:
define service{
        use                                   generic-service
        host_name                        netsrv
        service_description           File System / Check
        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            c,r
        check_command               check_nrpe!check_disk1
        name                            remotefstemp
        }

In remote server's nrpe.cfg, the check_disk1 is defined, no doubt about that, as
the command line is working.
Any help would be appreciated.
Thanks,
Emily

"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
> _______________________________________________
> 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: Does your code think in ink? 
You could win a Tablet PC. Get a free Tablet PC hat just for playing. 
What are you waiting for?
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list