SUSE Manager/Icinga

From MicroFocusInternationalWiki
Revision as of 06:41, 29 February 2016 by Dvosburg (Talk | contribs)

Jump to: navigation, search

Icinga packages are in the SUSE Manager Tools channel for SLE12.

Here is a quickstart process to get icinga installed with the IDOUtils and running on postgres:

1. Add the SUMA client and update channels to your SLES12/SLES12SP1 server

2. Install the necessary packages:

zypper in icinga icinga-idoutils-pgsql postgresql postgresql94-server monitoring-plugins-all apache2 apache2-example-pages

3. 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.

vi /etc/icinga/objects/contacts.cfg

4. Set postgres to start on bootup and start the DB:

systemctl enable postgresql.service

systemctl start postgresql.service

5. Create database and User:

#su - postgres

postgres=# CREATE USER icinga;
postgres=# ALTER USER icinga WITH PASSWORD 'icinga';
postgres=# CREATE DATABASE icinga;
postgres=# \q

6. Modify the postgres config file - /var/lib/pgsql/data/pg_hba.conf - commenting out everything, and placing this at the bottom:

# database administrative login by UNIX sockets
local    all        postgres                  ident
local    icinga     icinga                    trust
# "local" is for Unix domain socket connections only
local    all        all                       trust
# IPv4 local connections
host     all        all   trust
# IPV6 local connections
host     all        all        ::1/128        trust

Then reload the postgresql service:

systemctl reload postgresql.service

7. Configure the database schema:

cd /usr/share/doc/packages/icinga-idoutils-pgsql/pgsql/ psql -U icinga -d icinga < pgsql.sql

8. Edit the following lines in the DB config file to customize IDOUtils for postgres

vi /etc/icinga/ido2db.cfg

8. Create an icingaadmin account for logging into the web interface:

htpasswd -c /etc/icinga/htpasswd.users icingaadmin

9. Enable and start the ido2db, icinga, and apache2 services:

systemctl enable ido2db.service

systemctl start ido2db.service

systemctl enable icinga.service

systemctl start icinga.service

systemctl enable apache2.service

systemctl start apache2.service

10. You should now be able to access the Icinga classic web interface at the URL below. You'll be prompted for the username ( icingaadmin) and password you specified earlier.