[Pkg-nagios-changes] nagios-nrpe/debian README.Debian, NONE, 1.1 changelog, NONE, 1.1 check_nrpe.cfg, NONE, 1.1 compat, NONE, 1.1 control, NONE, 1.1 copyright, NONE, 1.1 docs, NONE, 1.1 nagios-nrpe-doc.docs, NONE, 1.1 nagios-nrpe-plugin.install, NONE, 1.1 nagios-nrpe-plugin.postinst, NONE, 1.1 nagios-nrpe-plugin.postrm, NONE, 1.1 nagios-nrpe-server.init.d, NONE, 1.1 nagios-nrpe-server.install, NONE, 1.1 nagios-nrpe-server.manpages, NONE, 1.1 nagios-nrpe-server.postinst, NONE, 1.1 nagios-nrpe-server.preinst, NONE, 1.1 nrpe.8, NONE, 1.1 rules, NONE, 1.1

seanius at haydn.debian.org seanius at haydn.debian.org
Mon Oct 17 14:29:12 UTC 2005


Update of /cvsroot/pkg-nagios/nagios-nrpe/debian
In directory haydn:/org/alioth.debian.org/chroot/home/users/seanius/tmp/cvs-serv17281/debian

Added Files:
	README.Debian changelog check_nrpe.cfg compat control 
	copyright docs nagios-nrpe-doc.docs nagios-nrpe-plugin.install 
	nagios-nrpe-plugin.postinst nagios-nrpe-plugin.postrm 
	nagios-nrpe-server.init.d nagios-nrpe-server.install 
	nagios-nrpe-server.manpages nagios-nrpe-server.postinst 
	nagios-nrpe-server.preinst nrpe.8 rules 
Log Message:
Added debian changes for version 2.0-8. 


--- NEW FILE: README.Debian ---
nrpe
----

Put any local check command you need into /etc/nagios/nrpe_local.cfg
This file is included from the /etc/nagios/nrpe.cfg

To enable the use of command argument processing change dont_blame_nrpe option
in nrpe.cfg then create the commands you want in nrpe_local.cfg

Most options can be overridden in nrpe_local.cfg

 -- Jason Thomas <jason at debian.org>, Thu, 15 Jan 2004 10:45:45 +1100

