Go to file
Alexander Wirt f4c587d09f Import Debian changes 2.15-1
nagios-nrpe (2.15-1) unstable; urgency=high
.
  * [f2cea9f] Imported Upstream version 2.15
  * [023e909] Disable command-args in nrpe. (Closes: #745272)
  * [6369220] Use restorecon to set SE Linux context on $PIDDIR
    (Closes: #679241)
  * [a484e7d] Switch order of nagios-plugins recommends to prefer -basic.
    (Closes: #752243)
  * [b1ef043] Don't recommend a core implementation for the plugin
  * [16dbf01] Remove obsolete patch
  * [694b804] Remove luk from uploaders. (Closes: #719636)
  * [28d9004] Remove obsolete patch
  * [86ea67e] 08_CVE-2013-1362.dpatch is now obsolete
  * [74e3b07] Refresh patches
  * [1258ab2] Reword NEWS entry
  * [744eec6] configure is buggy: --disable- in fact enables a feautre.
  * [eec54b6] Adjust README.Debian for the removal or argument processing
.
nagios-nrpe (2.13-4) unstable; urgency=low
.
  * [dcffec6] Do not remove the PID file after a connection error.
    Original patch from Hiren Patel. (Closes: #716949)
.
nagios-nrpe (2.13-3) unstable; urgency=high
.
  * [e55afd1] Add 08_CVE-2013-1362.dpatch patch.
    If command arguments are enabled in the NRPE configuration, it was
    possible to pass $() as arguments as the checking for nasty caracters
    was not strict enough to catch $(). This allowed executing shell
    commands under a subprocess and pass the output as a parameter to the
    called script (if run under bash). CVE-2013-1362 (Closes: #701227)
.
nagios-nrpe (2.13-2) unstable; urgency=high
.
  [ Thijs Kinkhorst ]
  * Add warning about the inadequateness of the 'ssl' option.
.
nagios-nrpe (2.13-1) unstable; urgency=low
.
  * [3e113b5] Imported Upstream version 2.13
  * [acc152b] Bump standards version
  * [c707bce] Use dh9 for hardening
  * Updated patches
.
nagios-nrpe (2.12-6) unstable; urgency=low
.
  * [36b1062] Add add icinga to the list of recommends
  * [a698acb] Don't remove homedirectory of the nagios user (Closes: #665845)
  * [4dc53fb] Use retry argument for start-stop-daemon when stopping nrpe
    (Closes: #650464)
.
nagios-nrpe (2.12-5) unstable; urgency=low
.
  [ Alexander Wirt ]
  * [e3af3bd] Bump compat to 8
  * [4f9e892] Add versioned depends to dpatch for sequence support
  * [5ec5a3b] Install example nrpe_local.cfg
  * [69ea7b9] Move rules file to dh
  * [298f725] Use autotools_dev dh sequence helper
  * [10da37d] Bump debhelper dependency to 8
  * [2b009ae] Bump standards version
  * [4d093e3] Ignore usermod failure (Closes: #538894)
  * [e776f7b] Use pidfile for start-stop-daemon and fix pidfile deletion
    (Closes: #548157, #639523)
  * [8050c97] Support multiarch in rulesfile (Closes: #642790)
  * [027274f] Use pidfile for start-stop-daemon in start()
  * [1f69c63] Support status in nrpe initscript
  * [42ccdcc] Add a comment to nrpe.cfg that snipplets have to end .cfg
    (Closes: #641933)
.
  [ Jan Wagner ]
  * [0a80fdb] Update debian/README.Debian about conf.d/
.
nagios-nrpe (2.12-4) unstable; urgency=low
.
  * Build against libwrap0-dev (Closes: #412705)
  * Remove 'last modified header' from nrpe config (Closes: #499280)
  * Create /etc/nagios/nrpe.d (Closes: #505700, #474333)
  * Fix pidfile handling (Closes: #411046)
  * Add newer config.{guess,sub} (Closes: #535737)
    - Build-depend on autotools-dev
  * Delete /var/lib/nagios if empty after purge (Closes: #527069)
  * Bump standards version (add README.source)
  * Bump dh_compat version (remove -k from dh_clean)
.
nagios-nrpe (2.12-3.1) unstable; urgency=low
.
  * Non-maintainer upload.
  * Fix bashism (Closes: #530149).
.
nagios-nrpe (2.12-3) unstable; urgency=low
.
  * Sync homedirectory of the nagios user with the nagios3 package
    (Closes: #479051)
  * Removed now empty nagios-nrpe-plugins.post* scripts
.
nagios-nrpe (2.12-2) unstable; urgency=low
.
  * Add myself to uploaders.
  * Clean buffer before use (Closes: #498749).
  * Remove pid file before creating a new ones (Closes: #411046).
  * Include inetd support (Closes: #409772).
.
nagios-nrpe (2.12-1) unstable; urgency=low
.
  * Support an nrpe.d config directory in addition to nrpe_local.cfg
    (Closes: #474333)
  * Add myself to uploaders
  * Add watch file
  * New upstream version (Closes: #475081)
  * Acknowledge NMU from Chris Lamb (Closes: #484412)
  * Recommend Nagios 3 instead of Nagios 2
  * Update copyright file
  * Use the same homedir as nagios3 (Closes: #479051)
.
nagios-nrpe (2.8.1-1.1) unstable; urgency=medium
.
  * Non-maintainer upload.
  * Fix bashism in debian/rules (Closes: #484412)
  * Bump Standards-Version to 3.8.0.
.
nagios-nrpe (2.8.1-1) unstable; urgency=low
.
  * New upstream release
  * bump Recommends to nagios2, thanks to Henning Sprang
    for suggesting this (closes: #399856).
  * fix typo in package description, thanks to Tilman Koschnick for
    noticing this (closes: #419130).
.
nagios-nrpe (2.5.1-3) unstable; urgency=high
.
  * apparently we were already including another default file
    without installing it, and some people were using it.  so
    now we include this one as well as the new default, with this
    one taking precedence since it was there first.  thanks to
    Peter Palfrader for catching this (closes: #398914).
.
nagios-nrpe (2.5.1-2) unstable; urgency=low
.
  * include a /etc/default/nagios-nrpe-server where variables
    such as DAEMON_OPTS can be set (closes: #396709).
  * bump standards version to 3.7.2
  * add pre-depends on adduser
  * LSB-ize init script, and add dependency on lsb-base
.
nagios-nrpe (2.5.1-1) unstable; urgency=low
.
  * new upstream release.  includes fix from Peter Palfrader to catch
    invalid free()'s when nrpe is called with --no-ssl (closes: #361233).
.
nagios-nrpe (2.4-2) unstable; urgency=low
.
  [sean finney]
  * removing nrpe_local.cfg caused trouble for some people, so
    i've added it back in (closes: #360093).
.
nagios-nrpe (2.4-1) unstable; urgency=low
.
  * new upstream release.
.
  [sean finney]
  * (NEEDS TESTING) move away from cdbs for my own sanity.
  * add build-dependency on dpatch.
  * no longer create nrpe_local.cfg.  no reason to have it.
  * remove postinst script for nagios-nrpe-server, as all it
    did was touch the previously mentioned file.
  * upstream has incorporated the following patches:
    - 02_global-cmd-prefix.dpatch
    - 03_nrpe-trailing-whitespace.dpatch
  * check_nrpe -h provides what "-a" does, but i've gone ahead and
    added a comment in check_nrpe.cfg too, because it can't hurt
    to do so :) (closes: #351714).
  * no longer generate the nagios-nrpe-doc package, and move copies of
    the documentation into the plugin and server packages.  add a
    Conflicts: nagios-nrpe-doc to the remaining packages to ensure
    that the stale package doesn't remain.  NEWS.Debian also mentions
    this and instructs the admin to purge the package too.
.
nagios-nrpe (2.2-1) unstable; urgency=low
.
  * new upstream release.
.
  [sean finney]
  * debian packaging source repository is now migrated to svn.
  * updated 01_nodevrandom-and-docoptions.dpatch and
    02_global-cmd-prefix.dpatch to apply against the latest
    upstream version.
  * nrpe.cfg has moved location in the upstream tarball.
  * introduced 03_nrpe-trailing-whitespace.dpatch to fix regression
    in config file parsing until upstream incorporates it.
.
nagios-nrpe (2.0-9) unstable; urgency=low
.
  * Sean Finney:
    - nagios-nrpe has now joined forces with the debian pkg-nagios
      project, updated Maintainer and Uploaders field accordingly.
    - provide check_nrpe_1arg command definition so that one can call
      check_nrpe both with and without arguments to the cmds
      (closes: #248424).
    - changed nagios-nrpe-server's Recommends on nagios-plugins to reflect
      the upcoming new nagios-plugins layout.
    - changed nagios-nrpe-plugin's Depends on nagios to a Recommends.
    - building issues seem to be resolved on arm now (closes: #259442).
    - updated Standards-Version to 3.6.2
    - included patch from joerg and weasel to document some cmdline options
      and provide a better alternative to reading a random byte from
      /dev/random (closes: #333552).
    - included "global command prefix" patch from joerg jaspert
      (closes: #332253).
.
nagios-nrpe (2.0-8) unstable; urgency=low
.
  * debian/control: change depends on nagios-plugins, to recommends.
    (closes: #327199)
.
nagios-nrpe (2.0-7) unstable; urgency=high
.
  * The previous upload fixes a bug that breaks the install of this package so
    this is a new upload with a high urgency to try and get it into sarge.
.
nagios-nrpe (2.0-6) unstable; urgency=low
.
  * nagios plugin config dir changed to etc/nagios-plugins/configs/
    (closes: #266826)
.
nagios-nrpe (2.0-5) unstable; urgency=low
.
  * debian/nagios-nrpe-server.preinst: added code to create nagios user and
    group.
    (closes: #248995, #241168)
.
nagios-nrpe (2.0-4) unstable; urgency=low
.
  * debian/nagios-nrpe-server.init.d: added missing -d to restart.
    (closes: #248797)
  * debian/nrpe.1: renamed to nrpe.8
  * debian/nagios-nrpe-server.manpages: changed nrpe.1 to nrpe.8
  * debian/dirs: deleted it as its not needed.
.
nagios-nrpe (2.0-3) unstable; urgency=low
.
  * debian/nagios-nrpe-server.init.d: added --oknodo to stop commands which
    will make upgrades and purges clean.
.
nagios-nrpe (2.0-2) unstable; urgency=low
.
  * debian/control: added build-depends cdbs
    (closes: #230943)
  * debian/control: nagios-nrpe-server now conflicts netsaint-nrpe-server
    (closes: #230303)
.
nagios-nrpe (2.0-1) unstable; urgency=low
.
  * Initial Release.
    (closes: #209124)
2024-02-01 12:50:48 +01:00
contrib Import Upstream version 2.15 2024-02-01 12:50:48 +01:00
debian Import Debian changes 2.15-1 2024-02-01 12:50:48 +01:00
docs Import Upstream version 2.15 2024-02-01 12:50:48 +01:00
include Import Upstream version 2.15 2024-02-01 12:50:48 +01:00
package/solaris Import Upstream version 2.15 2024-02-01 12:50:48 +01:00
sample-config Import Upstream version 2.15 2024-02-01 12:50:48 +01:00
src Import Upstream version 2.15 2024-02-01 12:50:48 +01:00
Changelog Import Upstream version 2.15 2024-02-01 12:50:48 +01:00
config.guess Import Upstream version 2.15 2024-02-01 12:50:48 +01:00
config.sub Import Upstream version 2.15 2024-02-01 12:50:48 +01:00
configure Import Upstream version 2.15 2024-02-01 12:50:48 +01:00
configure.in Import Upstream version 2.15 2024-02-01 12:50:48 +01:00
init-script.debian.in Import Upstream version 2.15 2024-02-01 12:50:48 +01:00
init-script.in Import Upstream version 2.15 2024-02-01 12:50:48 +01:00
init-script.suse.in Import Upstream version 2.15 2024-02-01 12:50:48 +01:00
install-sh Import Upstream version 2.15 2024-02-01 12:50:48 +01:00
LEGAL Import Upstream version 2.15 2024-02-01 12:50:48 +01:00
Makefile.in Import Upstream version 2.15 2024-02-01 12:50:48 +01:00
nrpe.spec Import Upstream version 2.15 2024-02-01 12:50:48 +01:00
nrpe.spec.in Import Upstream version 2.15 2024-02-01 12:50:48 +01:00
README Import Upstream version 2.15 2024-02-01 12:50:48 +01:00
README.Solaris Import Upstream version 2.15 2024-02-01 12:50:48 +01:00
README.SSL Import Upstream version 2.15 2024-02-01 12:50:48 +01:00
SECURITY Import Upstream version 2.15 2024-02-01 12:50:48 +01:00
subst.in Import Upstream version 2.15 2024-02-01 12:50:48 +01:00
update-version Import Upstream version 2.15 2024-02-01 12:50:48 +01:00

-----------
NRPE README
-----------


** UPDATED DOCUMENTATION!

For installation instructions and information on the design overview
of the NRPE addon, please read the PDF documentation that is found in 
this directory: NRPE.pdf




Purpose
-------
The purpose of this addon is to allow you to execute Nagios 
plugins on a remote host in as transparent a manner as possible.


Contents
--------

There are two pieces to this addon:

  1) NRPE       - This program runs as a background process on the 
                  remote host and processes command execution requests
	          from the check_nrpe plugin on the Nagios host.
		  Upon receiving a plugin request from an authorized
                  host, it will execute the command line associated
                  with the command name it received and send the
                  program output and return code back to the 
                  check_nrpe plugin

  2) check_nrpe - This is a plugin that is run on the Nagios host
                  and is used to contact the NRPE process on remote
	          hosts.  The plugin requests that a plugin be
                  executed on the remote host and wait for the NRPE
                  process to execute the plugin and return the result.
                  The plugin then uses the output and return code
                  from the plugin execution on the remote host for
                  its own output and return code.


Compiling
---------

The code is very basic and may not work on your particular
system without some tweaking.  I just haven't put a lot of effort
into this addond.  Most Linux users should be able to compile
NRPE and the check_nrpe plugin with the following commands...

./configure
make all

The binaries will be located in the src/ directory after you
run 'make all' and will have to be installed manually somewhere
on your system.


NOTE: Since the check_nrpe plugin and nrpe daemon run on different
      machines (the plugin runs on the Nagios host and the daemon
      runs on the remote host), you will have to compile the nrpe
      daemon on the target machine.



Installing
----------

The check_nrpe plugin should be placed on the Nagios host along
with your other plugins.  In most cases, this will be in the
/usr/local/nagios/libexec directory.

The nrpe program and the configuration file (nrpe.cfg) should
be placed somewhere on the remote host.  Note that you will also
have to install some plugins on the remote host if you want to
make much use of this addon.



Configuring
-----------

Sample config files for the NRPE daemon are located in the
sample-config/ subdirectory.



Running Under INETD or XINETD
-----------------------------

If you plan on running nrpe under inetd or xinetd and making use
of TCP wrappers, you need to do the following things:



1) Add a line to your /etc/services file as follows (modify the port
   number as you see fit)

	nrpe            5666/tcp	# NRPE



2) Add entries for the NRPE daemon to either your inetd or xinetd
   configuration files.  Which one your use will depend on which
   superserver is installed on your system.  Both methods are described
   below.  NOTE: If you run nrpe under inetd or xinetd, the server_port
   and allowed_hosts variables in the nrpe configuration file are
   ignored.


   ***** INETD *****
   If your system uses the inetd superserver WITH tcpwrappers, add an
   entry to /etc/inetd.conf as follows:

	nrpe 	stream 	tcp 	nowait 	<user> /usr/sbin/tcpd <nrpebin> -c <nrpecfg> --inetd

   If your system uses the inetd superserver WITHOUT tcpwrappers, add an
   entry to /etc/inetd.conf as follows:

	nrpe 	stream 	tcp 	nowait 	<user> <nrpebin> -c <nrpecfg> --inetd


   - Replace <user> with the name of the user that the nrpe server should run as.
     	Example: nagios
   - Replace <nrpebin> with the path to the nrpe binary on your system.
	Example: /usr/local/nagios/nrpe
   - Replace <nrpecfg> with the path to the nrpe config file on your system.
	Example: /usr/local/nagios/nrpe.cfg


   ***** XINETD *****
   If your system uses xinetd instead of inetd, you'll probably
   want to create a file called 'nrpe' in your /etc/xinetd.d
   directory that contains the following entries:


	# default: on
	# description: NRPE
	service nrpe
	{
        	flags           = REUSE
	        socket_type     = stream        
        	wait            = no
	        user            = <user>
        	server          = <nrpebin>
	        server_args     = -c <nrpecfg> --inetd
        	log_on_failure  += USERID
	        disable         = no
		only_from       = <ipaddress1> <ipaddress2> ...
	}


   - Replace <user> with the name of the user that the nrpe server should run as.
   - Replace <nrpebin> with the path to the nrpe binary on your system.
   - Replace <nrpecfg> with the path to the nrpe config file on your system.
   - Replace the <ipaddress> fields with the IP addresses of hosts which
     are allowed to connect to the NRPE daemon.  This only works if xinetd was
     compiled with support for tcpwrappers.



3) Restart inetd or xinetd will the following command (pick the
   on that is appropriate for your system:

	/etc/rc.d/init.d/inet restart

	/etc/rc.d/init.d/xinetd restart

   OpenBSD users can use the following command to restart inetd:

	kill -HUP `cat /var/run/inet.pid`



4) Add entries to your /etc/hosts.allow and /etc/hosts.deny
   file to enable TCP wrapper protection for the nrpe service.
   This is optional, although highly recommended.




Configuring Things On The Nagios Host
---------------------------------------

Examples for configuring the nrpe daemon are found in the sample
nrpe.cfg file included in this distribution.  That config file
resides on the remote host(s) along with the nrpe daemon.  The
check_nrpe plugin gets installed on the Nagios host.  In order
to use the check_nrpe plugin from within Nagios, you'll have
to define a few things in the host config file.  An example
command definition for the check_nrpe plugin would look like this:

define command{
	command_name	check_nrpe
	command_line	/usr/local/nagios/libexec/check_nrpe -H $HOSTADDRESS$ -c $ARG1$
	}

In any service definitions that use the nrpe plugin/daemon to
get their results, you would set the service check command portion
of the definition to something like this (sample service definition
is simplified for this example):

define service{
	host_name		someremotehost
	service_description	someremoteservice
	check_command		check_nrpe!yourcommand
	... etc ...
	}

where "yourcommand" is a name of a command that you define in 
your nrpe.cfg file on the remote host (see the docs in the 
sample nrpe.cfg file for more information).




Questions?
----------

If you have questions about this addon, or problems getting things
working, first try searching the nagios-users mailing list archives.
Details on searching the list archives can be found at 
http://www.nagios.org

If all else fails, you can email me and I'll try and respond as
soon as I get a chance.

	-- Ethan Galstad (nagios@nagios.org)