Create /var/hda/web-apps/icinga/html/index.html and give it the following contents.
{{Text|Text=
<pre><nowiki><html>
<head>
<body>
</body>
</html></nowiki></pre>}}
'''NOTE:''' Icinga will install to /usr/local/icinga. Icinga Web will install to /usr/local/icinga-web
== Compile and install Icinga with IDOUtils ==
Create an icinga user, icinga-cmd group, and add the apache user and icinga user to the icinga-cmd group.
{{Code|<pre>
useradd -m icinga
groupadd icinga-cmd
usermod -a -G icinga-cmd icinga
usermod -a -G icinga-cmd apache}}</pre>
Now lets do some compiling.
{{Code|<pre>
cd /usr/local/src/
tar -xzf icinga-1.4.2.tar.gz
make all
make fullinstall
}}</pre>
Edit the ''/usr/local/icinga/etc/objects/contacts.cfg'' config file with your favorite editor and change the email address associated with the icingaadmin contact definition to the address you'd like to use for receiving alerts.
Create the icinga db/user/pass for IDOUtils to use and import the mysql database (you should still be in ''/usr/local/src/icinga-1.4.2'' working directory).
Configure the Apache config located in ''/etc/httpd/conf.d/''
{{Code|<pre>
ls /etc/httpd/conf.d/ <nowiki>|</nowiki> grep icinga
#you should see two files. Something like 1002-icinga.conf and icinga.conf
#and move </VirtualHost> from the middle of the file to the end.
#be sure to confirm that the contents of icinga.conf are within 1002-icinga.conf before removing it
rm -f /etc/httpd/conf.d/icinga.conf}}</pre>
Start icinga, idoutils and restart the apache server.
{{Code|<pre>service icinga start
service ido2db start
service httpd restart}}</pre>
Visit http://icinga and make sure that it is currently working.
== Install Nagios Plugins ==
Time to compile again!
{{Code|<pre>
cd /usr/local/src/
tar -xzf nagios-plugins-1.4.15.tar.gz
make
make install
service icinga restart}}</pre>
Now visit http://icinga/ and click on Service Detail in the menu on the left under Status. After about 5 mins everything should slowly start turning green.
== Install the latest Icinga API ==
Don't worry, there's nothing to compile here. But you still have to configure and install the Icinga API.
#and move </VirtualHost> from the middle of the file to the end.
#be sure to confirm that the contents of icinga-web.conf are within 1002-icinga.conf before removing it
rm -f /etc/httpd/conf.d/icinga-web.conf*}}</pre>
Restart icinga, idoutils, and apache.
{{Code|<pre>service icinga restartservice httpd restart}}</pre>Go to the webpath (http://icinga/icinga-web/) and check if the webinterface web interface starts without exceptions (database connections web and api). You can login with user 'root' and password 'password'.
== Install the Icinga Mobile Interface ==
Time for more source work!
{{Code|<pre>cd /usr/local/src/
#if you want the latest then run git clone http://git.icinga.org/icinga-mobile.git
unzip icinga-mobile-0.1.0.zip
make compile
make install
make install-apache-config}}</pre>
Now we need to do the same thing with the virtual server as we did originally with the Icinga install so that it shows up for our Virtual Host.
Edit /usr/local/icinga/etc/objects/templates.cfg and within the ''generic-service'' definition add the following line underneath "''name generic-service''".