Warning: file_exists(): open_basedir restriction in effect. File(/srv/http/vhosts/aur.archlinux.org/public/web/locale//en/LC_MESSAGES/aurweb.mo) is not within the allowed path(s): (/srv/http/vhosts/aur-dev.archlinux.org/:/etc/aurweb/) in /srv/http/vhosts/aur-dev.archlinux.org/public/web/lib/streams.php on line 90
AUR (en) - pnp4nagios

Notice: Undefined variable: name in /srv/http/vhosts/aur-dev.archlinux.org/public/web/lib/pkgfuncs.inc.php on line 248

Package Details: pnp4nagios 0.6.25-1

Git Clone URL: https://aur-dev.archlinux.org/pnp4nagios.git (read-only)
Package Base: pnp4nagios
Description: Nagios addon to create graphs from performance data
Upstream URL: http://pnp4nagios.org
Licenses: GPL
Submitter: paulez
Maintainer: None
Last Packager: jsteel
Votes: 5
Popularity: 0.000000
First Submitted: 2010-05-06 08:47
Last Updated: 2015-07-29 15:03

Latest Comments

andreas_baumann commented on 2017-01-27 15:42

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

I managed to run it.

I used the bulk_mode_with_npcd, following the documentation on


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

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

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

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

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

service file for npcd:

Description=PNP4Nagios NPCD service

ExecStart=/usr/bin/npcd -d -f /etc/pnp/npcd.cfg


Anonymous comment on 2013-04-10 13:34

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>

pkgdesc="Addon to Nagios which analyzes performance data provided by plugins and stores them automatically into RRD-databases"
arch=('i686' 'x86_64')
depends=('nagios' 'perl' 'rrdtool' 'php' 'php-gd' 'ttf-liberation' 'libtool')
backup=('etc/httpd/conf/extra/pnp4nagios.conf' 'etc/pnp/config.php')


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 \

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