Changes between Version 12 and Version 13 of NSM2021/Agenda/icinga_handson_cont
- Timestamp:
- May 30, 2021, 7:59:09 PM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
NSM2021/Agenda/icinga_handson_cont
v12 v13 123 123 }}} 124 124 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.''' 126 126 (Otherwise you will not be able to connect agent hosts with a certificate error) 127 127 … … 134 134 You will see two scripts to execute on agent hosts. 135 135 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.136 They 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. 137 137 138 Download the m in the the agent hosts and execute the scripts for configurations.138 Download 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` 139 139 140 `./icinga-agent.sh` 140 {{{ 141 chmod +x icinga-agent.sh 141 142 142 After, To check wether the agent is added, execute following command on master as follow in the exemple 143 ./icinga-agent.sh 144 }}} 143 145 144 `icinga2 ca list --all` 146 147 148 After, 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>` 145 153 146 154 [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/NSM2021/Agenda/icinga_handson_cont/master_listing_agents.jpeg, 600)]]