Skip to content

Setup Guide for Icinga2 Agents

Posted on:December 8, 2022 at 02:30 PM

Requirements

Before setting up Icinga2 agents, the following requirements must be met:

Installation

  1. Install the Icinga 2 agent packages using the appropriate package manager.
    # apt-get install icinga2
  2. Generate a secure ticket for the Icinga 2 agent.
    # icinga2 pki ticket --cn <FQDN>
  3. Copy the ticket file to the Icinga 2 master.
  4. Configure the Icinga 2 master to accept the agent connection.
    # icinga2 node setup --ticket <ticket-id> --endpoint <FQDN>
  5. Restart the Icinga 2 master service.
    # systemctl restart icinga2
  6. Enable and start the Icinga 2 agent service.
    # systemctl enable icinga2
    # systemctl start icinga2 

Conclusion

Once the setup is complete, the Icinga 2 agent should be able to communicate with the Icinga 2 master and you should be able to monitor the target system.