Skip to content
This repository was archived by the owner on Feb 4, 2024. It is now read-only.

stuvusIT/icinga2-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

icinga2-client

This role sets up a small Icinga 2 installation for remote monitoring. The zones are automatically configured (parent zones + a global template zone). Your nodename is automatically set to the inventory hostname.

A certificate is automatically requested and installed. This done by generating the key pair on the target machine, fetching a ticket from the CA (by delegating the task to the CA host), and requesting the certificate directly on the target. No keys are transferred to the control machine.

This role belongs to icinga2-master.

Requirements

Ubuntu

Role Variables

Name Default/Required Description
icinga2_parent_zone ✔️ Name of the group of the parent zone
icinga2_ca_host ✔️ The host with the CA certificates, a certificate will be requested here
icinga2_noagent_group icinga2-noagent If a host is in this group, the client will not be deployed
icinga2_user nagios User under which Icinga 2 is run
icinga2_group nagios Group under which Icinga 2 is run
icinga2_monitoring_package monitoring-plugins Name of the monitoring plugins package
icinga2_plugin_dir /usr/lib/nagios/plugins Directory that contains the monitoring plugins
icinga2_constants {} Dict of Icinga 2 constant strings
icinga2_icinga2_api_bind_host 0.0.0.0 Host to bind on for API requests
icinga2_api_bind_port 5665 Port to bind on for API requests
icinga2_log_severity warning Severity for messages to be logged to the syslog

Example Playbook

- hosts: all
  roles:
  - role: icinga2-client
    icinga2_parent_zone: master
    icinga2_ca_host: icinga01

License

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

Author Information

Releases

No releases published

Packages

 
 
 

Contributors