Icinga / Icinga/icinga2

Windows agents assume parent nodes being in master zone

Open
#9,602 6 comments 0 reactions 1 assignee View on GitHub

@lippserd is already working on this.

Since Dec 5, 2022.

area/distributed area/setup area/windows bug needs feedback ref/IP TBD
Dominant language
C++
Stars
2.2k
Forks
616
Avg merge
5d 6h
Merged PRs (30d)
10

Description

To Reproduce

  1. Setup a master
  2. Setup a satellite
  3. Setup an agent, let it connect to the satellite

Describe the bug

Now zones.conf says:

/*
 * Generated by Icinga 2 node setup commands
 * on 2022-12-01 14:56:58 -0000
 */

object Endpoint "aklimov-43484-2.novalocal" {
	host = "10.27.1.73"
	port = "5665"
}

object Zone "master" { // <-- master zone WRONG
	endpoints = [ "aklimov-43484-2.novalocal" ] // <-- satellite node
}

object Endpoint "desktop-il7pl8c" {
}

object Zone "desktop-il7pl8c" {
	endpoints = [ "desktop-il7pl8c" ]
	parent = "master" // <-- master zone WRONG
}

object Zone "global-templates" {
	global = true
}

object Zone "director-global" {
	global = true
}

Expected behavior

zones.conf correctly reflects the actual cluster subtree.

Substitute master with aklimov-43484-2.novalocal above.

Your Environment

  • Version used (icinga2 --version): 2.13.6
  • Operating System and version: Windows 10

Additional context

ref/IP/43484

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.