--- NEW FILE: changelog ---
nagios-nrpe (2.0-8) unstable; urgency=low

  * debian/control: change depends on nagios-plugins, to recommends.
    (closes: #327199)

 -- Jason Thomas <jason at debian.org>  Mon, 10 Oct 2005 08:07:57 +1000

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.

 -- Jason Thomas <jason at debian.org>  Thu, 19 Aug 2004 22:47:40 +1000

nagios-nrpe (2.0-6) unstable; urgency=low

  * nagios plugin config dir changed to etc/nagios-plugins/configs/
    (closes: #266826)

 -- Jason Thomas <jason at debian.org>  Thu, 19 Aug 2004 21:17:28 +1000

nagios-nrpe (2.0-5) unstable; urgency=low

  * debian/nagios-nrpe-server.preinst: added code to create nagios user and
    group.
    (closes: #248995, #241168)

 -- Jason Thomas <jason at debian.org>  Sat, 15 May 2004 12:02:35 +1000

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. 

 -- Jason Thomas <jason at debian.org>  Fri, 14 May 2004 14:05:03 +1000

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.

 -- Jason Thomas <jason at debian.org>  Wed, 24 Mar 2004 13:09:00 +1100

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)

 -- Jason Thomas <jason at debian.org>  Wed, 11 Feb 2004 09:27:01 +1100

nagios-nrpe (2.0-1) unstable; urgency=low

  * Initial Release.
    (closes: #209124)

 -- Jason Thomas <jason at debian.org>  Wed, 14 Jan 2004 16:13:36 +1100


--- NEW FILE: check_nrpe.cfg ---
define command {
	command_name	check_nrpe
	command_line	/usr/lib/nagios/plugins/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ -a $ARG2$
}

--- NEW FILE: compat ---
4

--- NEW FILE: control ---
Source: nagios-nrpe
Section: net
Priority: optional
Maintainer: Jason Thomas <jason at debian.org>
Build-Depends: debhelper (>= 4.0.0), cdbs, openssl, libssl-dev
Standards-Version: 3.6.1.0

Package: nagios-nrpe-server
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Recommends: nagios-plugins | netsaint-plugins
Conflicts: netsaint-nrpe-server
Description: Nagios Remote Plugin Exectutor Server
 Nagios is a host/service/network monitoring and management system.
 .
 The purpose of this addon is to allow you to execute Nagios plugins on a
 remote host in as transparent a manner as possible.
 .
 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.

Package: nagios-nrpe-plugin
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, nagios
Description: Nagios Remote Plugin Exectutor Plugin
 Nagios is a host/service/network monitoring and management system.
 .
 The purpose of this addon is to allow you to execute Nagios plugins on a
 remote host in as transparent a manner as possible.
 .
 This is a plugin that is run on the Nagios host and is used to contact the
 NRPE process on remote hosts.

Package: nagios-nrpe-doc
Architecture: all
Description: Documentation for nagios-nrpe
 Nagios is a host/service/network monitoring and management system.
 .
 The purpose of this addon is to allow you to execute Nagios plugins on a
 remote host in as transparent a manner as possible.

--- NEW FILE: copyright ---
This package was debianized by Jason Thomas <jason at debian.org> on
Wed, 14 Jan 2004 16:13:36 +1100.

It was downloaded from http://www.nagios.org/download/extras.php

Upstream Author: Ethan Galstad (nagios at nagios.org) 

Copyright:

/usr/share/common-licenses/GPL

--- NEW FILE: docs ---
README
README.SSL

--- NEW FILE: nagios-nrpe-doc.docs ---
LEGAL
README.SSL
SECURITY

--- NEW FILE: nagios-nrpe-plugin.install ---
src/check_nrpe usr/lib/nagios/plugins/
debian/check_nrpe.cfg etc/nagios-plugins/config/

--- NEW FILE: nagios-nrpe-plugin.postinst ---
#! /bin/sh
# postinst script for nagios-nrpe
#
# see: dh_installdeb(1)

set -e

# summary of how this script can be called:
#        * <postinst> `configure' <most-recently-configured-version>
#        * <old-postinst> `abort-upgrade' <new version>
#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
#          <new-version>
#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
#          <failed-install-package> <version> `removing'
#          <conflicting-package> <version>
# for details, see http://www.debian.org/doc/debian-policy/ or
# the debian-policy package
#
# quoting from the policy:
#     Any necessary prompting should almost always be confined to the
#     post-installation script, and should be protected with a conditional
#     so that unnecessary prompting doesn't happen if a package's
#     installation fails and the `postinst' is called with `abort-upgrade',
#     `abort-remove' or `abort-deconfigure'.

case "$1" in
    configure)
		
	if [ -x /usr/sbin/update-nagios ] ; then
		/usr/sbin/update-nagios
	fi

    ;;

    abort-upgrade|abort-remove|abort-deconfigure)

    ;;

    *)
        echo "postinst called with unknown argument \`$1'" >&2
        exit 1
    ;;
esac

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#

exit 0



--- NEW FILE: nagios-nrpe-plugin.postrm ---
#! /bin/sh
# postrm script for nagios-nrpe
#
# see: dh_installdeb(1)

set -e

# summary of how this script can be called:
#        * <postrm> `remove'
#        * <postrm> `purge'
#        * <old-postrm> `upgrade' <new-version>
#        * <new-postrm> `failed-upgrade' <old-version>
#        * <new-postrm> `abort-install'
#        * <new-postrm> `abort-install' <old-version>
#        * <new-postrm> `abort-upgrade' <old-version>
#        * <disappearer's-postrm> `disappear' <r>overwrit>r> <new-version>
# for details, see http://www.debian.org/doc/debian-policy/ or
# the debian-policy package


