Package Details: pnp4nagios 0.6.26-6

Git Clone URL: https://aur.archlinux.org/pnp4nagios.git (read-only, click to copy)
Package Base: pnp4nagios
Description: Nagios addon to create graphs from performance data
Upstream URL: http://pnp4nagios.org
Licenses: GPL
Submitter: paulez
Maintainer: webdawg
Last Packager: webdawg
Votes: 5
Popularity: 0.000000
First Submitted: 2010-05-06 08:47 (UTC)
Last Updated: 2020-07-02 17:02 (UTC)

Latest Comments

« First ‹ Previous 1 2

andreas_baumann commented on 2017-01-27 15:42 (UTC)

Php 7.1 seems to be a little bit of a problem, some pages run into "A non well formed numeric value encoutered" in 'application/herlper/pnp.php', line 125. Don't know why.

andreas_baumann commented on 2017-01-27 15:39 (UTC)

I managed to run it. I used the bulk_mode_with_npcd, following the documentation on http://docs.pnp4nagios.org/de/pnp-0.6/config#bulk_mode_with_npcd I had to replace /usr/local/pnp4nagios with /var/lib/pnp4nagios everywhere. /usr/local is not really a good place for packages to install software to, the current PKGBUILD is right to install it in /usr/share/pnp4nagios and /var/lib/pnp4nagios. The webserver configuration is in /etc/httpd/conf/extra/pnp4nagios.conf, just include it in /etc/http/conf/httpd.conf with Include "conf/extra/pnp4nagios.conf" Additionally I changed the user and group the npcd is running on (0,0 doesn't seem to be a good choice). Used 30,30 (nagios user and group). The ownership on /var/lib/pnp4nagios I changed also to nagios:nagios. I also needed the following patch (illegal parameter for rrdtool for some graphs): diff -rauN pnp4nagios-0.6.25/share/pnp/templates.dist/default.php pnp4nagios-0.6.25-invalid_option_lower_patch/share/pnp/templates.dist/default.php --- pnp4nagios-0.6.25/share/pnp/templates.dist/default.php 2015-01-03 14:09:06.000000000 +0100 +++ pnp4nagios-0.6.25-invalid_option_lower_patch/share/pnp/templates.dist/default.php 2017-01-27 14:12:37.469632965 +0100 @@ -47,7 +47,7 @@ $crit_min = $VAL['CRIT_MIN']; } if ( $VAL['MIN'] != "" && is_numeric($VAL['MIN']) ) { - $lower = " --lower=" . $VAL['MIN']; + $lower = " --lower-limit=" . $VAL['MIN']; $minimum = $VAL['MIN']; } if ( $VAL['MAX'] != "" && is_numeric($VAL['MAX']) ) { @@ -56,7 +56,7 @@ if ($VAL['UNIT'] == "%%") { $vlabel = "%"; $upper = " --upper=101 "; - $lower = " --lower=0 "; + $lower = " --lower-limit=0 "; } else { $vlabel = $VAL['UNIT']; See also https://git.teon.si/a2o/patches/blob/c90b09217e912ce9c08b366b0c5cc33881f92d75/pnp4nagios-0.6.25-invalid_option_lower.patch

erylflynn commented on 2017-01-14 00:44 (UTC)

Having trouble getting this to work, seems pathing is completely different than standard pnp4nagios. There is also no example httpd config file saved anywhere. So far I do have Nagios and Check_mk up and working fine, but looking to get my graphs going. Any tips our should I try to install from source manually?

jsteel commented on 2014-10-27 19:23 (UTC)

Adopted, updated and service file added. I've tidied up the PKGBUILD, and that might mean the default locations for some files have changed; in my opinion more accurate, but feedback welcome.

zork commented on 2013-11-25 18:26 (UTC)

service file for npcd: ======================= [Unit] Description=PNP4Nagios NPCD service After=network.target [Service] Type=forking ExecStart=/usr/bin/npcd -d -f /etc/pnp/npcd.cfg [Install] WantedBy=multi-user.target

<deleted-account> commented on 2013-04-10 13:34 (UTC)

Hi kidoz, here is my suggestion for PKGBUILD to update the pkg to the current version: # Contributor: Paul Ezvan <paul@ezvan.fr> # Maintainer: Alexsandr Pavlov <kidoz at mail dot ru> pkgname=pnp4nagios pkgver=0.6.21 pkgrel=1 pkgdesc="Addon to Nagios which analyzes performance data provided by plugins and stores them automatically into RRD-databases" license=('GPL') arch=('i686' 'x86_64') url="http://www.pnp4nagios.org/" depends=('nagios' 'perl' 'rrdtool' 'php' 'php-gd' 'ttf-liberation' 'libtool') source=("http://downloads.sourceforge.net/pnp4nagios/$pkgname-$pkgver.tar.gz") backup=('etc/httpd/conf/extra/pnp4nagios.conf' 'etc/pnp/config.php') md5sums=('af27a423106c026ee96391bbb2a0f0ff') _nagios_user="nagios" _nagios_group="nagios" _instdir="usr/share/pnp" _bindir="usr/bin" _vardir="var/nagios" _confdir="etc/pnp" _httpdconfdir="etc/httpd/conf/extra" _perfdatadir="var/nagios/spool/perfdata/pnp" _libexecdir="usr/lib/pnp" build() { cd "$srcdir/$pkgname-$pkgver" getent group $_nagios_group || _nagios_group=30 getent passwd $_nagios_user || _nagios_user=30 ./configure \ --with-nagios-user=$_nagios_user \ --with-nagios-group=$_nagios_group \ --prefix="/$_instdir" \ --bindir="/$_bindir" \ --localstatedir="/$_vardir" \ --sysconfdir="/$_confdir" \ --with-httpd-conf="/$_httpdconfdir" \ --with-perfdata-dir=/$_perfdatadir \ --libexecdir=/$_libexecdir make all } package() { cd "$srcdir/$pkgname-$pkgver" make \ prefix=$pkgdir/$_instdir \ BINDIR=$pkgdir/$_bindir \ LOGDIR=$pkgdir/$_vardir \ CFGDIR=$pkgdir/$_confdir \ SYSCONFDIR=$pkgdir/$_confdir \ HTTPD_CONF=$pkgdir/$_httpdconfdir \ CHECKRESULTDIR=$pkgdir/$_checkresultdir \ PERFDATADIR=$pkgdir/$_perfdatadir \ PERFDATA_DIR=$pkgdir/$_perfdatadir \ LIBEXECDIR=$pkgdir/$_libexecdir \ install install-config install -D -m644 ${srcdir}/$pkgname-$pkgver/sample-config/httpd.conf ${pkgdir}/etc/httpd/conf/extra/pnp4nagios.conf }