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


Ignore:
Timestamp:
May 23, 2021, 12:28:07 PM (4 years ago)
Author:
admin
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • NSM2021/Agenda/iCinga

    v16 v17  
    4545You 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.
    4646
    47 you can show it using the icingacli:
     47you can find it by using the icingacli:
    4848
    4949`icingacli setup token show`
     
    5555[[Image(https://ws.learn.ac.lk/raw-attachment/wiki/NSM2021/Agenda/iCinga/mdulelist7.png, 600)]]
    5656
    57 You can enable the modules you want sliding bars:
     57You can enable the modules you want by sliding bars and click Next:
    5858
    5959[[Image(https://ws.learn.ac.lk/raw-attachment/wiki/NSM2021/Agenda/iCinga/selectingmodules6.png, 600)]]
     
    8787[[Image(https://ws.learn.ac.lk/raw-attachment/wiki/NSM2021/Agenda/iCinga/idoresource16.png, 600)]]
    8888
    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 and try):
     89Enter 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):
    9090
    9191
     
    104104[[Image(https://ws.learn.ac.lk/raw-attachment/wiki/NSM2021/Agenda/iCinga/initialdashboard22.png, 600)]]
    105105
    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
     108Icinga2 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
     111Let's Initialise a resource for director module. Resources can be created using `Configurations` > `Application` > `Resource` like following image.
    107112
    108113[[Image(https://ws.learn.ac.lk/raw-attachment/wiki/NSM2021/Agenda/iCinga/addingresources24.png, 600)]]
    109114
    110 After creating resource for director and select created resource:
     115After creating resource for director, select the created resource:
    111116
    112117[[Image(https://ws.learn.ac.lk/raw-attachment/wiki/NSM2021/Agenda/iCinga/config_source_fordirector25.png, 600)]]
    113118
    114 Then assing the hostname as endpoint and host as local host, API user details are in `/etc/icinga2/conf.d/api-users.conf` file.
     119If 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.
    115120
    116121After every deplyment, Please deploy by clicking `Deploy pending changes` on the top of the page :
     
    118123[[Image(https://ws.learn.ac.lk/raw-attachment/wiki/NSM2021/Agenda/iCinga/deplypending_changes26.png, 600)]]
    119124
    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
     127Before adding hosts, the host templates have to be added. These templates should have the details on how host needs to be checked.
    121128
    122129[[Image(https://ws.learn.ac.lk/raw-attachment/wiki/NSM2021/Agenda/iCinga/host_template28.png, 600)]]
     
    126133[[Image(https://ws.learn.ac.lk/raw-attachment/wiki/NSM2021/Agenda/iCinga/add_hosts30.png, 600)]]
    127134
     135== Adding Services ==
     136
    128137Before adding services, the service templates has to be added,
    129138
     
    134143[[Image(https://ws.learn.ac.lk/raw-attachment/wiki/NSM2021/Agenda/iCinga/service33.png, 600)]]
    135144
    136 == Manual Installation ==
     145
     146
     147== Following is the Manual Installation ==
     148
     149If you have completed the scripted installation, do not proceed. ( This is for references )
    137150
    138151=== Ubuntu Repositories===
     
    456469`systemctl start icinga-director.service`
    457470
    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