nrpe not working
Carroll, Jim P [Contractor]
jcarro10 at sprintspectrum.com
Wed Mar 19 17:28:36 CET 2003
$ ./check_nrpe -H gold -c some_test
Incorrect command line arguments supplied
NRPE Plugin for Nagios
Copyright (c) 1999-2002 Ethan Galstad (nagios at nagios.org)
Version: 1.5
Last Modified: 06-03-2002
License: GPL
Usage: ./check_nrpe <host_address> [-p port] [-c command] [-wt warn_time]
[-ct crit_time] [-to to_sec]
Options:
<host_address> = The IP address of the host running the NRPE daemon
[port] = The port on which the daemon is running - default is 5666
[command] = The name of the command that the remote daemon should run
[to_sec] = Number of seconds before connection attempt times out.
Default timeout is 10 seconds
[snip]
Mine doesn't seem to like the -H switch. Could be a difference in versions.
*shrug*
But the "Incorrect command line arguments supplied" does look strikingly
similar to what Emily Zhou is experiencing. I stand by my suggestion.
jc
> -----Original Message-----
> From: Paul Clayton [mailto:paul.clayton at intec.co.za]
> Sent: Wednesday, March 19, 2003 12:00 AM
> To: Carroll, Jim P [Contractor]; 'emily zhou'
> Cc: Nagios List
> Subject: RE: [Nagios-users] nrpe not working
>
>
> Guys,
>
> this is my check_nrpe command in checkcommands.cfg and it works
>
> # 'check_nrpe' command definition
> define command{
> command_name check_nrpe
> command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -p 5666 -c
> $ARG1$ -to 60
> }
>
> I disagree with Jim, as the -H is required, otherwise how
> does check-nrpe
> know where to go.
>
> -----Original Message-----
> From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com]
> Sent: Wednesday, March 19, 2003 2:16 AM
> To: 'emily zhou'
> Cc: Nagios List
> Subject: RE: [Nagios-users] nrpe not working
>
>
> In checkcommands.cfg, you're passing a "-H" switch to
> check_nrpe. However,
> check_nrpe doesn't use the -H switch.
>
> Remove that and you should be fine.
>
> jc
>
> > -----Original Message-----
> > From: emily zhou [mailto:Emily.Zhou at algonquincollege.com]
> > Sent: Tuesday, March 18, 2003 4:46 PM
> > To: Carroll, Jim P [Contractor]
> > Cc: 'Jeff McKeon'; Nagios List
> > Subject: Re: [Nagios-users] nrpe not working
> >
> >
> > 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
> >
>
>
> -------------------------------------------------------
> 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
>
>
> **************************************************************
> *****************************
> <http://www.intec-telecom-systems.com/>
>
> This e-mail and any attachments are confidential and may also
> be privileged
> and/or copyright material of Independent Technology Systems Limited
> (or its affiliated companies). If you are not the intended or
> authorised recipient
> of this email or have received it in error, please delete it
> immediately and
> notify the sender by e-mail. In such a case reading,
> reproducing, printing or
> further dissemination of this e-mail is strictly prohibited
> and may be unlawful.
>
> Independent Technology Systems Limited does not represent or
> warrant that
> an attachment hereto is free from computer viruses or other defects.
>
> The opinions expressed in this e-mail and any of the attachments may
> be those of the author and are not necessarily those of Independent
> Technology Systems Limited.
> **************************************************************
> ****************************
>
-------------------------------------------------------
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