case "$1" in
       purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)

	if [ -x /usr/sbin/update-nagios ] ; then
		/usr/sbin/update-nagios
	fi


        ;;

    *)
        echo "postrm called with unknown argument \`$1'" >&2
        exit 1

esac

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#

exit 0

--- NEW FILE: nagios-nrpe-server.init.d ---
#! /bin/sh
#
# skeleton	example file to build /etc/init.d/ scripts.
#		This file should be used to construct scripts for /etc/init.d.
#
#		Written by Miquel van Smoorenburg <miquels at cistron.nl>.
#		Modified for Debian 
#		by Ian Murdock <imurdock at gnu.ai.mit.edu>.
#
# Version:	@(#)skeleton  1.9  26-Feb-2001  miquels at cistron.nl
#

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/sbin/nrpe
NAME=nagios-nrpe
DESC=nagios-nrpe
CONFIG=/etc/nagios/nrpe.cfg

test -x $DAEMON || exit 0

# Include nagios-nrpe defaults if available
if [ -f /etc/default/nagios-nrpe ] ; then
	. /etc/default/nagios-nrpe
fi

set -e

case "$1" in
  start)
	echo -n "Starting $DESC: "
	start-stop-daemon --start --quiet \
		--exec $DAEMON -- -c $CONFIG -d $DAEMON_OPTS
	echo "$NAME."
	;;
  stop)
	echo -n "Stopping $DESC: "
	start-stop-daemon --stop --quiet --oknodo \
		--exec $DAEMON
	echo "$NAME."
	;;
  #reload)
	#
	#	If the daemon can reload its config files on the fly
	#	for example by sending it SIGHUP, do it here.
	#
	#	If the daemon responds to changes in its config file
	#	directly anyway, make this a do-nothing entry.
	#
	# echo "Reloading $DESC configuration files."
	# start-stop-daemon --stop --signal 1 --quiet --pidfile \
	#	/var/run/$NAME.pid --exec $DAEMON
  #;;
  restart|force-reload)
	#
	#	If the "reload" option is implemented, move the "force-reload"
	#	option to the "reload" entry above. If not, "force-reload" is
	#	just the same as "restart".
	#
	echo -n "Restarting $DESC: "
	start-stop-daemon --stop --quiet --oknodo \
		--exec $DAEMON
	sleep 1
	start-stop-daemon --start --quiet \
		--exec $DAEMON -- -c $CONFIG -d $DAEMON_OPTS
	echo "$NAME."
	;;
  *)
	N=/etc/init.d/$NAME
	# echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
	echo "Usage: $N {start|stop|restart|force-reload}" >&2
	exit 1
	;;
esac

exit 0

--- NEW FILE: nagios-nrpe-server.install ---
src/nrpe usr/sbin
nrpe.cfg etc/nagios

--- NEW FILE: nagios-nrpe-server.manpages ---
debian/nrpe.8

--- NEW FILE: nagios-nrpe-server.postinst ---
#! /bin/sh
# postinst script for nagios-nrpe-server
#
# see: dh_installdeb(1)

set -e

# summary of how this script can be called:
#        * <postinst> `configure' <most-recently-configured-version>
#        * <old-postinst> `abort-upgrade' <new version>
#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
#          <new-version>
#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
#          <failed-install-package> <version> `removing'
#          <conflicting-package> <version>
# for details, see http://www.debian.org/doc/debian-policy/ or
# the debian-policy package
#
# quoting from the policy:
#     Any necessary prompting should almost always be confined to the
#     post-installation script, and should be protected with a conditional
#     so that unnecessary prompting doesn't happen if a package's
#     installation fails and the `postinst' is called with `abort-upgrade',
#     `abort-remove' or `abort-deconfigure'.

case "$1" in
    configure)
	
	touch /etc/nagios/nrpe_local.cfg

    ;;

    abort-upgrade|abort-remove|abort-deconfigure)

    ;;

    *)
        echo "postinst called with unknown argument \`$1'" >&2
        exit 1
    ;;
