Package Details: pnp4nagios 0.6.25-1

Git Clone URL: https://aur.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

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:
=======================

[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

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>

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
}