Changes

From Amahi Wiki
Jump to: navigation, search
60 bytes added ,  04:57, 19 July 2011
no edit summary
If you have any questions then please contact me.
-- [[User:Sag47|Sag47]] 21:5157, 18 July 2011 (PDT)
= What is Icinga? =
Download the [https://git.icinga.org/index?p=icinga-api.git;a=snapshot;h=refs/heads/master;sf=tgz latest Icinga API] from git snapshot as seen in the [http://docs.icinga.org/1.4.0/en/icinga-api.html Icinga API] documentation.
Move all source tarballs to /usr/local/src/ on your HDA server.
== Compile and install Icinga with IDOUtils ==
Now lets do some compiling.
{{Code|
cd /usr/local/src/
tar -xzf icinga-1.4.2.tar.gz
cd icinga-1.4.2
cp /usr/local/icinga/etc/modules/idoutils.cfg-sample /usr/local/icinga/etc/modules/idoutils.cfg}}
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).
{{Code|hda-create-db-and-user icinga
mysql -u icinga -picinga icinga < module/idoutils/db/mysql/mysql.sql}}
Time to compile again!
{{Code|
cd /usr/local/src/
tar -xzf nagios-plugins-1.4.15.tar.gz
cd nagios-plugins-1.4.15
== 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.
{{Code|cd /usr/local/src/
tar -xzf icinga-api-refs-heads-master.tar.gz
cd icinga-api
{{Code|hda-create-db-and-user icinga_web}}
Configure and install the new web interface.
{{Code|cd /usr/local/src/
tar -xzf icinga-web-1.4.1.tar.gz
cd icinga-web-1.4.1
== Install the Icinga Mobile Interface ==
Time for more source work!
{{Code|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
Now on your iPhone or Android phone visit http://icinga/icinga-mobile. After it says request failed click on config. Change the Icinga Web URL to reflect your server name. For instance my server is icinga.home so your URL should be http://icinga.home/icinga-web. Make the Auth key "mobileaccess" without quotes.
=== Known Issues ===
* You have to make the server for icinga-web the exact same as what you access icinga-mobile on the config page of Icinga Mobile. For security reasons cross domain AJAX requests are denied. Example if you're accessing http://xyz/icinga-mobile then Icinga Web URL must be http://xyz/icinga-web. You can change the default credentials in Icinga Mobile from the instructions in the [https://wiki.icinga.org/display/howtos/Setting+up+icinga-mobile#Settingupicinga-mobile-Changingdefaultcredentials%28optional%29 Icinga Wiki] by editing ''/usr/local/src/icinga-mobile/lib/Model/IcingaConfiguration.js''. You will have to recompile and reinstall Icinga Mobile (without running "make install-apache-config").
* Icinga Mobile works neither with the desktop or mobile version of Firefox.
* You may have to visit your fully qualified domain name on your mobile phone to access Icinga. For instance going to http://icinga.home/icinga-mobile instead of http://icinga/icinga-mobile because the mobile browsers will attempt to search it like icinga is a keyword for a search engine.
=== 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/local/src/''
* Install the following packages
{{Code|yum install <nowiki>perl rrdtool rrdtool-perl</nowiki> -y}}
More compiling!
{{Code|
cd /usr/local/src/
tar -xzf pnp4nagios-0.6.13.tar.gz
cd pnp4nagios-0.6.13
61

edits