Changes between Version 13 and Version 14 of NSM2021/Agenda/iCinga
- Timestamp:
- May 23, 2021, 1:32:06 AM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
NSM2021/Agenda/iCinga
v13 v14 57 57 [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/NSM2021/Agenda/iCinga/requirements8.png, 600)]] 58 58 59 59 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 60 60 61 61 [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/NSM2021/Agenda/iCinga/icingaweb_db_respurce9.png, 600)]] 62 62 63 [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/NSM2021/Agenda/iCinga/icingaweb_db_respurce9.2.png, 600)]] 63 Enter Authentication backend as icingaweb2: 64 64 65 65 [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/NSM2021/Agenda/iCinga/authenticationbackend10.png, 600)]] 66 66 67 Create a loging user for the icingaweb portal: 68 67 69 [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/NSM2021/Agenda/iCinga/creatingadmininstratoraccount11.png, 600)]] 68 70 71 Click next to proceed : 72 69 73 [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/NSM2021/Agenda/iCinga/applicationconfiguration12.png, 600)]] 70 74 75 Change the database name to icinga2 : 76 71 77 [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/NSM2021/Agenda/iCinga/monitoringbackekend15.png, 600)]] 72 78 79 Use the password you typed when the mysql ido configurations while executing the installation script: 80 73 81 [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/NSM2021/Agenda/iCinga/idoresource16.png, 600)]] 74 82 83 Enter the api-user details and you can find the details in `/etc/icinga2/conf.d/api-users.conf` file. I(f you get error vhile validating root, please restart the icinga service and try): 84 85 75 86 [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/NSM2021/Agenda/iCinga/apiuser17.png, 600)]] 76 87 88 Click next to proceed : 89 77 90 [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/NSM2021/Agenda/iCinga/monitoringsecurity18.png, 600)]] 78 91 92 if the configurations are succeeded, following message is shown on the top, and click `Login to icinga web 2` in the right side 93 79 94 [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/NSM2021/Agenda/iCinga/success20.png, 600)]] 80 95 96 Initial dashboard: 97 81 98 [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/NSM2021/Agenda/iCinga/initialdashboard22.png, 600)]] 82 99 100 Let's Initialise a resource for director module. Resources can be created using Configurations > Application > Resource like following image. 101 83 102 [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/NSM2021/Agenda/iCinga/addingresources24.png, 600)]] 84 103 104 After creating resource for director and select created resource: 105 85 106 [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/NSM2021/Agenda/iCinga/config_source_fordirector25.png, 600)]] 86 107 108 Then assing the hostname as endpoint and host as local host, API user details are in `/etc/icinga2/conf.d/api-users.conf` file. 109 110 After every deplyment, Please deploy by clicking `Deploy pending changes` on the top of the page : 111 87 112 [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/NSM2021/Agenda/iCinga/deplypending_changes26.png, 600)]] 88 113 114 Before adding hosts, the host templates have to be added. you can assing the commands and the templates as requirements. 115 89 116 [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/NSM2021/Agenda/iCinga/host_template28.png, 600)]] 90 117 118 Add the hosts after adding host template: 119 91 120 [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/NSM2021/Agenda/iCinga/add_hosts30.png, 600)]] 92 121 122 Before adding services, the service templates has to be added, 123 93 124 [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/NSM2021/Agenda/iCinga/service_template32.png, 600)]] 125 126 After, services can be added as following as per requirements: 94 127 95 128 [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/NSM2021/Agenda/iCinga/service33.png, 600)]]