Changes between Version 17 and Version 18 of NSM2021/Agenda/iCinga
- Timestamp:
- May 23, 2021, 6:11:56 PM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
NSM2021/Agenda/iCinga
v17 v18 6 6 7 7 * Linux Server running Ubuntu 20.04 LTS 8 * SSL/ HTTPS Certificates issued ( May be using Letsencrypt or Otherwise)9 8 * 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 }}} 10 9 … … 13 12 == Installing using a Script == 14 13 15 Download the script into your server 14 The Installation process of Icinga2 will be done using a script. 15 Script 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 23 Commands are executed as `Superuser` 24 25 '''1.Download the script into your server.''' 16 26 17 27 `wget https://raw.githubusercontent.com/LEARN-LK/Tutorials/master/Scripts/ICINGA2/installing_icinga2_ubuntu.sh` 18 28 19 Assign execute permission for the script 29 '''2.Assign execute permission for the script''' 20 30 21 31 `chmod +x installing_icinga2_ubuntu.sh` 22 32 23 Then execute file using terminal 33 '''3.Then execute file using terminal''' 24 34 25 35 `./installing_icinga2_ubuntu.sh` 26 36 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)37 While 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) 28 38 29 39 [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/NSM2021/Agenda/iCinga/ido1.jpg, 600)]] … … 31 41 [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/NSM2021/Agenda/iCinga/idoconfig2.png, 600)]] 32 42 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 43 Type 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.''' 42 46 43 47 === Configuration on web === … … 45 49 You 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. 46 50 47 you can find it by using the icingacli: 51 `http://IP-ADDRESS/icingaweb2/setup` 52 53 you can find the token by using the icingacli in terminal: 48 54 49 55 `icingacli setup token show` 50 56 57 Use the token to start configuration for icingaweb2 58 51 59 [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/NSM2021/Agenda/iCinga/wensetup5.png, 600)]] 52 60 53 Next page will show you the modules: 61 You 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 65 In next page modules and the details are listed: 54 66 55 67 [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/NSM2021/Agenda/iCinga/mdulelist7.png, 600)]] 56 68 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: 69 Use database as Authentication type: 62 70 63 71 [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/NSM2021/Agenda/iCinga/requirements8.png, 600)]] 64 72 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 73 As the icingaweb_db resource, please add icingaweb2 database details in Mysql. () 74 75 You can find your database password for icingaweb2 user in `/home/passwords.txt` file 76 77 `cat /home/passwords.txt` 66 78 67 79 [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/NSM2021/Agenda/iCinga/icingaweb_db_respurce9.png, 600)]] 68 80 69 Enter Authentication backend as icingaweb2 :81 Enter Authentication backend as icingaweb2 for the system: 70 82 71 83 [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/NSM2021/Agenda/iCinga/authenticationbackend10.png, 600)]] 72 84 73 Create a loging user for the icingawebportal:85 Next, Create a login user for the icingaweb2 portal: 74 86 75 87 [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/NSM2021/Agenda/iCinga/creatingadmininstratoraccount11.png, 600)]] … … 83 95 [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/NSM2021/Agenda/iCinga/monitoringbackekend15.png, 600)]] 84 96 85 Use the password you typed when the mysql idoconfigurations while executing the installation script:97 Use the password you typed when the icinga-ido-mysql configurations while executing the installation script: 86 98 87 99 [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/NSM2021/Agenda/iCinga/idoresource16.png, 600)]] 88 100 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 101 Enter 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): 91 104 92 105 [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/NSM2021/Agenda/iCinga/apiuser17.png, 600)]]