Skip to main content

Module instance_file

Module instance_file 

Source
Expand description

Icinga instance config files, one TOML file per Icinga master

A directory of these files can be shared by several tools that talk to the same Icinga masters. The file stem is the instance name. A file looks like this:

url = "https://icinga.example.com:5665"
ca_certificate = "/path/to/ca.pem"
web_base_url = "https://icinga.example.com/monitoring/"
username = "api-user"
password_command = ["pass", "show", "icinga/api-user"]
password_command_env = { PASSWORD_STORE_DIR = "/path/to/store" }

Instead of password_command a literal password can be used, and instead of username and a password a TLS client certificate can be used with client_certificate and client_key (PEM files), e.g. the certificate of an Icinga agent for an ApiUser with a client_cn.

Structs§

Icinga2InstanceFile
one Icinga instance config file

Enums§

Icinga2InstanceFileAuth
how an instance config file authenticates
Icinga2InstanceFileError
errors when loading instance config files or resolving their auth