esac

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#

exit 0



--- NEW FILE: nagios-nrpe-server.preinst ---
#! /bin/sh
# preinst script for nagios-nrpe-server
#
# see: dh_installdeb(1)

set -e

# summary of how this script can be called:
#        * <new-preinst> `install'
#        * <new-preinst> `install' <old-version>
#        * <new-preinst> `upgrade' <old-version>
#        * <old-preinst> `abort-upgrade' <new-version>
#
# for details, see http://www.debian.org/doc/debian-policy/ or
# the debian-policy package


case "$1" in
    install|upgrade)
	if id nagios >/dev/null 2>&1 ; then
		# We have a nagios user.
		if [ `id nagios -g -n` != "nagios" ] ; then
			addgroup --system nagios || true
			usermod -g nagios nagios
		fi
	else
		adduser --system --group --no-create-home --home /var/log/nagios --quiet nagios
	fi

#        if [ "$1" = "upgrade" ]
#        then
#            start-stop-daemon --stop --quiet --oknodo  \
#                --pidfile /var/run/bud.pid  \
#                --exec /usr/sbin/bud 2>/dev/null || true
#        fi
    ;;

    abort-upgrade)
    ;;

    *)
        echo "preinst called with unknown argument \`$1'" >&2
        exit 1
    ;;
esac

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#

exit 0



--- NEW FILE: nrpe.8 ---
.\"                                      Hey, EMACS: -*- nroff -*-
.\" First parameter, NAME, should be all caps
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
.\" other parameters are allowed: see man(7), man(1)
.TH NAGIOS-NRPE 8 "January 14, 2004"
.\" Please adjust this date whenever revising the manpage.
.\"
.\" Some roff macros, for reference:
.\" .nh        disable hyphenation
.\" .hy        enable hyphenation
.\" .ad l      left justify
.\" .ad b      justify to both left and right margins
.\" .nf        disable filling
.\" .fi        enable filling
.\" .br        insert line break
.\" .sp <n>    insert n+1 empty lines
.\" for manpage-specific macros, see man(7)
.SH NAME
nrpe \- Nagios Remote Plugin Executor - Server
.SH SYNOPSIS
.B nagios-nrpe
\fI-c <config_file> <mode>\fR
.SH DESCRIPTION
.PP
The purpose of this addon is to allow you to execute Nagios plugins on a
remote host in as transparent a manner as possible.
.PP
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.
.SH OPTIONS
.IP
<config_file> = Name of config file to use
.IP
<mode>        = One of the following two operating modes:
.TP
\fB\-i\fR
=    Run as a service under inetd or xinetd
.TP
\fB\-d\fR
=    Run as a standalone daemon
.PP
Notes:
This program is designed to process requests from the check_nrpe
plugin on the host(s) running Nagios.  It can run as a service
under inetd or xinetd (read the docs for info on this), or as a
standalone daemon. Once a request is received from an authorized
host, NRPE will execute the command/plugin (as defined in the
config file) and return the plugin output and return code to the
check_nrpe plugin.
.SH AUTHOR
This manual page was written by Jason Thomas <jason at debian.org>,
for the Debian project (but may be used by others).

--- NEW FILE: rules ---
#!/usr/bin/make -f
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/rules/simple-patchsys.mk

DEB_CONFIGURE_LIBEXECDIR = /usr/lib/nagios/plugins
#DEB_CONFIGURE_EXTRA_FLAGS := --disable-ssl --enable-command-args
DEB_CONFIGURE_EXTRA_FLAGS := --enable-command-args

# disable the install target
DEB_MAKE_INSTALL_TARGET :=

binary-post-install/nagios-nrpe-server::
	echo -e "\ninclude=/etc/nagios/nrpe_local.cfg" >> debian/nagios-nrpe-server/etc/nagios/nrpe.cfg




More information about the Pkg-nagios-changes mailing list