使用PNPNagios圖形化Nagios資料 12

nginx_web發表於2012-06-11

 

    按照提示執行make all命令:

   

[root@ff pnp4nagios-0.6.17]# make all

cd ./src && make

make[1]: Entering directory `/root/pnp4nagios-0.6.17/src'

gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE   -c -o utils.o utils.c

gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE   -c -o config.o config.c

gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE   -c -o logging.o logging.c

gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -o npcd npcd.c utils.o config.o logging.o -lpthread

gcc -fPIC -g -O2 -DHAVE_CONFIG_H -DNSCORE -o npcdmod.o npcdmod.c -shared   -fPIC

make[1]: Leaving directory `/root/pnp4nagios-0.6.17/src'

cd ./share && make

make[1]: Entering directory `/root/pnp4nagios-0.6.17/share'

make[1]: Nothing to be done for `all'.

make[1]: Leaving directory `/root/pnp4nagios-0.6.17/share'

cd ./scripts && make

make[1]: Entering directory `/root/pnp4nagios-0.6.17/scripts'

make[1]: Nothing to be done for `all'.

make[1]: Leaving directory `/root/pnp4nagios-0.6.17/scripts'

chmod a+r ./contrib/ssi/status-header.ssi

chmod a+xr ./helpers/w2h.pl

 

*** Compile finished ***

 

  make install

     - This installs the main program and HTML files

 

  make fullinstall

     - This installs the main program, runlevel scripts, config and HTML files

 

Enjoy.

 

[root@ff pnp4nagios-0.6.17]#

 

    根據提示,可以執行make install或者是make fullinstall命令,它們的區別在於前者只按照主要程式和HTML檔案,而後者除了安裝前者的專案之外還安裝了執行級別指令碼和配置檔案。

 

在安裝時可以執行make命令,可以檢視一下可以使用的命令:

 

[root@ff pnp4nagios-0.6.17]# make

Please supply a command line argument (i.e. 'make all').  Other targets are:

   clean

   install install-init install-config install-processperfdata install-html fullinstall

   install-plugins

[root@ff pnp4nagios-0.6.17]#

   

    下面執行make fullinstall命令:

   

[root@ff pnp4nagios-0.6.17]# make fullinstall

 

    這個過程比較長,但是為了清楚的瞭解這個過程進行的工作,下面將會節選一些比較重要的內容:

 

[root@ff pnp4nagios-0.6.17]# make fullinstall

cd ./src && make install

make[1]: Entering directory `/root/pnp4nagios-0.6.17/src'

make install-basic

make[2]: Entering directory `/root/pnp4nagios-0.6.17/src'

/usr/bin/install -c -m 755 -o nagios -g nagios -d /usr/local/pnp4nagios/bin

/usr/bin/install -c -m 755 -o nagios -g nagios -d /usr/local/pnp4nagios/lib

/usr/bin/install -c -m 755 -o nagios -g nagios -d /usr/local/pnp4nagios/var

/usr/bin/install -c -m 755 -o nagios -g nagios -d /usr/local/pnp4nagios/var/perfdata

/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/pnp4nagios/var/spool

/usr/bin/install -c -m 754 -o nagios -g nagios npcd /usr/local/pnp4nagios/bin

/usr/bin/install -c -m 754 -o nagios -g nagios npcdmod.o /usr/local/pnp4nagios/lib

make[2]: Leaving directory `/root/pnp4nagios-0.6.17/src'

make strip-post-install

make[2]: Entering directory `/root/pnp4nagios-0.6.17/src'

/usr/bin/strip /usr/local/pnp4nagios/bin/npcd

/usr/bin/strip /usr/local/pnp4nagios/lib/npcdmod.o

make[2]: Leaving directory `/root/pnp4nagios-0.6.17/src'

make[1]: Leaving directory `/root/pnp4nagios-0.6.17/src'

cd ./man && make install

make[1]: Entering directory `/root/pnp4nagios-0.6.17/man'

/usr/bin/install -c -m 755 -o nagios -g nagios -d /usr/local/pnp4nagios/man/man8

/usr/bin/install -c -m 755 -o nagios -g nagios npcd.8 /usr/local/pnp4nagios/man/man8

make[1]: Leaving directory `/root/pnp4nagios-0.6.17/man'

cd ./share && make install

make[1]: Entering directory `/root/pnp4nagios-0.6.17/share'

 

   …… //省略

make[1]: Leaving directory `/root/pnp4nagios-0.6.17/lib'

cd ./scripts && make install

make[1]: Entering directory `/root/pnp4nagios-0.6.17/scripts'

/usr/bin/install -c -m 755 -o nagios -g nagios -d /usr/local/pnp4nagios/var/perfdata

/usr/bin/install -c -m 755 -o nagios -g nagios -d /usr/local/pnp4nagios/libexec

/usr/bin/install -c -m 755 -o nagios -g nagios -d /usr/local/pnp4nagios/var/stats

make install-processperfdata

make[2]: Entering directory `/root/pnp4nagios-0.6.17/scripts'

