Page 1 of 1
PNP4Nagios installation
Posted: Sun Dec 13, 2015 6:02 am
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
Re: PNP4Nagios installation
Posted: Mon Dec 14, 2015 1:29 am
by Box293
Nagios XI includes PNP4Nagios 0.4.x and you should not try to install 0.6.x as it will break things.
Re: PNP4Nagios installation
Posted: Mon Dec 14, 2015 1:27 pm
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.
Re: PNP4Nagios installation
Posted: Mon Dec 14, 2015 6:03 pm
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.
Re: PNP4Nagios installation
Posted: Tue Dec 15, 2015 3:43 am
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??
Re: PNP4Nagios installation
Posted: Tue Dec 15, 2015 3:35 pm
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.
Re: PNP4Nagios installation
Posted: Sun Dec 20, 2015 8:42 pm
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
