Changes between Version 12 and Version 13 of NSM2021/Agenda/icinga_handson_cont


Ignore:
Timestamp:
May 30, 2021, 7:59:09 PM (4 years ago)
Author:
admin
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • NSM2021/Agenda/icinga_handson_cont

    v12 v13  
    123123}}}
    124124
    125 '''Note : Please check the `/etc/hosts` file and verify that the agent is resolving for the FQDNvof master node before executing the agent scripts.'''
     125'''Note : Please check the `/etc/hosts` file and verify that the agent is resolving for the Nodename of master node before executing the agent scripts.'''
    126126(Otherwise you will not be able to connect agent hosts with a certificate error)
    127127
     
    134134You will see two scripts to execute on agent hosts.
    135135
    136 They are for Agent deployment instructions, you will get Windows Kickstart Script and a command line script for the agents as above in the example.
     136They are for Agent deployment instructions, you will get Windows Kickstart Script and a Linux command line script for the agents as above in the example.
    137137
    138 Download them in the the agent hosts and execute the scripts for configurations.
     138Download the required script into the agent hosts and execute the scripts for configurations. (you may copy paste the script content into a file via vim or nano, but do not directly run them on plain console ). Assuming the script file is `icinga-agent.sh`
    139139
    140 `./icinga-agent.sh`
     140{{{
     141chmod +x icinga-agent.sh
    141142
    142 After, To check wether the agent is added, execute following command on master as follow in the exemple
     143./icinga-agent.sh
     144}}}
    143145
    144 `icinga2 ca list --all`
     146
     147
     148After, you need to sign the agent's security certificate by execute following commands on '''master node''' as follow in the example
     149
     150* Find Agent Fingerprint: `icinga2 ca list --all`
     151
     152* Sign Agents Fingerprint: `icinga ca sign <Agent Fingerprint>`
    145153
    146154[[Image(https://ws.learn.ac.lk/raw-attachment/wiki/NSM2021/Agenda/icinga_handson_cont/master_listing_agents.jpeg, 600)]]