/usr/bin/install -c -m 755 -o nagios -g nagios process_perfdata.pl /usr/local/pnp4nagios/libexec

make[2]: Leaving directory `/root/pnp4nagios-0.6.17/scripts'

make install-plugins

make[2]: Entering directory `/root/pnp4nagios-0.6.17/scripts'

/usr/bin/install -c -m 755 -o nagios -g nagios check_pnp_rrds.pl /usr/local/pnp4nagios/libexec

make[2]: Leaving directory `/root/pnp4nagios-0.6.17/scripts'

make install-rrdconvert

make[2]: Entering directory `/root/pnp4nagios-0.6.17/scripts'

/usr/bin/install -c -m 755 -o nagios -g nagios rrd_convert.pl /usr/local/pnp4nagios/libexec

make[2]: Leaving directory `/root/pnp4nagios-0.6.17/scripts'

make[1]: Leaving directory `/root/pnp4nagios-0.6.17/scripts'

cd ./sample-config && make install

make[1]: Entering directory `/root/pnp4nagios-0.6.17/sample-config'

 

…… //省略

make[1]: Leaving directory `/root/pnp4nagios-0.6.17/sample-config'

 

*** Main program, Scripts and HTML files installed ***

 

Please run 'make install-webconf' to install the

web configuration file

 

Please run 'make install-config' to install sample

configuration files

 

Please run 'make install-init' if you want to use

BULK Mode with NPCD

 

 

…… //省略

cd ./sample-config && make install-webconf

make[1]: Entering directory `/root/pnp4nagios-0.6.17/sample-config'

/usr/bin/install -c -m 755 -d /etc/httpd/conf.d

/usr/bin/install -c -m 644 httpd.conf /etc/httpd/conf.d/pnp4nagios.conf

make[1]: Leaving directory `/root/pnp4nagios-0.6.17/sample-config'

 

*** Apache config file installed ***

 

Restart your apache webserver to activete your changes.

 

Please run 'make install-config' to install sample

configuration files

 

Please run 'make install-init' if you want to use

BULK Mode with NPCD

 

…… //省略

cd ./sample-config && make install-config

make[1]: Entering directory `/root/pnp4nagios-0.6.17/sample-config'

/usr/bin/install -c -m 755 -o nagios -g nagios -d /usr/local/pnp4nagios/etc

/usr/bin/install -c -m 755 -o nagios -g nagios -d /usr/local/pnp4nagios/etc/check_commands

/usr/bin/install -c -m 755 -o nagios -g nagios -d /usr/local/pnp4nagios/etc/pages

/usr/bin/install -c -m 644 -o nagios -g nagios  pnp/config.php /usr/local/pnp4nagios/etc/config.php.0.6.17; \

/usr/bin/install -c -m 644 -o nagios -g nagios  pnp/config.php /usr/local/pnp4nagios/etc; \

 

 

make[1]: Leaving directory `/root/pnp4nagios-0.6.17/sample-config'

 

*** PNP4Nagios sample config files installed ***

 

Please run 'make install-init' if you want to use

BULK Mode with NPCD

 

…… //省略

 

cd ./scripts && make install-init

make[1]: Entering directory `/root/pnp4nagios-0.6.17/scripts'

/usr/bin/install -c -m 755 -o root -g root -d /etc/rc.d/init.d

/usr/bin/install -c -m 755 -o root -g root rc.npcd /etc/rc.d/init.d/npcd

/usr/bin/install -c -m 755 -o root -g root rc.pnp_gearman_worker /etc/rc.d/init.d/pnp_gearman_worker

make[1]: Leaving directory `/root/pnp4nagios-0.6.17/scripts'

/usr/bin/perl summary fullinstall

 

 

*** Configuration summary for pnp4nagios-0.6.17 03-25-2012 ***

 

  General Options:

  -------------------------         -------------------

  Nagios user/group:              nagios nagios

  Install directory:                /usr/local/pnp4nagios

  HTML Dir:                    /usr/local/pnp4nagios/share

  Config Dir:                    /usr/local/pnp4nagios/etc

  Location of rrdtool binary:        /usr/local/rrdtool-1.2.15/bin/rrdtool Version 1.2.15

  RRDs Perl Modules:             FOUND (Version 1.2015)

  RRDs Perl search path:           /usr/local/rrdtool-1.2.15/lib/perl/5.8.5/i386-linux-thread-multi/

  RRD Files stored in:             /usr/local/pnp4nagios/var/perfdata

  process_perfdata.pl Logfile:       /usr/local/pnp4nagios/var/perfdata.log

  Perfdata files (NPCD) stored in:    /usr/local/pnp4nagios/var/spool

 

  Web Interface Options:

  -------------------------         -------------------

  HTML URL:                    http://localhost/pnp4nagios

  Apache Config File:               /etc/httpd/conf.d/pnp4nagios.conf

 

 

*** Main program, Scripts and HTML files installed ***

 

Enjoy.

 

[root@ff pnp4nagios-0.6.17]#

   

 

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/27043155/viewspace-732482/,如需轉載,請註明出處,否則將追究法律責任。

相關文章