Changes between Version 16 and Version 17 of NSM2021/Agenda/iCinga
- Timestamp:
- May 23, 2021, 12:28:07 PM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
NSM2021/Agenda/iCinga
v16 v17 45 45 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 46 47 you can show itusing the icingacli:47 you can find it by using the icingacli: 48 48 49 49 `icingacli setup token show` … … 55 55 [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/NSM2021/Agenda/iCinga/mdulelist7.png, 600)]] 56 56 57 You can enable the modules you want sliding bars:57 You can enable the modules you want by sliding bars and click Next: 58 58 59 59 [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/NSM2021/Agenda/iCinga/selectingmodules6.png, 600)]] … … 87 87 [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/NSM2021/Agenda/iCinga/idoresource16.png, 600)]] 88 88 89 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 andtry):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 90 91 91 … … 104 104 [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/NSM2021/Agenda/iCinga/initialdashboard22.png, 600)]] 105 105 106 Let's Initialise a resource for director module. Resources can be created using Configurations > Application > Resource like following image. 106 === Setup Icinga Director Module === 107 108 Icinga2 Director Module will allow you to do the configuration by webapp. Unless you have to do it from CLI. We have installed the module from our script. 109 110 111 Let's Initialise a resource for director module. Resources can be created using `Configurations` > `Application` > `Resource` like following image. 107 112 108 113 [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/NSM2021/Agenda/iCinga/addingresources24.png, 600)]] 109 114 110 After creating resource for director and selectcreated resource:115 After creating resource for director, select the created resource: 111 116 112 117 [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/NSM2021/Agenda/iCinga/config_source_fordirector25.png, 600)]] 113 118 114 Then assing the hostname as endpoint and host as local host, API user detailsare in `/etc/icinga2/conf.d/api-users.conf` file.119 If it asks API details, Put the hostname as endpoint and host as local host, API user details for director are in `/etc/icinga2/conf.d/api-users.conf` file. 115 120 116 121 After every deplyment, Please deploy by clicking `Deploy pending changes` on the top of the page : … … 118 123 [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/NSM2021/Agenda/iCinga/deplypending_changes26.png, 600)]] 119 124 120 Before adding hosts, the host templates have to be added. you can assing the commands and the templates as requirements. 125 == Adding Hosts == 126 127 Before adding hosts, the host templates have to be added. These templates should have the details on how host needs to be checked. 121 128 122 129 [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/NSM2021/Agenda/iCinga/host_template28.png, 600)]] … … 126 133 [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/NSM2021/Agenda/iCinga/add_hosts30.png, 600)]] 127 134 135 == Adding Services == 136 128 137 Before adding services, the service templates has to be added, 129 138 … … 134 143 [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/NSM2021/Agenda/iCinga/service33.png, 600)]] 135 144 136 == Manual Installation == 145 146 147 == Following is the Manual Installation == 148 149 If you have completed the scripted installation, do not proceed. ( This is for references ) 137 150 138 151 === Ubuntu Repositories=== … … 456 469 `systemctl start icinga-director.service` 457 470 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 === Firewall Rules ===477 478 Enable port 80 (http). Best practice is to only enable port 443 (https) and use TLS certificates.479 480 ufw-cmd:481 482 `ufw allow 22`483 484 `ufw allow 80`485 486 `ufw allow 443`487 488 `ufw allow 5665`489 490 `ufw reload`491 492 iptables:493 494 `iptables -A INPUT -p tcp -m tcp --dport 80 -j ACCEPT`495 `service iptables save`496 497 498 499 500 501 502 503 504 505