install pnp4nagios-0.6.5

来源:互联网 发布:filco蓝牙键盘连接mac 编辑:程序博客网 时间:2024/05/12 01:00

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/shUSER=nagiosGROUP=nagiosPREFIX=/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