wget http://downloads.sourceforge.net/pnp4nagios/pnp4nagios-0.6.5.tar.gz
tar -xvzf pnp4nagios-0.6.5.tar.gz
cd pnp4nagios-0.6.5
vi configure.sh
#!/bin/sh
USER=nagios
GROUP=nagios
PREFIX=/usr/local/nagios
./configure /
--with-nagios-user=$USER /
--with-nagios-group=$GROUP /
--prefix=$PREFIX /
--datarootdir=$PREFIX/share/pnp /
--with-rrdtool=/usr/bin/rrdtool /
--sysconfdir=$PREFIX/etc/pnp /
--with-perfdata-dir=$PREFIX/share/perfdata /
--with-perfdata-logfile=$PREFIX/var/perfdata.log /
--with-perfdata-spool-dir=$PREFIX/var/spool/perfdata
./configure.sh
Invoking
make all
compiles the components like NPCD which are written in C
make install
copies everything to the right places in the file system. The paths were already shows during ./configure.
You can call
make install-config
optionally. This way config files for process_perfdata.pl and npcd are copied to etc/pnp.
To install the NPCD Init script call
make install-init
All these steps are combined in
make fullinstall