PNP4Nagios installation

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
raamardhani7
Posts: 459
Joined: Tue Jun 02, 2015 12:36 am

PNP4Nagios installation

Post by raamardhani7 »

Hi Team,

I am trying to install PNP4Nagios and facing the below errors. I followed the below given URL https://exchange.nagios.org/directory/A ... os/details and it directed to the URL http://www.naemon.org/documentation/use ... hat_centos

Tried to setup using the same url and tried logging to the url [url]https://server_name/pnp4nagios[/url] and it is asking for user ID and password, could you please let me know what could be the ID and password?

Below are the steps that I followed to configure.

Code: Select all

yum install gcc-c++ rrdtool perl-Time-HiRes perl-rrdtool php-gd php php-cli wget
cd ~/
mkdir src
cd src
wget http://downloads.sourceforge.net/project/pnp4nagios/PNP-0.6/pnp4nagios-0.6.24.tar.gz
tar -xzvf pnp4nagios-0.6.24.tar.gz -C /usr/local/src/
cd /usr/local/src/pnp4nagios-0.6.24/
./configure (i used this instead of (./configure  --with-nagios-user=naemon --with-nagios-group=naemon))
make all
make install
make install-webconf
make install-config
make install-init
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia

Re: PNP4Nagios installation

Post by Box293 »

Nagios XI includes PNP4Nagios 0.4.x and you should not try to install 0.6.x as it will break things.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
raamardhani7
Posts: 459
Joined: Tue Jun 02, 2015 12:36 am

Re: PNP4Nagios installation

Post by raamardhani7 »

Box293 wrote:Nagios XI includes PNP4Nagios 0.4.x and you should not try to install 0.6.x as it will break things.

I am not aware on this, could you please let me know what to be done here?? Will remove it, please let me know how can I do it, thanks.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: PNP4Nagios installation

Post by ssax »

You should just download the exact same version of Nagios XI that you have installed (you can grab it from the bottom left hand side of the web interface) to your /tmp directory then run these commands:

https://assets.nagios.com/downloads/nag ... rsions.php

Code: Select all

rm -rf /tmp/nagiosxi
tar zxf /tmp/xi-VERSION.tar.gz
cd /tmp/nagiosxi/subcomponents/pnp
./install
That should install it for you.
raamardhani7
Posts: 459
Joined: Tue Jun 02, 2015 12:36 am

Re: PNP4Nagios installation

Post by raamardhani7 »

ssax wrote:You should just download the exact same version of Nagios XI that you have installed (you can grab it from the bottom left hand side of the web interface) to your /tmp directory then run these commands:

https://assets.nagios.com/downloads/nag ... rsions.php

Code: Select all

rm -rf /tmp/nagiosxi
tar zxf /tmp/xi-VERSION.tar.gz
cd /tmp/nagiosxi/subcomponents/pnp
./install
That should install it for you.

Code: Select all

Please run 'make install-init' if you want to use
BULK Mode with NPCD


Have ran it, thanks for the update, I was not aware that we have this feature in NagiosXI. so tried from other sources to get PNP2Nagios.
make[1]: Leaving directory `/tmp/nagiosxi/subcomponents/pnp/pnp-latest'
cd ./sample-config && make install-config
make[1]: Entering directory `/tmp/nagiosxi/subcomponents/pnp/pnp-latest/sample-config'
rm -f /usr/local/nagios/share/pnp/conf/config.php
/usr/bin/install -c -m 755 -o nagios -g nagios -d /usr/local/nagios/etc/pnp
/usr/bin/install -c -m 755 -o nagios -g nagios -d /usr/local/nagios/etc/pnp/check_commands
/usr/bin/install -c -m 755 -o nagios -g nagios -d /usr/local/nagios/etc/pnp/pages
/usr/bin/install -c -m 644 -o nagios -g nagios  pnp/config.php /usr/local/nagios/etc/pnp
/usr/bin/install -c -m 644 -o nagios -g nagios  pnp/process_perfdata.cfg-sample /usr/local/nagios/etc/pnp
/usr/bin/install -c -m 644 -o nagios -g nagios  pnp/rra.cfg-sample /usr/local/nagios/etc/pnp
/usr/bin/install -c -m 644 -o nagios -g nagios  pnp/check_commands/check_nwstat.cfg-sample /usr/local/nagios/etc/pnp/check_commands
/usr/bin/install -c -m 644 -o nagios -g nagios  pnp/pages/web_traffic.cfg-sample /usr/local/nagios/etc/pnp/pages
/usr/bin/install -c -m 644 -o nagios -g nagios  pnp/npcd.cfg-sample /usr/local/nagios/etc/pnp
make[1]: Leaving directory `/tmp/nagiosxi/subcomponents/pnp/pnp-latest/sample-config'
cd ./scripts && make install-init
make[1]: Entering directory `/tmp/nagiosxi/subcomponents/pnp/pnp-latest/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
make[1]: Leaving directory `/tmp/nagiosxi/subcomponents/pnp/pnp-latest/scripts'
PNP-POST
PNP installed OK
what will be the ID and password or it is inbuilt in Nagios and I can get these graphs??
You do not have the required permissions to view the files attached to this post.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: PNP4Nagios installation

Post by ssax »

That is a remnant from the one you installed, you do not access it that way in Nagios XI. The graphs show up next to the services or under services detail.

You should be able to remove the /etc/httpd/conf.d/pnp4nagios* files that it installed.
raamardhani7
Posts: 459
Joined: Tue Jun 02, 2015 12:36 am

Re: PNP4Nagios installation

Post by raamardhani7 »

ssax wrote:That is a remnant from the one you installed, you do not access it that way in Nagios XI. The graphs show up next to the services or under services detail.

You should be able to remove the /etc/httpd/conf.d/pnp4nagios* files that it installed.
Thanks a lot Ssax,

You can close this thread please. thanks a lot for the insights :)