--- pnp4nagios-0.6.16.orig/debian/pnp4nagios-bin.npcd.default +++ pnp4nagios-0.6.16/debian/pnp4nagios-bin.npcd.default @@ -0,0 +1,7 @@ +# Default settings for the NPCD init script. + +# Should NPCD be started? ("yes" to enable) +RUN="no" + +# Additional options that are passed to the daemon. +DAEMON_OPTS="-d -f /etc/pnp4nagios/npcd.cfg" --- pnp4nagios-0.6.16.orig/debian/pnp4nagios-web.postrm +++ pnp4nagios-0.6.16/debian/pnp4nagios-web.postrm @@ -0,0 +1,48 @@ +#!/bin/sh +# postrm script for pnp4nagios-web +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + purge|remove) + if [ -d /etc/apache2/conf.d/ ]; then + if [ -L /etc/apache2/conf.d/pnp4nagios.cfg ]; then + ls -l /etc/apache2/conf.d/pnp4nagios.cfg | grep -q /etc/pnp4nagios/apache.cfg + if [ $? -eq 0 ]; then + rm -f /etc/apache2/conf.d/pnp4nagios.cfg + fi + fi + fi + ;; + upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + 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 + --- pnp4nagios-0.6.16.orig/debian/pnp4nagios-bin.postinst +++ pnp4nagios-0.6.16/debian/pnp4nagios-bin.postinst @@ -0,0 +1,70 @@ +#!/bin/sh +# postinst script for pnp4nagios-bin +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-remove' +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +setperm() { + user="$1" + group="$2" + mode="$3" + file="$4" + shift 4 + # only do something when no setting exists + if ! dpkg-statoverride --list "$file" >/dev/null 2>&1; then + chown "$user":"$group" "$file" + chmod "$mode" "$file" + fi +} + +case "$1" in + configure) + if ! getent passwd nagios > /dev/null ; then + echo 'Adding system-user for nagios' 1>&2 + adduser --system --group --home /var/lib/nagios \ + --disabled-login --force-badname nagios > /dev/null + fi + setperm nagios www-data 750 /var/lib/pnp4nagios + setperm nagios nagios 755 /var/lib/pnp4nagios/perfdata + setperm nagios www-data 750 /var/log/pnp4nagios + setperm nagios nagios 750 /var/log/pnp4nagios/stats + setperm nagios nagios 770 /var/spool/pnp4nagios + setperm nagios nagios 770 /var/spool/pnp4nagios/nagios + setperm nagios nagios 770 /var/spool/pnp4nagios/npcd + + if [ -d /etc/nagios3/conf.d/ ]; then + if [ ! -e /etc/nagios3/conf.d/pnp4nagios.cfg ]; then + ln -s /etc/pnp4nagios/nagios.cfg /etc/nagios3/conf.d/pnp4nagios.cfg + fi + 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 + --- pnp4nagios-0.6.16.orig/debian/compat +++ pnp4nagios-0.6.16/debian/compat @@ -0,0 +1 @@ +7 --- pnp4nagios-0.6.16.orig/debian/pnp4nagios-bin.postrm +++ pnp4nagios-0.6.16/debian/pnp4nagios-bin.postrm @@ -0,0 +1,48 @@ +#!/bin/sh +# postrm script for pnp4nagios-bin +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + purge|remove) + if [ -d /etc/nagios3/conf.d/ ]; then + if [ -L /etc/nagios3/conf.d/pnp4nagios.cfg ]; then + ls -l /etc/nagios3/conf.d/pnp4nagios.cfg | grep -q /etc/pnp4nagios/nagios.cfg + if [ $? -eq 0 ]; then + rm -f /etc/nagios3/conf.d/pnp4nagios.cfg + fi + fi + fi + ;; + upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + 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 + --- pnp4nagios-0.6.16.orig/debian/pnp4nagios-web.templates +++ pnp4nagios-0.6.16/debian/pnp4nagios-web.templates @@ -0,0 +1,9 @@ +Template: pnp4nagios-web/httpd +Type: multiselect +Choices: apache2 +Default: apache2 +_Description: Web servers to configure for PNP4Nagios: + Please select which web servers should be configured for PNP4Nagios. + . + If you would prefer to perform configuration manually, leave all + servers unselected. --- pnp4nagios-0.6.16.orig/debian/pnp4nagios-bin.pnp_gearman_worker.init +++ pnp4nagios-0.6.16/debian/pnp4nagios-bin.pnp_gearman_worker.init @@ -0,0 +1,210 @@ +#!/bin/sh +# +# init.d script for the Gearman worker daemon of PNP4Nagios +# +# Based on an example script for NPCD of Javier Fernandez-Sanguino +# Copyright (c) 2007 Javier Fernandez-Sanguino +# Copyright (c) 2011 Sebastian Harl +# +### BEGIN INIT INFO +# Provides: pnp_gearman_worker +# Required-Start: $network $local_fs $remote_fs +# Required-Stop: $network $local_fs $remote_fs +# Should-Start: +# Should-Stop: +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: PNP4Nagios Gearman worker daemon +# Description: Processing of Nagios' perf data in distributed setups +### END INIT INFO + +PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin + +DAEMON=/usr/lib/pnp4nagios/libexec/process_perfdata.pl +NAME=pnp_gearman_worker +DESC="PNP4Nagios Gearman worker daemon" + +PIDFILE=/var/run/pnp4nagios/$NAME.pid + +test -x $DAEMON || exit 0 + +. /lib/lsb/init-functions + +# Default options, these can be overriden by the information +# at /etc/default/$NAME +DAEMON_OPTS="" +DIETIME=10 +STARTTIME=2 +USER=nagios + +if [ -f /etc/default/pnp_gearman_worker ] ; then + . /etc/default/pnp_gearman_worker +fi + +if [ "x$RUN" != "xyes" ] ; then + echo "$NAME has been disabled in /etc/default/pnp_gearman_worker." + exit 0 +fi + +set -e + +# Check if a given process pid's cmdline matches a given name +running_pid() { + pid=$1 + name=$2 + [ -z "$pid" ] && return 1 + [ ! -d /proc/$pid ] && return 1 + cmd=`cat /proc/$pid/cmdline | tr "\000" "\n" | head -n 1 | cut -d : -f 1` + # Is this the expected server + [ "$cmd" != "$name" ] && return 1 + return 0 +} + +# Check if the process is running looking at /proc +# (works for all users) +running() { + # No pidfile, probably no daemon present + [ ! -f "$PIDFILE" ] && return 1 + pid=`cat $PIDFILE` + running_pid "$pid" $DAEMON \ + || running_pid "$pid" "/usr/bin/perl" || return 1 + return 0 +} + +# Start the process using the wrapper +start_server() { + if ! perl -MGearman::Worker -e '1;' > /dev/null 2>&1 \ + || ! perl -MMIME::Base64 -e '1;' > /dev/null 2>&1 \ + || ! perl -MCrypt::Rijndael -e '1;' > /dev/null 2>&1; then + echo "$NAME requires the Gearman::Worker, MIME::Base64 and" >&2 + echo "Crypt::Rijndael Perl modules. Make sure that the packages" >&2 + echo "perl, libgearman-client-perl and libcrypt-rijndael-perl" >&2 + echo "are installed." >&2 + exit 1 + fi + + if [ -d /var/run/pnp4nagios ]; then + chmod 755 /var/run/pnp4nagios + chown nagios.nagios /var/run/pnp4nagios + else + install -d -m 755 -o nagios -g nagios /var/run/pnp4nagios + fi + + start_opts="--start --quiet --oknodo --pidfile $PIDFILE" + if [ -n "$USER" ]; then + start_opts="$start_opts --chuid $USER" + fi + start-stop-daemon $start_opts --exec $DAEMON -- \ + --pidfile=$PIDFILE --gearman --daemon $DAEMON_OPTS + errcode=$? + return $errcode +} + +# Stop the process using the wrapper +stop_server() { + killproc -p $PIDFILE $DAEMON + errcode=$? + return $errcode +} + +# Force the process to die killing it manually +force_stop() { + [ ! -e "$PIDFILE" ] && return + if running ; then + kill -15 $pid + # Is it really dead? + sleep "$DIETIME"s + if running ; then + kill -9 $pid + sleep "$DIETIME"s + if running ; then + echo "Cannot kill $NAME (pid=$pid)!" + exit 1 + fi + fi + fi + rm -f $PIDFILE +} + +case "$1" in + start) + log_daemon_msg "Starting $DESC" "$NAME" + # Check if it's running first + if running ; then + log_progress_msg "apparently already running" + log_end_msg 0 + exit 0 + fi + if start_server ; then + # NOTE: Some servers might die some time after they start, + # this code will detect this issue if STARTTIME is set + # to a reasonable value + [ -n "$STARTTIME" ] && sleep $STARTTIME # Wait some time + if running ; then + # It's ok, the server started and is running + log_end_msg 0 + else + # It is not running after we did start + log_end_msg 1 + fi + else + # Either we could not start it + log_end_msg 1 + fi + ;; + stop) + log_daemon_msg "Stopping $DESC" "$NAME" + if running ; then + # Only stop the server if we see it running + errcode=0 + stop_server || errcode=$? + log_end_msg $errcode + else + # If it's not running don't do anything + log_progress_msg "apparently not running" + log_end_msg 0 + exit 0 + fi + ;; + force-stop) + # First try to stop gracefully the program + $0 stop + if running; then + # If it's still running try to kill it more forcefully + log_daemon_msg "Stopping (force) $DESC" "$NAME" + errcode=0 + force_stop || errcode=$? + log_end_msg $errcode + fi + ;; + restart|force-reload) + log_daemon_msg "Restarting $DESC" "$NAME" + errcode=0 + stop_server || errcode=$? + # Wait some sensible amount, some server need this + [ -n "$DIETIME" ] && sleep $DIETIME + start_server || errcode=$? + [ -n "$STARTTIME" ] && sleep $STARTTIME + running || errcode=$? + log_end_msg $errcode + ;; + status) + + log_daemon_msg "Checking status of $DESC" "$NAME" + if running ; then + log_progress_msg "running" + log_end_msg 0 + else + log_progress_msg "apparently not running" + log_end_msg 1 + exit 1 + fi + ;; + *) + N=/etc/init.d/$NAME + echo "Usage: $N {start|stop|force-stop|restart|force-reload|status}" >&2 + exit 1 + ;; +esac + +exit 0 --- pnp4nagios-0.6.16.orig/debian/changelog +++ pnp4nagios-0.6.16/debian/changelog @@ -0,0 +1,143 @@ +pnp4nagios (0.6.16-2) unstable; urgency=low + + * debian/control: + - Adapted versioned build-dep on libjs-jquery-ui to the workaround used by + that package (1.8.14 -> 1.8.ooops.14). Thanks to Christoph Anton + Mitterer for reporting this (Closes: #683100). + * debian/patches/: + - adjust-template-path: Fixed the patch for empty templates.d and some + versions of glob() which in this case returns nothing resulting in PHP + syntax errors and a crash of PNP4Nagios; thanks to Christoph Anton + Mitterer for reporting this and pointing out a fix (Closes: #683138). + + -- Sebastian Harl Sat, 24 Nov 2012 15:34:54 +0100 + +pnp4nagios (0.6.16-1) unstable; urgency=low + + * New upstream version. + * debian/control: + - Depend on jQuery >= 1.6.2 and jQuery-ui >= 1.8.14 (rather than + unversioned dependencies); this is what upstream did as well. + * debian/rules: + - Added recommended targets build-{arch,indep} depending on build-stamp. + * debian/pnp4nagios-bin.install: + - Install verify_pnp_config_v2.pl to /u/l/pnp4nagios/libexec/. + * debian/pnp4nagios-web.postinst: + - Call a2mod / restart apache2 only if the binaries are available; thanks + to Wouter Schoot for reporting this (Closes: #636218). + * debian/po/: + - Added Spanish debconf translations; thanks to Camaleón for providing + those (Closes: #632953). + - Added Portuguese debconf translations; thanks to Pedro Ribeiro for + providing those (Closes: #651432). + - Added Dutch debconf translations; thanks to Jeroen Schot for providing + those (Closes: #654214). + - Added Danish debconf translations; thanks to Joe Dalton for providing + those (Closes: #654816). + - Added Czech debconf translations; thanks to Michal Šimůnek for providing + those (Closes: #655132). + * debian/README.Debian: + - Added a note about installation with Icinga referring to the different + htpasswd.users file location; thanks to Alexander Reichle-Schmehl for + reporting this (Closes: #646587). + * debian/patches/adjust-template-path: + - Added support for /etc/pnp4nagios/templates.d. + * debian/README.templates.d: + - Added README file for the use of /etc/pnp4nagios/templates.d. The file + will be installed to that directory. + + -- Sebastian Harl Tue, 31 Jan 2012 14:00:47 +0100 + +pnp4nagios (0.6.13-1) unstable; urgency=low + + * New upstream release. + * debian/README.Debian: + - Added more verbose instructions about how to setup mod_gearman mode. + * debian/patches/: + - Removed manpage-hyphen -- applied upstream. + * debian/rules: + - Don't remove scripts/rc.pnp_gearman_worker in 'clean' -- this is now + taken care of in the upstream Makefile. + * debian/po/: + - Added Japanese debconf translation; thanks to Hideki Yamane for + providing the translation (Closes: #626386). + - Added Swedish debconf translation; thanks to Martin Bagge for providing + the translation (Closes: #628926). + * debian/control: + - Updated standards-version to 3.9.2 -- no changes. + + -- Sebastian Harl Wed, 22 Jun 2011 12:42:18 +0200 + +pnp4nagios (0.6.12-1) unstable; urgency=low + + * New upstream release. + * debian/patches/: + - Removed raise-process-perfdata-timeout -- a similar patch has been + included upstream. + - Added manpage-hyphen -- do not use hyphens as minus sign in npcd.8. + * debian/rules: + - npcd.cfg and process_perfdata.cfg are not longer installed as sample + configs by the upstream Makefile; so, don't rename those files. + - Do not pass --prefix to configure and set man-/infodir correctly. The + prefix is set by layout=debian and cannot be overwritten, thus do not + pretend this is possible. Also, do not use $prefix when setting man-/ + infodir but specify the complete path. + - Do not install config_local.php and config.php.$PKG_VERSION. + - Remove generated scripts/rc.pnp_gearman_worker in 'clean'. + * debian/rules, debian/pnp4nagios-bin.install: + - Do not install npcd.8 using dh_installman; this is done by the upstream + Makefile now. + * debian/pnp4nagios-bin.pnp_gearman_worker.default, + pnp4nagios-bin.pnp_gearman_worker.init: + - Added init script for the PNP4Nagios Gearman worker daemon. + - The daemon is disabled by default. + + -- Sebastian Harl Wed, 27 Apr 2011 09:05:48 +0200 + +pnp4nagios (0.6.11-2) unstable; urgency=low + + * debian/po/: + - Added French debconf translation; thanks to Christian Perrier for + providing the translation (Closes: #623181). + - Added German debconf translation. + - Added Russian debconf translation; thanks to Yuri Kozlov for providing + the translation (Closes: #623798). + * debian/pnp4nagios-web.postinst: + - Do not set permissions of /var/log/pnp4nagios/stats -- this is done in + pnp4nagios-bin.postinst which ships the directory. This fixes an error + when installing -web without -bin. + + -- Sebastian Harl Tue, 26 Apr 2011 11:48:54 +0200 + +pnp4nagios (0.6.11-1) unstable; urgency=low + + [ Sven Velt ] + * Initial release (Closes: #479031) + * Use "php-fpdf", "php-fpdf-tpl" and "php-fpdi" packages instead of bundled + copies. + * Do not use the bundled copy of Kohana2 but rather depend on + libkohana2-php. + * Ship all configuration in /etc and create appropriate symlinks. + * Ship upstream sample configs as default configs. + * debian/patches: + - Added adjust-template-path: install templates into /etc/ rather than + /usr/share/. + - Added apache-fix-path-to-userfile: fix config directory in the sample + httpd.conf. + - Added fix-nagios-url: fix cgi-bin path in config.php. + - Added fix-npcd-path: fix perfdata paths in npcd.cfg. + - Added fix-path-fpdi: FPDI is shipped in its own subdirectory -- adopt + path in pdf.php. + - Added raise-process-perfdata-timeout: set timeout to 10s in + process_perfdata.cfg; in large and/or virtualized setups, 5s might not + be enough. + + [ Sebastian Harl ] + * Build the following binary packages: + - pnp4nagios-bin: NPCD and process_perfdata.pl + - pnp4nagios-web: web interface + - pnp4nagios: metapackage depending on the other two + * debian/watch: mangle upstream version to replace ".rc" with "~rc". + * Make Apache2 configuration optional using debconf. + + -- Sebastian Harl Mon, 14 Feb 2011 13:15:46 +0100 --- pnp4nagios-0.6.16.orig/debian/README.Debian +++ pnp4nagios-0.6.16/debian/README.Debian @@ -0,0 +1,79 @@ +PNP4Nagios for Debian +--------------------- + +PNP4Nagios supports several modes of operation. They differ in the way how +performance data is being processed and, thus, the efficiency of PNP. Detailed +documentation is available at . + +Using bulk mode +--------------- + +We recommend to use bulk mode with NPCD and npcdmod. This will facilitate an +easy installation and fast processing of performance data. To enable NPCD, set +'RUN' to 'yes' in /etc/default/npcd. + +In order to enable processing of performance data in Nagios, please change the +"process_performance_data" statement in "/etc/nagios3/nagios.cfg" to +"process_performance_data=1". + +To register the NPC event broker module (npcdmod), add the following line +(without quotes) to "/etc/nagios3/nagios.cfg": + +"broker_module=/usr/lib/pnp4nagios/npcdmod.o config_file=/etc/pnp4nagios/npcd.cfg" + +Finally reload your Nagios server by running "/etc/init.d/nagios3 reload". All +performance data should be processed now. + +If you want links to PNP4Nagios for your monitored hosts and services in the +Nagios web frontend just add + +- "action_url /pnp4nagios/graph?host=$HOSTNAME$" + to your hosts or host template(s) + +- "action_url /pnp4nagios/graph?host=$HOSTNAME$&srv=$SERVICEDESC$" + to your services or service template(s) + +For more information and different modes of operation, see +. + + -- Sven Velt Wed, 30 Sep 2009 13:55:35 +0000 + +Using Gearman mode +------------------ + +Starting with version 0.6.12, PNP4Nagios may operate as a Gearman worker. This +is useful in large, distributed setups using Nagios's mod_gearman. To use +the PNP Gearman worker, you'll need a running mod_gearman environment. See + for detailed setup +instructions. + +In addition, the following configuration is required to get you started: + +- Enable processing of performance data in Nagios: set + 'process_performance_data=1' in "/etc/nagios3/nagios.cfg" and reload your + Nagios server: /etc/init.d/nagios3 reload. + +- Enable the PNP Gearman worker daemon by setting 'RUN' to 'yes' in + /etc/default/pnp_gearman_worker. Check the Gearman related options in + "/etc/pnp4nagios/process_perfdata.cfg" (GEARMAN_HOST and encryption + settings) and start the Gearman worker: /etc/init.d/pnp_gearman_worker start + +- Enable distribution of performance data in mod_gearman by setting the + 'perfdata=yes' option. + +When operating in Gearman mode, process_perfdata.pl requires the +Gearman::Worker, MIME::Base64, and Crypt::Rijndael Perl modules. These are +available in the libgearman-client-perl, perl, and libcrypt-rijndael-perl +Debian packages (see packages suggested by pnp4nagios-bin). + + -- Sebastian Harl Wed, 27 Apr 2011 09:32:52 +0200 + +Installation with Icinga +------------------------ + +If you use Icinga you also have to change /etc/pnp4nagios/apache.conf and +replace the line "AuthUserFile /etc/icinga/htpasswd.users" with +"AuthUserFile /etc/icinga/htpasswd.users". + + -- Alexander Reichle-Schmehl Tue, 25 Oct 2011 14:31:28 +0200 + --- pnp4nagios-0.6.16.orig/debian/pnp4nagios-bin.pnp_gearman_worker.default +++ pnp4nagios-0.6.16/debian/pnp4nagios-bin.pnp_gearman_worker.default @@ -0,0 +1,11 @@ +# Default settings for the pnp_gearman_worker init script. + +# Should the gearman worker daemon be started? ("yes" to enable) +RUN="no" + +# Additional options that are passed to the daemon. +DAEMON_OPTS="--config=/etc/pnp4nagios/process_perfdata.cfg" + +# Change to this user before starting the daemon. +# Note: the daemon refuses to start as root. +USER=nagios --- pnp4nagios-0.6.16.orig/debian/watch +++ pnp4nagios-0.6.16/debian/watch @@ -0,0 +1,4 @@ +version=3 + +opts="uversionmangle=s/\.rc/~rc/" \ +http://sf.net/pnp4nagios//pnp4nagios-(.+)\.tar\.gz --- pnp4nagios-0.6.16.orig/debian/pnp4nagios-bin.install +++ pnp4nagios-0.6.16/debian/pnp4nagios-bin.install @@ -0,0 +1,12 @@ +etc/pnp4nagios/nagios.cfg +etc/pnp4nagios/check_commands/ +etc/pnp4nagios/*.cfg +usr/lib/pnp4nagios/ +../../scripts/verify_pnp_config_v2.pl /usr/lib/pnp4nagios/libexec/ +usr/sbin/npcd +usr/share/doc/pnp4nagios/examples/*.cfg +usr/share/doc/pnp4nagios/examples/check_commands/ +usr/share/man/man8/npcd.8 +var/log/pnp4nagios/stats/ +var/lib/pnp4nagios/perfdata/ +var/spool/pnp4nagios/ --- pnp4nagios-0.6.16.orig/debian/pnp4nagios-web.config +++ pnp4nagios-0.6.16/debian/pnp4nagios-web.config @@ -0,0 +1,40 @@ +#! /bin/sh +# config script for pnp4nagios-web +# +# see: dh_installdebconf(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `configure' +# * `reconfigure' + +. /usr/share/debconf/confmodule + +case "$1" in + configure|reconfigure) + default_servers="" + if test -d /etc/apache2/conf.d; then + default_servers="apache2" + fi + + db_fget pnp4nagios-web/httpd seen + if [ "$RET" = "false" ]; then + db_set pnp4nagios-web/httpd "$default_servers" + fi + + db_input medium pnp4nagios-web/httpd || true + db_go || true + ;; + + *) + echo "config called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +db_stop + +exit 0 + --- pnp4nagios-0.6.16.orig/debian/control +++ pnp4nagios-0.6.16/debian/control @@ -0,0 +1,61 @@ +Source: pnp4nagios +Section: net +Priority: optional +Maintainer: Debian Nagios Maintainer Group +Uploaders: Sebastian Harl , Sven Velt +Build-Depends: autotools-dev, debhelper (>= 7), po-debconf, quilt, + rrdtool, librrds-perl +Standards-Version: 3.9.2 +Homepage: http://www.pnp4nagios.org/ +Vcs-Git: git://git.debian.org/pkg-nagios/pkg-pnp4nagios.git +Vcs-Browser: http://git.debian.org/?p=pkg-nagios/pkg-pnp4nagios.git + +Package: pnp4nagios +Architecture: all +Depends: pnp4nagios-bin, pnp4nagios-web, ${misc:Depends} +Description: Nagios addon to create graphs from performance data + PNP is a graphing tool for Nagios that analyzes performance data provided by + plugins and stores them automatically into Round Robin Databases (RRD). It + fully integrates itself into the Nagios Monitoring Website. + . + PNP's goal is to be easily configurable and maintainable. + . + This is a metapackage depending on all parts of PNP4Nagios. + +Package: pnp4nagios-bin +Architecture: any +Depends: librrds-perl, adduser, ${shlibs:Depends}, ${misc:Depends} +Recommends: pnp4nagios-web, nagios3 | icinga +Suggests: rrdcached, perl, libgearman-client-perl, libcrypt-rijndael-perl +Description: Nagios addon to create graphs from performance data (binaries) + PNP is a graphing tool for Nagios that analyzes performance data provided by + plugins and stores them automatically into Round Robin Databases (RRD). It + fully integrates itself into the Nagios Monitoring Website. + . + PNP's goal is to be easily configurable and maintainable. It supports several + modes of operation. When using the Gearman mode, some additional Perl modules + are required: Gearman::Worker, MIME::Base64, and Crypt::Rijndael which are + available in the libgearman-client-perl, perl, and libcrypt-rijndael-perl + packages. + . + This package contains the NPCD-related binaries and process_perfdata.pl. + +Package: pnp4nagios-web +Architecture: all +Depends: libapache2-mod-php5 | php5, php5-gd, + libkohana2-php, + libfpdi-php, + libjs-jquery (>= 1.6.2), libjs-jquery-ui (>= 1.8.ooops.14), + rrdtool, + adduser, + ${misc:Depends} +Recommends: pnp4nagios-bin +Suggests: rrdcached +Description: Nagios addon to create graphs from performance data (web interface) + PNP is a graphing tool for Nagios that analyzes performance data provided by + plugins and stores them automatically into Round Robin Databases (RRD). It + fully integrates itself into the Nagios Monitoring Website. + . + PNP's goal is to be easily configurable and maintainable. + . + This package contains the web-interface for PNP4Nagios. --- pnp4nagios-0.6.16.orig/debian/pnp4nagios-bin.npcd.init +++ pnp4nagios-0.6.16/debian/pnp4nagios-bin.npcd.init @@ -0,0 +1,204 @@ +#!/bin/sh +# +# init.d script for NPCD of PNP4Nagios +# +# Based on a example script of Javier Fernandez-Sanguino +# Copyright (c) 2007 Javier Fernandez-Sanguino +# Copyright (c) 2009 Sven Velt +# +### BEGIN INIT INFO +# Provides: npcd +# Required-Start: $network $local_fs $remote_fs +# Required-Stop: $network $local_fs $remote_fs +# Should-Start: +# Should-Stop: +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Nagios Performance C Daemon +# Description: Speed up processing of Nagios' performance data +### END INIT INFO + +PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin + +DAEMON=/usr/sbin/npcd +NAME=npcd +DESC="Nagios Performance C Daemon (PNP4Nagios)" +LOGDIR=/var/log/pnp4nagios + +PIDFILE=/var/run/$NAME.pid + +test -x $DAEMON || exit 0 + +. /lib/lsb/init-functions + +# Default options, these can be overriden by the information +# at /etc/default/$NAME +DAEMON_OPTS="" +DIETIME=10 +STARTTIME=2 +LOGFILE=$LOGDIR/$NAME.log + +# Include defaults if available +if [ -f /etc/default/npcd ] ; then + . /etc/default/npcd +fi + +# Check if RUN is set to "yes" in /etc/defaults/npcd +if [ "x$RUN" != "xyes" ] ; then + echo "$NAME has been disabled in /etc/default/npcd." + exit 0 +fi + +set -e + +# Check if a given process pid's cmdline matches a given name +running_pid() { + pid=$1 + name=$2 + [ -z "$pid" ] && return 1 + [ ! -d /proc/$pid ] && return 1 + cmd=`cat /proc/$pid/cmdline | tr "\000" "\n" | head -n 1 | cut -d : -f 1` + # Is this the expected server + [ "$cmd" != "$name" ] && return 1 + return 0 +} + +# Check if the process is running looking at /proc +# (works for all users) +running() { + # No pidfile, probably no daemon present + [ ! -f "$PIDFILE" ] && return 1 + pid=`cat $PIDFILE` + running_pid $pid $DAEMON || return 1 + return 0 +} + +# Start the process using the wrapper +start_server() { + start_daemon -p $PIDFILE $DAEMON $DAEMON_OPTS + errcode=$? + return $errcode +} + +# Stop the process using the wrapper +stop_server() { + killproc -p $PIDFILE $DAEMON + errcode=$? + return $errcode +} + +reload_server() { + [ ! -f "$PIDFILE" ] && return 1 + pid=pidofproc $PIDFILE # This is the daemon's pid + # Send a SIGHUP + kill -1 $pid + return $? +} + +# Force the process to die killing it manually +force_stop() { + [ ! -e "$PIDFILE" ] && return + if running ; then + kill -15 $pid + # Is it really dead? + sleep "$DIETIME"s + if running ; then + kill -9 $pid + sleep "$DIETIME"s + if running ; then + echo "Cannot kill $NAME (pid=$pid)!" + exit 1 + fi + fi + fi + rm -f $PIDFILE +} + +case "$1" in + start) + log_daemon_msg "Starting $DESC" "$NAME" + # Check if it's running first + if running ; then + log_progress_msg "apparently already running" + log_end_msg 0 + exit 0 + fi + if start_server ; then + # NOTE: Some servers might die some time after they start, + # this code will detect this issue if STARTTIME is set + # to a reasonable value + [ -n "$STARTTIME" ] && sleep $STARTTIME # Wait some time + if running ; then + # It's ok, the server started and is running + log_end_msg 0 + else + # It is not running after we did start + log_end_msg 1 + fi + else + # Either we could not start it + log_end_msg 1 + fi + ;; + stop) + log_daemon_msg "Stopping $DESC" "$NAME" + if running ; then + # Only stop the server if we see it running + errcode=0 + stop_server || errcode=$? + log_end_msg $errcode + else + # If it's not running don't do anything + log_progress_msg "apparently not running" + log_end_msg 0 + exit 0 + fi + ;; + force-stop) + # First try to stop gracefully the program + $0 stop + if running; then + # If it's still running try to kill it more forcefully + log_daemon_msg "Stopping (force) $DESC" "$NAME" + errcode=0 + force_stop || errcode=$? + log_end_msg $errcode + fi + ;; + restart|force-reload) + log_daemon_msg "Restarting $DESC" "$NAME" + errcode=0 + stop_server || errcode=$? + # Wait some sensible amount, some server need this + [ -n "$DIETIME" ] && sleep $DIETIME + start_server || errcode=$? + [ -n "$STARTTIME" ] && sleep $STARTTIME + running || errcode=$? + log_end_msg $errcode + ;; + status) + + log_daemon_msg "Checking status of $DESC" "$NAME" + if running ; then + log_progress_msg "running" + log_end_msg 0 + else + log_progress_msg "apparently not running" + log_end_msg 1 + exit 1 + fi + ;; + # Use this if the daemon cannot reload + reload) + log_warning_msg "Reloading $NAME daemon: not implemented, as the daemon" + log_warning_msg "cannot re-read the config file (use restart)." + exit 1 + ;; + *) + N=/etc/init.d/$NAME + echo "Usage: $N {start|stop|force-stop|restart|force-reload|status}" >&2 + exit 1 + ;; +esac + +exit 0 --- pnp4nagios-0.6.16.orig/debian/README.templates.d +++ pnp4nagios-0.6.16/debian/README.templates.d @@ -0,0 +1,7 @@ +# +# As of Debian version 0.6.16-1, the default config.php adds all directories +# inside /etc/pnp4nagios/templates.d/ to the templates_dirs configuration. +# This allows third-party packages to provide their own set of PNP4Nagios +# templates and create a symlink to the template directory inside +# /etc/pnp4nagios/templates.d. +# --- pnp4nagios-0.6.16.orig/debian/README.source +++ pnp4nagios-0.6.16/debian/README.source @@ -0,0 +1,4 @@ +This package uses quilt to manage all modifications to the upstream source. +See /usr/share/doc/quilt/README.source for instructions how to generate the +patched source, add a new modification, and remove an existing one. + --- pnp4nagios-0.6.16.orig/debian/pnp4nagios-web.links +++ pnp4nagios-0.6.16/debian/pnp4nagios-web.links @@ -0,0 +1,4 @@ +/usr/share/php/fpdf /usr/share/pnp4nagios/html/application/vendor/fpdf +/usr/share/php/fpdi /usr/share/pnp4nagios/html/application/vendor/fpdi +/usr/share/javascript/jquery/jquery.min.js /usr/share/pnp4nagios/html/media/js/jquery-min.js +/usr/share/javascript/jquery-ui/jquery-ui.js /usr/share/pnp4nagios/html/media/js/jquery-ui.min.js --- pnp4nagios-0.6.16.orig/debian/pnp4nagios-web.postinst +++ pnp4nagios-0.6.16/debian/pnp4nagios-web.postinst @@ -0,0 +1,103 @@ +#!/bin/sh +# postinst script for pnp4nagios-web +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-remove' +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +. /usr/share/debconf/confmodule + +setperm() { + user="$1" + group="$2" + mode="$3" + file="$4" + shift 4 + # only do something when no setting exists + if ! dpkg-statoverride --list "$file" >/dev/null 2>&1; then + chown "$user":"$group" "$file" + chmod "$mode" "$file" + fi +} + +configure_apache2() { + a2reload="false" + + if [ -d /etc/apache2/conf.d/ ]; then + if [ ! -e /etc/apache2/conf.d/pnp4nagios.conf ]; then + ln -s /etc/pnp4nagios/apache.conf /etc/apache2/conf.d/pnp4nagios.conf + a2reload="true" + fi + fi + + if [ -d /etc/apache2/mods-enabled ]; then + if [ ! -e /etc/apache2/mods-enabled/rewrite.load ]; then + if [ -x /usr/sbin/a2enmod ]; then + a2enmod rewrite + a2reload="true" + fi + fi + fi + + if [ "$a2reload" = "true" ]; then + if [ -x /etc/init.d/apache2 ]; then + invoke-rc.d apache2 reload + fi + fi +} + +case "$1" in + configure) + if ! getent passwd nagios > /dev/null ; then + echo 'Adding system-user for nagios' 1>&2 + adduser --system --group --home /var/lib/nagios \ + --disabled-login --force-badname nagios > /dev/null + fi + setperm nagios www-data 750 /var/lib/pnp4nagios + setperm nagios nagios 755 /var/lib/pnp4nagios/perfdata + setperm nagios www-data 750 /var/log/pnp4nagios + + db_get pnp4nagios-web/httpd + http_servers=`echo $RET | sed -e 's/,/ /g'` + + for httpd in $http_servers; do + case "$httpd" in + apache2) + configure_apache2 + ;; + # WISHLIST: configure other web servers as well + *) + echo "Don't know how to configure web server $httpd" >&2 + ;; + esac + done + ;; + + 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 + --- pnp4nagios-0.6.16.orig/debian/rules +++ pnp4nagios-0.6.16/debian/rules @@ -0,0 +1,203 @@ +#!/usr/bin/make -f +# debian/rules for PNP4Nagios +# +# Written by Sven Velt and Sebastian Harl . + +include /usr/share/quilt/quilt.make + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# These are used for cross-compiling and for saving the configure script +# from having to guess our platform (since we know it already) +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + +ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE)) +CROSS= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE) +else +CROSS= --build $(DEB_BUILD_GNU_TYPE) +endif + +get-orig-source: + uscan --force --verbose --rename + +config.status: configure + dh_testdir + + for file in config.guess config.sub; do \ + mv $$file $$file.upstream; \ + ln -s /usr/share/misc/$$file .; \ + done + + ./configure $(CROSS) \ + --with-layout=debian \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --without-kohana \ + --with-kohana_system=/usr/share/php/kohana2/system \ + --with-httpd-conf=/etc/apache2/conf.d \ + CFLAGS="$(CFLAGS)" + +build: build-arch build-indep + +build-arch: build-stamp + +build-indep: build-stamp + +build-stamp: $(QUILT_STAMPFN) config.status + dh_testdir + + # Check whether all patches have been applied. + ( cd debian/patches/; for patch in *; do \ + if test "$$patch" != "series"; then \ + grep "$$patch" series > /dev/null \ + || ( echo "$$patch not enabled\!"; exit 1 ); \ + fi; done ) + + $(MAKE) all + + touch $@ + +clean: unpatch + dh_testdir + dh_testroot + rm -f build-stamp + + for file in config.guess config.sub; do \ + if [ -e $$file.upstream ]; then \ + rm -f $$file; \ + mv $$file.upstream $$file; \ + fi \ + done + + [ ! -f Makefile ] || $(MAKE) distclean + + dh_clean + debconf-updatepo + +install: build + dh_testdir + dh_testroot + dh_prep + dh_installdirs + + $(MAKE) DESTDIR=$(CURDIR)/debian/tmp \ + INSTALL_OPTS="--owner=root --group=root" install install-config + + # Ignore install.php (for future debugging don't delete it) + touch debian/tmp/usr/share/pnp4nagios/html/install.ignore + + mkdir -p debian/tmp/usr/share/doc/pnp4nagios/examples/ + + # Move template config dir to /etc/pnp4nagios/templates + rmdir debian/tmp/usr/share/pnp4nagios/html/templates + mkdir debian/tmp/etc/pnp4nagios/templates + mv debian/tmp/usr/share/pnp4nagios/html/templates.special \ + debian/tmp/usr/share/doc/pnp4nagios/examples/ + mkdir debian/tmp/etc/pnp4nagios/templates.special + + mkdir -p debian/tmp/usr/sbin/ + mv debian/tmp/usr/bin/npcd \ + debian/tmp/usr/sbin/ + + mv debian/tmp/etc/pnp4nagios/rra.cfg-sample \ + debian/tmp/etc/pnp4nagios/rra.cfg + + mv debian/tmp/etc/pnp4nagios/nagios.cfg-sample \ + debian/tmp/usr/share/doc/pnp4nagios/examples/nagios.cfg + + mv debian/tmp/etc/pnp4nagios/misccommands.cfg-sample \ + debian/tmp/usr/share/doc/pnp4nagios/examples/misccommands.cfg + + mkdir debian/tmp/usr/share/doc/pnp4nagios/examples/check_commands + mv debian/tmp/etc/pnp4nagios/check_commands/check_nwstat.cfg-sample \ + debian/tmp/usr/share/doc/pnp4nagios/examples/check_commands/check_nwstat.cfg + + mkdir debian/tmp/usr/share/doc/pnp4nagios/examples/pages + mv debian/tmp/etc/pnp4nagios/pages/web_traffic.cfg-sample \ + debian/tmp/usr/share/doc/pnp4nagios/examples/pages/web_traffic.cfg + + cp -av contrib/ssi debian/tmp/usr/share/doc/pnp4nagios/examples/ + rm -fv debian/tmp/usr/share/doc/pnp4nagios/examples/ssi/*.in + + # Remove external PHP classes/libraries: FPDF, FPDF-TPL, FPDI + rm -r debian/tmp/usr/share/pnp4nagios/html/application/vendor/fpdf + + # Remove external JavaScript files: jQuery and jQuery-UI + rm debian/tmp/usr/share/pnp4nagios/html/media/js/jquery-min.js + rm debian/tmp/usr/share/pnp4nagios/html/media/js/jquery-ui.min.js + + # Clean up some files + rmdir debian/tmp/usr/bin + mv debian/tmp/etc/pnp4nagios/check_commands/check_all_local_disks.cfg-sample \ + debian/tmp/etc/pnp4nagios/check_commands/check_all_local_disks.cfg + rm debian/tmp/etc/pnp4nagios/check_commands/check_nrpe.cfg-sample + + # Add Debian specific config and placeholder files + #touch debian/tmp/etc/pnp4nagios/pages/.placeholder + cp -av debian/nagios.cfg debian/tmp/etc/pnp4nagios/ + cp -av debian/check_commands/* debian/tmp/etc/pnp4nagios/check_commands/ + + cp -av sample-config/httpd.conf debian/tmp/etc/pnp4nagios/apache.conf + + # Remove unnecessary config files (duplicates) + rm -f debian/tmp/etc/pnp4nagios/config_local.php + rm -f debian/tmp/etc/pnp4nagios/config.php.0.6* + + # Add subdirs to /var/spool/pnp4nagios/ to prepare for different modes + mkdir debian/tmp/var/spool/pnp4nagios/nagios + mkdir debian/tmp/var/spool/pnp4nagios/npcd + + # Delete not used and empty directories + #rmdir debian/tmp/usr/share/pnp4nagios/html/application/logs/ + rmdir debian/tmp/usr/share/pnp4nagios/html/application/cache/ + rmdir debian/tmp/usr/share/pnp4nagios/html/application/hooks/ + #rmdir debian/tmp/usr/share/pnp4nagios/html/application/libraries/ + + mkdir debian/tmp/etc/pnp4nagios/templates.d + cp debian/README.templates.d debian/tmp/etc/pnp4nagios/templates.d/README + + dh_install --sourcedir=debian/tmp --fail-missing + +# Build architecture-independent files here. +binary-indep: build install + dh_testdir + dh_testroot + dh_installchangelogs -i ChangeLog + dh_installdocs -A -i AUTHORS README debian/README.Debian + dh_installexamples -i + dh_installdebconf -i + dh_installinit -i + dh_installman -i + dh_link -i + dh_compress -i + dh_fixperms -i + dh_installdeb -i + dh_gencontrol -i + dh_md5sums -i + dh_builddeb -i + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs -a ChangeLog + dh_installdocs -A -a AUTHORS README debian/README.Debian + dh_installexamples -a + dh_installdebconf -a + dh_installinit -ppnp4nagios-bin --name=npcd + dh_installinit -ppnp4nagios-bin --name=pnp_gearman_worker + dh_installman -a + dh_link -a + dh_strip -a + dh_compress -a + dh_fixperms -a + dh_installdeb -a + dh_shlibdeps -a + dh_gencontrol -a + dh_md5sums -a + dh_builddeb -a + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- pnp4nagios-0.6.16.orig/debian/copyright +++ pnp4nagios-0.6.16/debian/copyright @@ -0,0 +1,550 @@ +Format: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=166 +Upstream-Name: PNP4Nagios +Upstream-Contact: Jörg Linge +Source: http://docs.pnp4nagios.org/pnp-0.6/about#download + +Files: * +Copyright: + 2005-2011 Jörg Linge +License: GPL-2+ +Comment: See the file THANKS for a list of contributors. + +Files: + helpers/w2h.pl.in + scripts/verify_pnp_config.pl.in +Copyright: + 2008-2010 Wolfgang Nieder +License: GPL-2+ + +Files: include/* +Copyright: + 1999-2008 Ethan Galstad +License: GPL-2 + +Files: include/npcdmod.h +Copyright: + 2008 Hendrik Baecker +License: GPL-2 + +Files: lib/kohana/* +Copyright: + 2007-2009 Kohana Team +License: BSD-3-clause +Comment: See for the list of team members. + +Files: + lib/kohana/system/core/utf8.php + lib/kohana/system/core/utf8/* +Copyright: + 2007, Kohana Team + 2005, Harry Fuecks +License: LGPL-2.1 + +Files: lib/kohana/system/fonts/* +Copyright: + 2003, Bitstream, Inc. + 2006, Tavmjong Bah. +License: fonts-copyright + +Files: lib/kohana/system/libraries/drivers/Database/Pdosqlite.php +Copyright: + Doutu + Greg MacLellan +License: BSD-3-clause + +File: scripts/verify_pnp_config_v2.pl +Copyright: + 2005-2011, PNP4Nagios Developer Team +License: GPL-2+ + +Files: share/pnp/templates.dist/check_apachestatus.php +Copyright: + Roman Ovchinnikov +License: GPL-2+ + +Files: share/pnp/templates.dist/check_ntp_time.php +Copyright: + Mathias Kettner +License: GPL-2+ + +Files: share/pnp/templates.dist/check_esx3.php +Copyright: + 2009 op5 AB (author: Mattias Ryrlen ) + Joerg Linge +License: GPL-2 + +Files: share/pnp/templates.dist/check_messpc_temp.php +Copyright: + Joerg Peter Geissler +License: GPL-2+ + +Files: check_mssql_health.php +Copyright: + 2009-2011 Gerhard Lausser + 2011 Joerg Linge +License: GPL-2+ + +Files: share/pnp/templates.dist/check_multi_nagiostats.php +Copyright: + 2009 Matthias Flacke +License: GPL-2+ + +Files: share/pnp/templates.dist/check_mysql_health.php +Copyright: + 2009 Gerhard Lausser +License: GPL-2+ + +Files: share/pnp/templates.dist/check_openmanage.php +Copyright: + 2008-2011 Trond Hasle Amundsen +License: GPL-3+ + +Files: share/pnp/application/lib/json.php +Copyright: + 2005 Michal Migurski + Matt Knapp + Brett Stimmerman +License: BSD-2-clause + +Files: share/pnp/application/vendor/fpdf/* +Copyright: + 2008 Olivier Plathey +License: FPDF-license + +Files: + share/pnp/application/vendor/fpdf/fpdf_tpl.php + share/pnp/application/vendor/fpdf/fpdi* + share/pnp/application/vendor/fpdf/pdf_context.php + share/pnp/application/vendor/fpdf/pdf_parser.php + share/pnp/application/vendor/fpdf/filters/* +Copyright: + 2004-2009 Setasign - Jan Slabon +License: Apache-2.0 + +Files: + share/pnp/media/css/jquery.mobile.min.css + share/pnp/media/js/jquery.mobile.min.js +Copyright: + 2010 jQuery Project +License: MIT and GPL-2+ + +Files: + share/pnp/media/js/jquery.imgareaselect.min.js +Copyright: + 2008-2011 Michal Wojciechowski (odyniec.net) +License: MIT and GPL-2+ + +Files: + share/pnp/media/js/jquery-ui.min.js + share/pnp/media/css/ui-* +Copyright: + 2010-2011 Brandon Aaron + 2010-2011 Paul Bakaus (paulbakaus.com) + 2010-2011 David Bolter + 2010-2011 Rich Caloggero + 2010-2011 Chi Cheng (cloudream@gmail.com) + 2010-2011 Colin Clark (http://colin.atrc.utoronto.ca/) + 2010-2011 Michelle D'Souza + 2010-2011 Aaron Eisenberger (aaronchi@gmail.com) + 2010-2011 Ariel Flesler + 2010-2011 Bohdan Ganicky + 2010-2011 Scott González + 2010-2011 Marc Grabanski (m@marcgrabanski.com) + 2010-2011 Klaus Hartl (stilbuero.de) + 2010-2011 Scott Jehl + 2010-2011 Cody Lindley + 2010-2011 Eduardo Lundgren (eduardolundgren@gmail.com) + 2010-2011 Todd Parker + 2010-2011 John Resig + 2010-2011 Patty Toland + 2010-2011 Ca-Phun Ung (yelotofu.com) + 2010-2011 Keith Wood (kbwood@virginbroadband.com.au) + 2010-2011 Maggie Costello Wachs + 2010-2011 Richard D. Worth (rdworth.org) + 2010-2011 Jörn Zaefferer (bassistance.de) +License: MIT and GPL-2+ + +Files: + share/pnp/media/js/jquery-ui-timepicker-addon.js +Copyright: + 2011 Trent Richardson +License: MIT and GPL-2+ + +Files: share/pnp/media/js/jquery.cluetip.js +Copyright: + 2009 Karl Swedberg +License: MIT and GPL-2+ +Comment: Copyright and license extracted from upstream website and sources. + +Files: share/pnp/media/js/jquery-min.js +Copyright: + 2010-2011 John Resig + 2010-2011 The Dojo Foundation +License: MIT and BSD-3-clause and GPL-2+ +Comment: License details extracted from upstream website. + +Files: src/* +Copyright: + 2006-2010 Hendrik Baecker +License: GPL-2 + +Files: src/utils.c +Copyright: + 2006-2009 Hendrik Baecker + 1999-2006 Ethan Galstad +License: GPL-2 + +Files: debian/* +Copyright: + 2009-2011, Sven Velt + 2011, Sebastian Harl +License: BSD-2-clause + +Files: + debian/pnp4nagios-bin.npcd.init +Copyright: + 2007 Javier Fernandez-Sanguino + 2009 Sven Velt +License: BSD-2-clause + +Files: + debian/pnp4nagios-bin.pnp_gearman_worker.init +Copyright: + 2007, Javier Fernandez-Sanguino + 2011, Sebastian Harl +License: BSD-2-clause + +Files: + debian/po/cs.po +Copyright: + 2012, Michal Šimůnek +License: BSD-2-clause + +Files: + debian/po/da.po +Copyright: + 2012, Joe Hansen +License: BSD-2-clause + +Files: + debian/po/de.po +Copyright: + 2011, Sebastian Harl + Based on the German nagios3/httpd translation by Matthias Julius +License: BSD-2-clause + +Files: + debian/po/es.po +Copyright: + 2010, Software in the Public Interest +License: BSD-2-clause + +Files: + debian/po/fr.po +Copyright: + 2011, Debian French l10n team + Written by Christian Perrier +License: BSD-2-clause + +Files: + debian/po/ja.po +Copyright: + 2011, Debian Nagios Maintainer Group + Written by Hideki Yamane +License: BSD-2-clause + +Files: + debian/po/nl.po +Copyright: + 2012, Jeroen Schot +License: BSD-2-clause + +Files: + debian/po/pt.po +Copyright: + 2011, Pedro Ribeiro +License: BSD-2-clause + +Files: + debian/po/ru.po +Copyright: + 2011, Debian Russian l10n team + Written by Yuri Kozlov +License: BSD-2-clause + +Files: + debian/po/sv/po +Copyright: + 2011, Martin Bagge +License: BSD-2-clause + +License: Apache-2.0 + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + . + http://www.apache.org/licenses/LICENSE-2.0 + . + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + . + On Debian systems, the full text of the Apache License, Version 2.0 + can be found in the file `/usr/share/common-licenses/Apache-2.0'. + +License: BSD-3-clause + All rights reserved. + . + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + . + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + . + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + . + * Neither the name of the Kohana nor the names of its contributors may + be used to endorse or promote products derived from this software + without specific prior written permission. + . + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR + CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; + OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR + OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF + ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +License: BSD-2-clause + All rights reserved. + . + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + . + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + . + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + . + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR + CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; + OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR + OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF + ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +License: LGPL-2.1 + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + . + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + . + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + . + On Debian systems, the full text of the GNU Lesser General Public + License version 2.1 can be found in the file + `/usr/share/common-licenses/LGPL-2.1'. + +License: MIT + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + . + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + . + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. + +License: GPL-2 + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License + as published by the Free Software Foundation; version 2. + . + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + . + On Debian systems, the full text of the GNU General Public License version 2 + can be found in the file `/usr/share/common-licenses/GPL-2'. The latest + version of the library can be found in the file + `/usr/share/common-licenses/GPL'. + +License: GPL-2+ + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License + as published by the Free Software Foundation; either version 2 + of the License, or (at your option) any later version. + . + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + . + On Debian systems, the full text of the GNU General Public License version 2 + can be found in the file `/usr/share/common-licenses/GPL-2'. The latest + version of the library can be found in the file + `/usr/share/common-licenses/GPL'. + +License: GPL-3+ + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + . + This program is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +License: FPDF-license + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software to use, copy, modify, distribute, sublicense, and/or sell + copies of the software, and to permit persons to whom the software is + furnished to do so. + . + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED. + +License: fonts-copyright + Fonts are (c) Bitstream (see below). DejaVu changes are in public domain. + Glyphs imported from Arev fonts are (c) Tavmjong Bah (see below) + . + Bitstream Vera Fonts Copyright + ------------------------------ + . + Copyright (c) 2003 by Bitstream, Inc. All Rights Reserved. Bitstream Vera is + a trademark of Bitstream, Inc. + . + Permission is hereby granted, free of charge, to any person obtaining a copy + of the fonts accompanying this license ("Fonts") and associated + documentation files (the "Font Software"), to reproduce and distribute the + Font Software, including without limitation the rights to use, copy, merge, + publish, distribute, and/or sell copies of the Font Software, and to permit + persons to whom the Font Software is furnished to do so, subject to the + following conditions: + . + The above copyright and trademark notices and this permission notice shall + be included in all copies of one or more of the Font Software typefaces. + . + The Font Software may be modified, altered, or added to, and in particular + the designs of glyphs or characters in the Fonts may be modified and + additional glyphs or characters may be added to the Fonts, only if the fonts + are renamed to names not containing either the words "Bitstream" or the word + "Vera". + . + This License becomes null and void to the extent applicable to Fonts or Font + Software that has been modified and is distributed under the "Bitstream + Vera" names. + . + The Font Software may be sold as part of a larger software package but no + copy of one or more of the Font Software typefaces may be sold by itself. + . + THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS + OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, + TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL BITSTREAM OR THE GNOME + FOUNDATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING + ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, + WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF + THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE + FONT SOFTWARE. + . + Except as contained in this notice, the names of Gnome, the Gnome + Foundation, and Bitstream Inc., shall not be used in advertising or + otherwise to promote the sale, use or other dealings in this Font Software + without prior written authorization from the Gnome Foundation or Bitstream + Inc., respectively. For further information, contact: fonts at gnome dot + org. + . + Arev Fonts Copyright + ------------------------------ + . + Copyright (c) 2006 by Tavmjong Bah. All Rights Reserved. + . + Permission is hereby granted, free of charge, to any person obtaining + a copy of the fonts accompanying this license ("Fonts") and + associated documentation files (the "Font Software"), to reproduce + and distribute the modifications to the Bitstream Vera Font Software, + including without limitation the rights to use, copy, merge, publish, + distribute, and/or sell copies of the Font Software, and to permit + persons to whom the Font Software is furnished to do so, subject to + the following conditions: + . + The above copyright and trademark notices and this permission notice + shall be included in all copies of one or more of the Font Software + typefaces. + . + The Font Software may be modified, altered, or added to, and in + particular the designs of glyphs or characters in the Fonts may be + modified and additional glyphs or characters may be added to the + Fonts, only if the fonts are renamed to names not containing either + the words "Tavmjong Bah" or the word "Arev". + . + This License becomes null and void to the extent applicable to Fonts + or Font Software that has been modified and is distributed under the + "Tavmjong Bah Arev" names. + . + The Font Software may be sold as part of a larger software package but + no copy of one or more of the Font Software typefaces may be sold by + itself. + . + THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT + OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL + TAVMJONG BAH BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL + DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM + OTHER DEALINGS IN THE FONT SOFTWARE. + . + Except as contained in this notice, the name of Tavmjong Bah shall not + be used in advertising or otherwise to promote the sale, use or other + dealings in this Font Software without prior written authorization + from Tavmjong Bah. For further information, contact: tavmjong @ free + . fr. --- pnp4nagios-0.6.16.orig/debian/pnp4nagios-web.install +++ pnp4nagios-0.6.16/debian/pnp4nagios-web.install @@ -0,0 +1,14 @@ +etc/pnp4nagios/apache.conf +etc/pnp4nagios/background.pdf +etc/pnp4nagios/templates/ +etc/pnp4nagios/templates.d/ +etc/pnp4nagios/pages/ +etc/pnp4nagios/templates.special/ +etc/pnp4nagios/pnp4nagios_release +etc/pnp4nagios/config.php +usr/share/doc/pnp4nagios/examples/templates.special/ +usr/share/doc/pnp4nagios/examples/pages/ +usr/share/doc/pnp4nagios/examples/ssi/ +usr/share/pnp4nagios/html/ +var/log/pnp4nagios/kohana/ +var/lib/pnp4nagios/ --- pnp4nagios-0.6.16.orig/debian/nagios.cfg +++ pnp4nagios-0.6.16/debian/nagios.cfg @@ -0,0 +1,34 @@ +define command { + command_name pnp-synchronous-service + command_line /usr/bin/perl /usr/lib/pnp4nagios/libexec/process_perfdata.pl +} + +define command { + command_name pnp-synchronous-host + command_line /usr/bin/perl /usr/lib/pnp4nagios/libexec/process_perfdata.pl -d HOSTPERFDATA +} + +############################################################################## + +define command{ + command_name pnp-bulk-service + command_line /usr/bin/perl /usr/lib/pnp4nagios/libexec/process_perfdata.pl --bulk=/var/spool/pnp4nagios/nagios/service-perfdata +} + +define command{ + command_name pnp-bulk-host + command_line /usr/bin/perl /usr/lib/pnp4nagios/libexec/process_perfdata.pl --bulk=/var/spool/pnp4nagios/nagios/host-perfdata +} + +############################################################################## + +define command{ + command_name pnp-bulknpcd-service + command_line /bin/mv /var/spool/pnp4nagios/nagios/service-perfdata /var/spool/pnp4nagios/npcd/service-perfdata.$TIMET$ +} + +define command{ + command_name pnp-bulknpcd-host + command_line /bin/mv /var/spool/pnp4nagios/nagios/host-perfdata /var/spool/pnp4nagios/npcd/host-perfdata.$TIMET$ +} + --- pnp4nagios-0.6.16.orig/debian/source/format +++ pnp4nagios-0.6.16/debian/source/format @@ -0,0 +1 @@ +1.0 --- pnp4nagios-0.6.16.orig/debian/po/ru.po +++ pnp4nagios-0.6.16/debian/po/ru.po @@ -0,0 +1,40 @@ +# Copyright (C) 2011 Debian Russian l10n team +# This file is distributed under the same license as the pnp4nagios package. +# +# Yuri Kozlov , 2011. +msgid "" +msgstr "" +"Project-Id-Version: pnp4nagios 0.6.11-1\n" +"Report-Msgid-Bugs-To: pnp4nagios@packages.debian.org\n" +"POT-Creation-Date: 2011-02-10 12:58+0100\n" +"PO-Revision-Date: 2011-04-23 10:23+0400\n" +"Last-Translator: Yuri Kozlov \n" +"Language-Team: Russian \n" +"Language: ru\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Lokalize 1.0\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" + +#. Type: multiselect +#. Description +#: ../pnp4nagios-web.templates:1001 +msgid "Web servers to configure for PNP4Nagios:" +msgstr "Веб-серверы для настройки под PNP4Nagios:" + +#. Type: multiselect +#. Description +#: ../pnp4nagios-web.templates:1001 +msgid "Please select which web servers should be configured for PNP4Nagios." +msgstr "Выберите веб-серверы, которые нужно настроить для PNP4Nagios." + +#. Type: multiselect +#. Description +#: ../pnp4nagios-web.templates:1001 +msgid "" +"If you would prefer to perform configuration manually, leave all servers " +"unselected." +msgstr "Если вы хотите выполнить настройку вручную, то ничего не выбирайте." + --- pnp4nagios-0.6.16.orig/debian/po/ja.po +++ pnp4nagios-0.6.16/debian/po/ja.po @@ -0,0 +1,38 @@ +# Copyright (C) 2011 Debian Nagios Maintainer Group +# This file is distributed under the same license as the pnp4nagios package. +# Hideki Yamane , 2011. +# +msgid "" +msgstr "" +"Project-Id-Version: pnp4nagios 0.6.12-1\n" +"Report-Msgid-Bugs-To: pnp4nagios@packages.debian.org\n" +"POT-Creation-Date: 2011-02-10 12:58+0100\n" +"PO-Revision-Date: 2011-05-01 07:26+0900\n" +"Last-Translator: Hideki Yamane \n" +"Language-Team: Japanese \n" +"Language: ja\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: multiselect +#. Description +#: ../pnp4nagios-web.templates:1001 +msgid "Web servers to configure for PNP4Nagios:" +msgstr "PNP4Nagios 用に設定するウェブサーバ:" + +#. Type: multiselect +#. Description +#: ../pnp4nagios-web.templates:1001 +msgid "Please select which web servers should be configured for PNP4Nagios." +msgstr "PNP4Nagios 用に設定するウェブサーバを選択してください。" + +#. Type: multiselect +#. Description +#: ../pnp4nagios-web.templates:1001 +msgid "" +"If you would prefer to perform configuration manually, leave all servers " +"unselected." +msgstr "" +"手動で設定をしたい場合には、どのサーバも選ばないでください。" + --- pnp4nagios-0.6.16.orig/debian/po/da.po +++ pnp4nagios-0.6.16/debian/po/da.po @@ -0,0 +1,40 @@ +# Danish translation pnp4nagios. +# Copyright (C) 2012 pnp4nagios & nedenstående oversættere. +# This file is distributed under the same license as the pnp4nagios package. +# Joe Hansen , 2012. +# +msgid "" +msgstr "" +"Project-Id-Version: pnp4nagios\n" +"Report-Msgid-Bugs-To: pnp4nagios@packages.debian.org\n" +"POT-Creation-Date: 2011-02-10 12:58+0100\n" +"PO-Revision-Date: 2012-01-05 17:34+0000\n" +"Last-Translator: Joe Hansen \n" +"Language-Team: Danish \n" +"Language: da\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: multiselect +#. Description +#: ../pnp4nagios-web.templates:1001 +msgid "Web servers to configure for PNP4Nagios:" +msgstr "Internetservere at konfigurere for PNP4Nagios:" + +#. Type: multiselect +#. Description +#: ../pnp4nagios-web.templates:1001 +msgid "Please select which web servers should be configured for PNP4Nagios." +msgstr "Vælg venligst hvilke internetservere der skal konfigureres for PNP4Nagios." + +#. Type: multiselect +#. Description +#: ../pnp4nagios-web.templates:1001 +msgid "" +"If you would prefer to perform configuration manually, leave all servers " +"unselected." +msgstr "" +"Hvis du foretrækker at udføre konfigurationen manuelt, så lad alle " +"serverne være umarkerede." + --- pnp4nagios-0.6.16.orig/debian/po/es.po +++ pnp4nagios-0.6.16/debian/po/es.po @@ -0,0 +1,64 @@ +# pnp4nagios po-debconf translation to Spanish +# Copyright (C) 2010 Software in the Public Interest +# This file is distributed under the same license as the pnp4nagios package. +# +# Changes: +# - Initial translation +# Camaleón , 2011 +# +# - Updates +# +# +# Traductores, si no conocen el formato PO, merece la pena leer la +# documentación de gettext, especialmente las secciones dedicadas a este +# formato, por ejemplo ejecutando: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Equipo de traducción al español, por favor lean antes de traducir +# los siguientes documentos: +# +# - El proyecto de traducción de Debian al español +# http://www.debian.org/intl/spanish/ +# especialmente las notas y normas de traducción en +# http://www.debian.org/intl/spanish/notas +# +# - La guía de traducción de po's de debconf: +# /usr/share/doc/po-debconf/README-trans +# o http://www.debian.org/intl/l10n/po-debconf/README-trans +# +msgid "" +msgstr "" +"Project-Id-Version: pnp4nagios 0.6.13-1\n" +"Report-Msgid-Bugs-To: pnp4nagios@packages.debian.org\n" +"POT-Creation-Date: 2011-02-10 12:58+0100\n" +"PO-Revision-Date: 2011-06-27 13:30+0200\n" +"Last-Translator: Camaleón \n" +"Language-Team: Debian Spanish \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: multiselect +#. Description +#: ../pnp4nagios-web.templates:1001 +msgid "Web servers to configure for PNP4Nagios:" +msgstr "Servidores web a configurar para PNP4Nagios:" + +#. Type: multiselect +#. Description +#: ../pnp4nagios-web.templates:1001 +msgid "Please select which web servers should be configured for PNP4Nagios." +msgstr "" +"Seleccione los servidores web que se deberían configurar para PNP4Nagios." + +#. Type: multiselect +#. Description +#: ../pnp4nagios-web.templates:1001 +msgid "" +"If you would prefer to perform configuration manually, leave all servers " +"unselected." +msgstr "" +"Si prefiere llevar a cabo una configuración manual, no seleccione ningún " +"servidor." --- pnp4nagios-0.6.16.orig/debian/po/nl.po +++ pnp4nagios-0.6.16/debian/po/nl.po @@ -0,0 +1,39 @@ +# Dutch translation of pnp4nagios debconf templates. +# Copyright (C) 2012 Jeroen Schot +# This file is distributed under the same license as the pnp4nagios package. +# Jeroen Schot , 2012. +# +msgid "" +msgstr "" +"Project-Id-Version: pnp4nagios 0.6.13-1\n" +"Report-Msgid-Bugs-To: pnp4nagios@packages.debian.org\n" +"POT-Creation-Date: 2011-02-10 12:58+0100\n" +"PO-Revision-Date: 2012-01-02 14:09+0100\n" +"Last-Translator: Jeroen Schot \n" +"Language-Team: Debian l10n Dutch \n" +"Language: nl\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: multiselect +#. Description +#: ../pnp4nagios-web.templates:1001 +msgid "Web servers to configure for PNP4Nagios:" +msgstr "Automatisch te configureren webservers:" + +#. Type: multiselect +#. Description +#: ../pnp4nagios-web.templates:1001 +msgid "Please select which web servers should be configured for PNP4Nagios." +msgstr "" +"Welke webservers moeten automatisch worden geconfigureerd voor PNP4Nagios?" + +#. Type: multiselect +#. Description +#: ../pnp4nagios-web.templates:1001 +msgid "" +"If you would prefer to perform configuration manually, leave all servers " +"unselected." +msgstr "" +"Als u de configuratie liever handmatig doet, selecteer dan geen enkele server." --- pnp4nagios-0.6.16.orig/debian/po/templates.pot +++ pnp4nagios-0.6.16/debian/po/templates.pot @@ -0,0 +1,38 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: pnp4nagios@packages.debian.org\n" +"POT-Creation-Date: 2011-02-10 12:58+0100\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: multiselect +#. Description +#: ../pnp4nagios-web.templates:1001 +msgid "Web servers to configure for PNP4Nagios:" +msgstr "" + +#. Type: multiselect +#. Description +#: ../pnp4nagios-web.templates:1001 +msgid "Please select which web servers should be configured for PNP4Nagios." +msgstr "" + +#. Type: multiselect +#. Description +#: ../pnp4nagios-web.templates:1001 +msgid "" +"If you would prefer to perform configuration manually, leave all servers " +"unselected." +msgstr "" --- pnp4nagios-0.6.16.orig/debian/po/fr.po +++ pnp4nagios-0.6.16/debian/po/fr.po @@ -0,0 +1,40 @@ +# Copyright (C) 2011 Debian French l10n team +# This file is distributed under the same license as the pnp4nagios package. +# +# Christian Perrier , 2011. +msgid "" +msgstr "" +"Project-Id-Version: pnp4nagios\n" +"Report-Msgid-Bugs-To: pnp4nagios@packages.debian.org\n" +"POT-Creation-Date: 2011-02-10 12:58+0100\n" +"PO-Revision-Date: 2011-04-13 08:54+0200\n" +"Last-Translator: Christian Perrier \n" +"Language-Team: French \n" +"Language: fr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Lokalize 1.0\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. Type: multiselect +#. Description +#: ../pnp4nagios-web.templates:1001 +msgid "Web servers to configure for PNP4Nagios:" +msgstr "Serveur(s) web à configurer pour PNP4Nagios :" + +#. Type: multiselect +#. Description +#: ../pnp4nagios-web.templates:1001 +msgid "Please select which web servers should be configured for PNP4Nagios." +msgstr "Veuillez choisir le(s) serveur(s) web à configurer pour PNP4Nagios." + +#. Type: multiselect +#. Description +#: ../pnp4nagios-web.templates:1001 +msgid "" +"If you would prefer to perform configuration manually, leave all servers " +"unselected." +msgstr "" +"Si vous préférez configurer vous-même ce paquet, ne sélectionnez aucun " +"serveur." --- pnp4nagios-0.6.16.orig/debian/po/cs.po +++ pnp4nagios-0.6.16/debian/po/cs.po @@ -0,0 +1,38 @@ +# Czech PO debconf template translation of pnp4nagios. +# Copyright (C) 2012 Michal Simunek +# This file is distributed under the same license as the pnp4nagios package. +# Michal Simunek , 2012. +# +msgid "" +msgstr "" +"Project-Id-Version: pnp4nagios\n" +"Report-Msgid-Bugs-To: pnp4nagios@packages.debian.org\n" +"POT-Creation-Date: 2011-02-10 12:58+0100\n" +"PO-Revision-Date: 2012-01-08 15:31+0200\n" +"Last-Translator: Michal Simunek \n" +"Language-Team: Czech \n" +"Language: cs\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: multiselect +#. Description +#: ../pnp4nagios-web.templates:1001 +msgid "Web servers to configure for PNP4Nagios:" +msgstr "Nastavit webové servery pro PNP4Nagios:" + +#. Type: multiselect +#. Description +#: ../pnp4nagios-web.templates:1001 +msgid "Please select which web servers should be configured for PNP4Nagios." +msgstr "Vyberte prosím, které webové servery se mají nastavit pro PNP4Nagios." + +#. Type: multiselect +#. Description +#: ../pnp4nagios-web.templates:1001 +msgid "" +"If you would prefer to perform configuration manually, leave all servers " +"unselected." +msgstr "" +"Přejete-li si provést nastavení raději ručně, nevybírejte žádné servery." --- pnp4nagios-0.6.16.orig/debian/po/pt.po +++ pnp4nagios-0.6.16/debian/po/pt.po @@ -0,0 +1,40 @@ +# Portuguese translation for pnp4nagios +# Copyright (C) 2011 Pedro Ribeiro +# This file is distributed under the same license as the pnp4nagios package. +# Pedro Ribeiro , 2011 +# +msgid "" +msgstr "" +"Project-Id-Version: pnp4nagios 0.6.13-1\n" +"Report-Msgid-Bugs-To: pnp4nagios@packages.debian.org\n" +"POT-Creation-Date: 2011-02-10 12:58+0100\n" +"PO-Revision-Date: 2011-12-06 00:18+0000\n" +"Last-Translator: Pedro Ribeiro , 2011\n" +"Language-Team: Portuguese \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: multiselect +#. Description +#: ../pnp4nagios-web.templates:1001 +msgid "Web servers to configure for PNP4Nagios:" +msgstr "Servidores Web a configurar para o PNP4Nagios:" + +#. Type: multiselect +#. Description +#: ../pnp4nagios-web.templates:1001 +msgid "Please select which web servers should be configured for PNP4Nagios." +msgstr "" +"Por favor escolha os servidores web que devem ser configurados para o " +"PNP4Nagios." + +#. Type: multiselect +#. Description +#: ../pnp4nagios-web.templates:1001 +msgid "" +"If you would prefer to perform configuration manually, leave all servers " +"unselected." +msgstr "" +"Se preferir configurar manualmente, não seleccione nenhum servidor." --- pnp4nagios-0.6.16.orig/debian/po/sv.po +++ pnp4nagios-0.6.16/debian/po/sv.po @@ -0,0 +1,39 @@ +# Translation of pnp4nagios debconf template to Swedish +# Copyright (C) 2011 Martin Bagge +# This file is distributed under the same license as the pnp4nagios package. +# +# Martin Bagge , 2011 +msgid "" +msgstr "" +"Project-Id-Version: pnp4nagios 0.6.13-1\n" +"Report-Msgid-Bugs-To: pnp4nagios@packages.debian.org\n" +"POT-Creation-Date: 2011-02-10 12:58+0100\n" +"PO-Revision-Date: 2011-06-02 14:45+0100\n" +"Last-Translator: Martin Bagge / brother \n" +"Language-Team: Swedish \n" +"Language: Swedish\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Swedish\n" +"X-Poedit-Country: Sweden\n" + +#. Type: multiselect +#. Description +#: ../pnp4nagios-web.templates:1001 +msgid "Web servers to configure for PNP4Nagios:" +msgstr "Webbservrar som ska ställas in för PNP4Nagios:" + +#. Type: multiselect +#. Description +#: ../pnp4nagios-web.templates:1001 +msgid "Please select which web servers should be configured for PNP4Nagios." +msgstr "Välj webbservrar som ska ställas in för PNP4Nagios." + +#. Type: multiselect +#. Description +#: ../pnp4nagios-web.templates:1001 +msgid "" +"If you would prefer to perform configuration manually, leave all servers " +"unselected." +msgstr "Vill du göra inställningarna manuellt ska ingen webbserver väljas här." --- pnp4nagios-0.6.16.orig/debian/po/de.po +++ pnp4nagios-0.6.16/debian/po/de.po @@ -0,0 +1,40 @@ +# Copyright (C) 2011 Sebastian Harl +# This file is distributed under the same license as the pnp4nagios package. +# +# Sebastian Harl , 2011. +# Based on the German nagios3/httpd translation by Matthias Julius +# . +msgid "" +msgstr "" +"Project-Id-Version: pnp4nagios\n" +"Report-Msgid-Bugs-To: pnp4nagios@packages.debian.org\n" +"POT-Creation-Date: 2011-02-10 12:58+0100\n" +"PO-Revision-Date: 2011-04-18 10:15+0200\n" +"Last-Translator: Sebastian Harl \n" +"Language-Team: German \n" +"Language: de\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: multiselect +#. Description +#: ../pnp4nagios-web.templates:1001 +msgid "Web servers to configure for PNP4Nagios:" +msgstr "Für PNP4Nagios einzurichtende Web-Server:" + +#. Type: multiselect +#. Description +#: ../pnp4nagios-web.templates:1001 +msgid "Please select which web servers should be configured for PNP4Nagios." +msgstr "Bitte wählen Sie, welche Web-Server für PNP4Nagios eingerichtet " +"werden sollen." + +#. Type: multiselect +#. Description +#: ../pnp4nagios-web.templates:1001 +msgid "" +"If you would prefer to perform configuration manually, leave all servers " +"unselected." +msgstr "Falls Sie es vorziehen, die Einrichtung manuell durchzuführen, " +"lassen Sie alle Server deselektiert." --- pnp4nagios-0.6.16.orig/debian/po/POTFILES.in +++ pnp4nagios-0.6.16/debian/po/POTFILES.in @@ -0,0 +1 @@ +[type: gettext/rfc822deb] pnp4nagios-web.templates --- pnp4nagios-0.6.16.orig/debian/patches/series +++ pnp4nagios-0.6.16/debian/patches/series @@ -0,0 +1,5 @@ +fix-path-fpdi +apache-fix-path-to-userfile +fix-npcd-path +fix-nagios-url +adjust-template-path --- pnp4nagios-0.6.16.orig/debian/patches/fix-nagios-url +++ pnp4nagios-0.6.16/debian/patches/fix-nagios-url @@ -0,0 +1,15 @@ +Description: Fix cgi-bin path in config.php. +Author: Sven Velt +Forwarded: not-needed + +--- a/sample-config/pnp/config.php.in ++++ b/sample-config/pnp/config.php.in +@@ -73,7 +73,7 @@ + # + # Link back to Nagios or Thruk ( www.thruk.org ) + # +-$conf['nagios_base'] = "/nagios/cgi-bin"; ++$conf['nagios_base'] = "/cgi-bin/nagios3"; + + # + # Link back to check_mk´s multisite ( http://mathias-kettner.de/checkmk_multisite.html ) --- pnp4nagios-0.6.16.orig/debian/patches/adjust-template-path +++ pnp4nagios-0.6.16/debian/patches/adjust-template-path @@ -0,0 +1,28 @@ +Description: Install templates into /etc/ rather than /usr/share/. + Also, add support for templates.d directory. +Author: Sven Velt , Sebastian Harl 0)) { ++ foreach ($templates_d as $dirname) { ++ $conf['template_dirs'][] = "$dirname"; ++ } ++} + $conf['template_dirs'][] = '@datarootdir@/templates.dist'; + + # + # Directory to search for special templates + # +-$conf['special_template_dir'] = '@datarootdir@/templates.special'; ++$conf['special_template_dir'] = '@sysconfdir@/templates.special'; + + # --- pnp4nagios-0.6.16.orig/debian/patches/fix-npcd-path +++ pnp4nagios-0.6.16/debian/patches/fix-npcd-path @@ -0,0 +1,24 @@ +Description: Fix perfdata paths in npcd.cfg. +Author: Sven Velt +Forwarded: not-needed + +--- a/sample-config/pnp/npcd.cfg-sample.in ++++ b/sample-config/pnp/npcd.cfg-sample.in +@@ -76,7 +76,7 @@ + # perfdata_spool_dir = + # + +-perfdata_spool_dir = @PERFDATA_SPOOL_DIR@/ ++perfdata_spool_dir = @PERFDATA_SPOOL_DIR@/npcd/ + + + # Execute following command for each found file +@@ -163,7 +163,7 @@ + # perfdata_file = + # + +-perfdata_file = @localstatedir@/perfdata.dump ++perfdata_file = @PERFDATA_SPOOL_DIR@/nagios/perfdata.dump + + + # perfdata_spool_filename - declare the destination --- pnp4nagios-0.6.16.orig/debian/patches/fix-path-fpdi +++ pnp4nagios-0.6.16/debian/patches/fix-path-fpdi @@ -0,0 +1,15 @@ +Description: FPDI is shipped in its own subdirectory -- adopt path in pdf.php. +Author: Sven Velt +Forwarded: not-needed + +--- a/share/pnp/application/controllers/pdf.php ++++ b/share/pnp/application/controllers/pdf.php +@@ -267,7 +267,7 @@ + * + */ + require Kohana::find_file('vendor/fpdf', 'fpdf'); +-require Kohana::find_file('vendor/fpdf', 'fpdi'); ++require Kohana::find_file('vendor/fpdi', 'fpdi'); + class PDF extends FPDI { + //Page header + function Header() { --- pnp4nagios-0.6.16.orig/debian/patches/apache-fix-path-to-userfile +++ pnp4nagios-0.6.16/debian/patches/apache-fix-path-to-userfile @@ -0,0 +1,15 @@ +Description: Fix config directory in the sample httpd.conf. +Author: Sven Velt +Forwarded: not-needed + +--- a/sample-config/httpd.conf.in ++++ b/sample-config/httpd.conf.in +@@ -11,7 +11,7 @@ + # + AuthName "Nagios Access" + AuthType Basic +- AuthUserFile /usr/local/nagios/etc/htpasswd.users ++ AuthUserFile /etc/nagios3/htpasswd.users + Require valid-user + + # Turn on URL rewriting --- pnp4nagios-0.6.16.orig/debian/check_commands/check_nrpe.cfg +++ pnp4nagios-0.6.16/debian/check_commands/check_nrpe.cfg @@ -0,0 +1,15 @@ +# +# Adapt the Template if check_command should not be the PNP Template +# +# check_command check_nrpe!check_disk!20%!10% +# ________0__________| | | | +# ________1_____________________| | | +# ________2____________________________| | +# ________3_______________________________| +# +CUSTOM_TEMPLATE = 1 +# +# Change the RRD Datatype based on the check_command Name. +# Defaults to GAUGE. +# +# DATATYPE = COUNTER --- pnp4nagios-0.6.16.orig/debian/check_commands/check_nrpe_1arg.cfg +++ pnp4nagios-0.6.16/debian/check_commands/check_nrpe_1arg.cfg @@ -0,0 +1,15 @@ +# +# Adapt the Template if check_command should not be the PNP Template +# +# check_command check_nrpe!check_disk!20%!10% +# ________0__________| | | | +# ________1_____________________| | | +# ________2____________________________| | +# ________3_______________________________| +# +CUSTOM_TEMPLATE = 1 +# +# Change the RRD Datatype based on the check_command Name. +# Defaults to GAUGE. +# +# DATATYPE = COUNTER