=== Set up PNP4Nagios ===
More compiling!
{{Code|<pre>
cd /usr/local/src/
tar -xzf pnp4nagios-0.6.13.tar.gz
./configure <nowiki>--with-nagios-user=icinga --with-nagios-group=icinga --with-httpd-conf=/etc/httpd/conf.d</nowiki>
make all
make fullinstall}}</pre>
Change some PNP4Nagios settings
{{Code|<pre>sed -i 's/\/nagios\/cgi-bin/\/icinga\/cgi-bin/' /usr/local/pnp4nagios/etc/config.php}}</pre>
Apache integration for PNP4Nagios.
{{Code|<pre>
cd /etc/httpd/conf.d/
sed -i 's/nagios\/etc\/htpasswd.users/icinga\/etc\/htpasswd.users/' pnp4nagios.conf
vim 1002-icinga.conf
rm pnp4nagios.conf
service httpd restart}}</pre>
Visit http://icinga/pnp4nagios/ and make sure all tests pass. Then remove the install.php file.
{{Code|<pre>rm /usr/local/pnp4nagios/share/install.php}}</pre>
Now enable processing performance data in Icinga. Edit icinga.conf and set ''process_performance_data=1''.
{{Code|<pre>vim /usr/local/icinga/etc/icinga.cfg}}</pre>
Uncommend the following lines in /usr/local/icinga/etc/icinga.cfg.
{{Text|Text=<pre>
host_perfdata_command=process-host-perfdata
service_perfdata_command=process-service-perfdata}}
command_name process-service-perfdata
command_line /usr/bin/perl /usr/local/pnp4nagios/libexec/process_perfdata.pl
}</nowiki></pre>}}</pre>
Restart Icinga
{{Code|<pre>service icinga restart}}</pre>
Now PNP4Nagios is installed. You can visit PNP4Nagios by going to http://icinga/pnp4nagios