Changes

From Amahi Wiki
Jump to: navigation, search
46 bytes removed ,  04:17, 11 June 2011
no edit summary
* Amahi set up and running
* and the following packages installed
{{Code|<prenowiki><nowiki>yum groupinstall "Development Tools" "Legacy Software Development"</prenowiki>}}
== Installation ==
Follow the [http://docs.icinga.org/1.4.0/en/quickstart-icinga.html Quickstart Installation Guide for Icinga] to compile and install Icinga and common Nagios plugins.
Anyway, go to http://hda/setup?sub=webapps&tab=app and create a new webapp and call it icinga.
Now it's time to go into the terminal. All commands will be run as rootand lines that start with # are comments.<pre>{{Code|ls /etc/httpd/conf.d/ <nowiki>| grep icinga</prenowiki>grep icingaYou #you should see two files. Something like 1007-icinga.conf and icinga.conf<pre>cat /etc/httpd/conf.d/icinga.conf >> /etc/httpd/conf.d/1007-icinga.conf</pre>#Now edit /etc/httpd/conf.d/1007-icinga.conf<pre>vim /etc/httpd/conf.d/1007-icinga.conf</pre>And #and move </VirtualHost> from the middle of the file to the end. Be #be sure to confirm that the contents of icinga.conf are within 1007-icinga.conf before removing it.<pre>rm /etc/httpd/conf.d/icinga.conf</pre>}}
Now you should have a 1007-icinga.conf file similar to the following (not exact)
{{Code|<pre>&lt;<nowiki><VirtualHost *:80&gt;>
ServerName icinga
DocumentRoot /var/hda/web-apps/icinga/html
&lt;<Directory &quot;"/var/hda/web-apps/icinga/html&quot;&gt;">
Options Indexes FollowSymLinks +ExecCGI
AddHandler fcgid-script .fcg
Allow from all
&lt;</Directory&gt;>
ErrorLog /var/hda/web-apps/Icinga/logs/error_log
#this is the beginning of the part from icinga.conf
ScriptAlias /icinga/cgi-bin &quot;"/usr/local/icinga/sbin&quot;" &lt;<Directory &quot;"/usr/local/icinga/sbin&quot;&gt;">
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
AuthName &quot;"Icinga Access&quot;"
AuthType Basic
AuthUserFile /usr/local/icinga/etc/htpasswd.users
Require valid-user
&lt;</Directory&gt;> Alias /icinga &quot;"/usr/local/icinga/share/&quot;" &lt;<Directory &quot;"/usr/local/icinga/share/&quot;&gt;">
Options None
AllowOverride None
Order allow,deny
Allow from all
AuthName &quot;"Icinga Access&quot;"
AuthType Basic
AuthUserFile /usr/local/icinga/etc/htpasswd.users
Require valid-user
&lt;</Directory&gt;>&lt;</VirtualHost&gt;></nowiki></pre>}}
NOTE: The Icinga instructions should be rewritten so that it conforms to the icinga app path for Amahi standards.
61

edits