Package Details: pnp4nagios 0.6.26-6

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

Latest Comments

1 2 Next › Last »

webdawg commented on 2020-07-02 17:08

this was helpful in configuring bulk mode:


not copy and paste, but it helped me.

webdawg commented on 2020-07-02 17:05

task complete. .install should output the following notes:

A git repo exists now, and someone should make a git package.
The patches that I have made, one of them is from there


pnp4nagios is pretty rough to configure if you do not get what it is.
It has a daemon that processes and converts nagios data, and some php
to view it.

I could not get synchronous mode working.  I dont know why.  Bulk mode
is the way to go:

You make sure to check the user and group in: /etc/pnp4nagios/npcd.cfg

also systemctl start npcd
also systemctl restart httpd
but only after you enable modules in php.ini

remember if you are using php-fpm you have to restart that too, I
forgot I was, and it took a while to figure that out

you also need to

Include conf/extra/pnp4nagios.conf
*I have patched it with the location of password file in aur nagios

This was a great help too figuring things out:

It helps you understand what php modules have to be installed.

Once everything is said, and done visit server/pnp4nagios/ ,and see how
things look...then you just have to rename install.php to install.php.old

Good luck!

webdawg commented on 2020-07-02 04:45

I adopted this for just a bit.

webdawg commented on 2020-07-02 04:44

it took me about 3-4 hours to patch this package, and learn how to config. I may throw some docs here, and this will not work without the following patches:

We may want to move this package over to git, as at least one of those patches was merged a very long time ago.

webdawg commented on 2020-07-02 03:44

just a friendly reminder to restart php-fpm if you are using it for php.ini/php/etc spent about an hour forgetting all about php-fpm

webdawg commented on 2020-07-02 03:10

this is going to need some patches too, it does not match the nagios packaged defaults in the aur httpd pnp4nagios.conf AuthUserFile /etc/nagios/htpasswd.users

webdawg commented on 2020-07-02 03:05

is it common for a package to have to

echo 'Include conf/extra/pnp4nagios.conf' >> /etc/httpd/conf/httpd.conf

webdawg commented on 2020-07-02 02:49

their is a github too ...

may want to make a git package:

0.6.26 IS OUT

git clone



change first md5sum to 7a71b47f70e4e99d52c3b1df334e0342

makepkg -si

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