If you have any questions then please contact me.
-- [[User:Sag47|Sag47]] 2213:0627, 16 17 July 2011 (PDT)
= What is Icinga? =
Configure the password for the icinga directory.
{{Code|htpasswd -c /usr/local/icinga/etc/htpasswd.users icingaadmin}}
Configure the Apache config located in ''/etc/httpd/conf.d/''
{{Code|ls /etc/httpd/conf.d/ <nowiki>|</nowiki> grep icinga
#you should see two files. Something like 1002-icinga.conf and icinga.conf
cat /etc/httpd/conf.d/icinga.conf >> /etc/httpd/conf.d/1002-icinga.conf
== Install Nagios Plugins ==
Time to compile again!
{{Code|cd /usr/src/
tar -xzf nagios-plugins-1.4.15.tar.gz
cd nagios-plugins-1.4.15
<script type="text/javascript" src="browser_detect.js"></script>
<script type="text/javascript">
window.top.location.href=(isMobile)?"/icinga-mobile/":"/icinga-web/";
</script>
</head>
</body>
</html></nowiki></pre>}}
= Icinga Plugins =
== PNP4Nagios ==
=== About ===
This documentation is the combined effort from:
* [http://docs.pnp4nagios.org/pnp-0.6/start PNP4Nagios Documentation] (click this to learn more about PNP4Nagios)
* [http://docs.icinga.org/1.2.0/en/icinga-web-pnp.html Integration of PNP4Nagios into Icinga Web]
=== Prerequisites ===
* Icinga and all of its prerequisites.
* Download latest [http://sourceforge.net/projects/pnp4nagios/files/PNP-0.6/ PNP4Nagios from sourceforge] and move it to ''/usr/src/''
* Install the following packages
{{Code|yum install <nowiki>perl rrdtool rrdtool-perl</nowiki> -y}}
=== Set up PNP4Nagios ===
More compiling!
{{Code|
cd /usr/src/
tar -xzf pnp4nagios-0.6.13.tar.gz
cd pnp4nagios-0.6.13
./configure <nowiki>--with-nagios-user=icinga --with-nagios-group=icinga --with-httpd-conf=/etc/httpd/conf.d</nowiki>
make all
make fullinstall}}
Change some PNP4Nagios settings
{{Code|sed -i 's/\/nagios\/cgi-bin/\/icinga\/cgi-bin/' /usr/local/pnp4nagios/etc/config.php}}
Apache integration for PNP4Nagios.
{{Code|
cd /etc/httpd/conf.d/
sed -i 's/nagios\/etc\/htpasswd.users/icinga\/etc\/htpasswd.users/' pnp4nagios.conf
sed -i 's/Nagios Access/Icinga Access/' pnp4nagios.conf
cat pnp4nagios.conf >> 1002-icinga.conf
#Don't forget to move </VirtualHost> from the middle to the end of the file
vim 1002-icinga.conf
service httpd restart}}
Visit http://icinga/pnp4nagios/ and make sure all tests pass. Then remove the install.php file.
{{Code|rm /usr/local/pnp4nagios/share/install.php}}
Now enable processing performance data in Icinga. Edit icinga.conf and set ''process_performance_data=1''.
{{Code|vim /usr/local/icinga/etc/icinga.cfg}}
Uncommend the following lines in /usr/local/icinga/etc/icinga.cfg.
{{Text|Text=
host_perfdata_command=process-host-perfdata
service_perfdata_command=process-service-perfdata}}
Now create the process performance data commands (simply add them to the end of the file ''/usr/local/icinga/etc/objects/commands.cfg'')
{{Text|Text=<pre><nowiki>define command{
command_name process-host-perfdata
command_line /usr/bin/perl /usr/local/pnp4nagios/libexec/process_perfdata.pl -d HOSTPERFDATA
}
define command{
command_name process-service-perfdata
command_line /usr/bin/perl /usr/local/pnp4nagios/libexec/process_perfdata.pl
}</nowiki></pre>}}
Restart Icinga
{{Code|service icinga restart}}
Now PNP4Nagios is installed. You can visit PNP4Nagios by going to /usr.local
=== Integrating PNP4Nagios into Icinga ===
Read [http://docs.pnp4nagios.org/pnp-0.6/webfe PNP4Nagios documentation] for integrating PNP4Nagios into the Icinga Classic web interface. Read the [http://docs.icinga.org/1.2.0/en/icinga-web-pnp.html Icinga documentation] for integrating PNP4Nagios into the new Icinga Web 2.0 interface.