Install PNP4Nagios on Centos
The installation of PNP will be described in more detail. It is expected that nagios was compiled from source and is located in /usr/local/nagios.
Attention: The description applies to the developer version PNP 0.6.0.
Please note that PNP has to be configured after the installation.
Make and more
The installation of PNP is controlled by makefiles. The system is analyzed after invocation of ./configure and the detected values are tranferred to makefiles.
Please unpack PNP as user root:
wget http://sourceforge.net/projects/pnp4nagios/files/PNP-0.6/pnp4nagios-0.6.16.tar.gz/download tar -xvzf pnp4nagios-0.6.16.tar.gz cd pnp4nagios-0.6.16
By default rrdtool is not included in CentOS. You may need to install it for monitoringpurpose. You can either use source to compile or install using rpm.
To install using rpm all you need is following two commands.
For 32 bit systems
rpm -ivh http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.5.2-2.el5.rf.i386.rpm
For 64 bit systems
rpm -ivh http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm
yum install rrdtool -y
./configure is to be called from the directory pnp4nagios.
Note: Without specifying any options user and group will be “nagios”. If you have different values then please use the parameters ”–with-nagios-user” and ”–with-nagios-group”, respectively. Using Icinga the call might be
./configure --with-nagios-user=icinga --with-nagios-group=icinga
Some lines run across the screen. The output at the end is important.
*** Configuration summary for pnp4nagios-0.6.16 11-21-2011 ***
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/bin/rrdtool Version 1.4.4 RRDs Perl Modules: FOUND (Version 1.4004) 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
Review the options above for accuracy. If they look okay, type 'make all' to compile.
The paths shown should be checked. If the displayed values aren’t correct you can change them calling ./configure with appropriate options.
Attention: “Location of rrdtool binary” means path including name of binary! If necessary it can be specified using the following syntax:
shows the supported options.
compiles the components like NPCD which are written in C
copies everything to the right places in the file system. The paths were already shows during ./configure.
After the installation of the program and HTML files you can copy a sample Apache configuration file to your web-server config directory
You can call
optionally. This way config files for process_perfdata.pl and npcd are copied to etc/pnp.
To install the NPCD Init script call
All these steps are combined in
Attention: After copying the configuration file for the web server you have to restart the web server (
service httpd restart or
/etc/init.d/apache2 restart, respectively).
Republished by Blog Post Promoter
You might also like
I recently installed CentOS Linux version 7 or Red Hat Enterprise Linux version 7. How can I restart networking service using command line options? How can I start / stop
What is eAccelerator ? Yes, before going directly to the installation steps, you must have an idea about eAccelerator. As the name indicates, it’s an accelerator for PHP scripts/files on
The installation of Ruby on Rails in cPanel has two parts, first is installing Ruby itself, which can be accomplished by running: This script will install Ruby, RubyGems, Mongrel and