Changes between Version 17 and Version 18 of NSM2021/Agenda/iCinga


Ignore:
Timestamp:
May 23, 2021, 6:11:56 PM (4 years ago)
Author:
deepthi
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • NSM2021/Agenda/iCinga

    v17 v18  
    66
    77* Linux Server running Ubuntu 20.04 LTS
    8 * SSL/ HTTPS Certificates issued ( May be using Letsencrypt or Otherwise)
    98* sudo access to the server. All following commands have to be entered as the root user. Best way to do it is, by login in as root with {{{ sudo su }}}
    109
     
    1312== Installing using a Script ==
    1413
    15 Download the script into your server
     14The Installation process of Icinga2 will be done using a script.
     15Script includes,
     16
     17* Installation of Icinga2, Icingaweb2 and relevant dependancies
     18* Installation of modules
     19* MariaDB installation
     20* Creating Databases
     21* Adding Api Users
     22
     23Commands are executed as `Superuser`
     24
     25'''1.Download the script into your server.'''
    1626
    1727`wget https://raw.githubusercontent.com/LEARN-LK/Tutorials/master/Scripts/ICINGA2/installing_icinga2_ubuntu.sh`
    1828
    19 Assign execute permission for the script
     29'''2.Assign execute permission for the script'''
    2030
    2131`chmod +x installing_icinga2_ubuntu.sh`
    2232
    23 Then execute file using terminal
     33'''3.Then execute file using terminal'''
    2434
    2535`./installing_icinga2_ubuntu.sh`
    2636
    27 Select `yes` for the options pop up when icinga2-ido-mysql starts installing and creating database for module. Enter a password for when it prompt(it is used for icinga2 database)
     37While the process is being executed, the configuration dialogs for icinga2-ido-mysql will be prompted. Select `yes` for the options as following images. Enter a password for when it prompt(It is used for icinga2 database)
    2838
    2939[[Image(https://ws.learn.ac.lk/raw-attachment/wiki/NSM2021/Agenda/iCinga/ido1.jpg, 600)]]
     
    3141[[Image(https://ws.learn.ac.lk/raw-attachment/wiki/NSM2021/Agenda/iCinga/idoconfig2.png, 600)]]
    3242
    33 Type here the password(This password will be used as icinga2 database password while icingaweb2 confgurations)
    34 
    35 [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/NSM2021/Agenda/iCinga/idoconfig4.png, 600)]]
    36 
    37 == Starting Web Setup ==
    38 
    39 Finally visit Icinga Web 2 in your browser to access the setup wizard and complete the installation:
    40 
    41 http://IP-ADDRESS/icingaweb2/setup
     43Type password for the installation of icinga2-ido-mysql (This password will be used as icinga2 database password while icingaweb2 configurations)
     44
     45'''After re-enter the password for confirmation when it prompts.'''
    4246
    4347=== Configuration on web ===
     
    4549You can set up Icinga Web 2 quickly and easily with the Icinga Web 2 setup wizard which is available the first time you visit Icinga Web 2 in your browser. When using the web setup you are required to authenticate using a token.
    4650
    47 you can find it by using the icingacli:
     51`http://IP-ADDRESS/icingaweb2/setup`
     52
     53you can find the token by using the icingacli in terminal:
    4854
    4955`icingacli setup token show`
    5056
     57Use the token to start configuration for icingaweb2
     58
    5159[[Image(https://ws.learn.ac.lk/raw-attachment/wiki/NSM2021/Agenda/iCinga/wensetup5.png, 600)]]
    5260
    53 Next page will show you the modules:
     61You can enable the modules needed by sliding bars and click Next:
     62
     63[[Image(https://ws.learn.ac.lk/raw-attachment/wiki/NSM2021/Agenda/iCinga/selectingmodules6.png, 600)]]
     64
     65In next page modules and the details are listed:
    5466
    5567[[Image(https://ws.learn.ac.lk/raw-attachment/wiki/NSM2021/Agenda/iCinga/mdulelist7.png, 600)]]
    5668
    57 You can enable the modules you want by sliding bars and click Next:
    58 
    59 [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/NSM2021/Agenda/iCinga/selectingmodules6.png, 600)]]
    60 
    61 Please keep the Authentication type as database:
     69Use database as Authentication type:
    6270
    6371[[Image(https://ws.learn.ac.lk/raw-attachment/wiki/NSM2021/Agenda/iCinga/requirements8.png, 600)]]
    6472
    65 As the icingaweb_db resource, please add icingaweb2 database details in Mysql, You can find your database password for icingaweb2 user in `/home/passwords.txt` file
     73As the icingaweb_db resource, please add icingaweb2 database details in Mysql. ()
     74
     75You can find your database password for icingaweb2 user in `/home/passwords.txt` file
     76
     77`cat /home/passwords.txt`
    6678
    6779[[Image(https://ws.learn.ac.lk/raw-attachment/wiki/NSM2021/Agenda/iCinga/icingaweb_db_respurce9.png, 600)]]
    6880
    69 Enter Authentication backend as icingaweb2:
     81Enter Authentication backend as icingaweb2 for the system:
    7082
    7183[[Image(https://ws.learn.ac.lk/raw-attachment/wiki/NSM2021/Agenda/iCinga/authenticationbackend10.png, 600)]]
    7284
    73 Create a loging user for the icingaweb portal:
     85Next, Create a login user for the icingaweb2 portal:
    7486
    7587[[Image(https://ws.learn.ac.lk/raw-attachment/wiki/NSM2021/Agenda/iCinga/creatingadmininstratoraccount11.png, 600)]]
     
    8395[[Image(https://ws.learn.ac.lk/raw-attachment/wiki/NSM2021/Agenda/iCinga/monitoringbackekend15.png, 600)]]
    8496
    85 Use the password you typed when the mysql ido configurations while executing the installation script:
     97Use the password you typed when the icinga-ido-mysql configurations while executing the installation script:
    8698
    8799[[Image(https://ws.learn.ac.lk/raw-attachment/wiki/NSM2021/Agenda/iCinga/idoresource16.png, 600)]]
    88100
    89 Enter the api-user details and you can find the details in `/etc/icinga2/conf.d/api-users.conf` file. (If you get an error while validating root, please restart the icinga service by `systemctl restart icinga2` and retry):
    90 
     101Enter the api-user details and you can find the details in `/etc/icinga2/conf.d/api-users.conf` file.
     102
     103(If you get an error while validating api user, please restart the icinga service by `systemctl restart icinga2` and retry):
    91104
    92105[[Image(https://ws.learn.ac.lk/raw-attachment/wiki/NSM2021/Agenda/iCinga/apiuser17.png, 600)]]