ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 使用PNPNagios图形化Nagios数据 12

使用PNPNagios图形化Nagios数据 12

原创 Linux操作系统 作者:nginx_web 时间:2012-06-11 17:22:44 0 删除 编辑

 

    按照提示执行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/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2012-06-06

  • 博文量
    54
  • 访问量
    410312