Quantcast
Channel: Monitoring-Portal Feed
Viewing all articles
Browse latest Browse all 1338

global-template wird nicht übertragen

$
0
0
Hallo NG

leider habe ich ein Problem mit dem Sync der "global-template" Zone und ich kann beim besten willen nicht finden warum.
Ich verwende derzeit Ubuntu 14.04 mit Icinga 2.3.6-1 (eingebunden via ppa)


Geplant ist ein Master der teilweise selbst checks ausführt und einige Satelliten als Endpoints hat.
Am Master ist das conf.d in icinga2.conf ausgenommen, die Config für die lokalen Checks liegen in "/etc/icinga2/zone.d/master". Dies funktioniert auch

In zones.conf (/etc/icinga2/zones.conf) ist global-template aktiv, trotzdem werden die conf-files des global-templates Ordners nicht auf den Satelliten kopiert.
Das Resultat ist, dass am WindowsServer beim installieren des IcingaClients ein Fehler auftritt, weil das Template generic-host nicht bekannt ist.
generic-host ist in /etc/icinga2/zones.d/global-template/templates.conf definiert.

Wenn ich in der zones.conf am slave-hsot global-templates eintrage dann wird dies beim nächsten restart überschrieben, somit muss auch das zone.conf am slave-host vom master repliziert werden.

--> Meine Frage ist, wo muss ich am Master die zones.conf für den slave-host anlegen?
Ich denke in diesem Post ist die Lösung versteckt nur leider komm ich nicht drauf http://www.monitoring-portal.org/wbb/ind…&threadID=32356

die Configs:

Master zones.conf

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
object Zone "global-templates" {
  global = true
}

object Endpoint "master-host.local" {
}

object Zone "master" {
        endpoints = [ "master-host.local" ]
}

object Endpoint "satellite-host.local" {
  host = "satellite-host.local"
}

object Zone "satellite-host.local" {
  endpoints = [ "satellite-host.local" ]
  parent = "master"
}



api slave-host

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/**
 * The API listener is used for distributed monitoring setups.
 */
object ApiListener "api" {
  cert_path = SysconfDir + "/icinga2/pki/" + NodeName + ".crt"
  key_path = SysconfDir + "/icinga2/pki/" + NodeName + ".key"
  ca_path = SysconfDir + "/icinga2/pki/ca.crt"
  bind_host = "::"
  bind_port = 5665

  accept_config = true
  accept_commands = false

  ticket_salt = TicketSalt
}



zones.conf am slave-host (autogenerated)

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
 * Generated by Icinga 2 node setup commands
 * on 2015-07-27 16:17:00 W. Europe Daylight Time
 */

object Endpoint "master-host.local" {
	host = "master-host.local"
	port = "5665"
}

object Zone "master" {
	endpoints = [ "master-host.local" ]
}

object Endpoint "slave-host.local" {
}

object Zone ""slave-host.local" {
	//this is the local node = ""slave-host.local"
	endpoints = [ "slave-host.local" ]
	parent = "master"
}



tree am master

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|-- global-templates
|   |-- apt.conf
|   |-- ci_groups.conf
|   |-- ci_hosts.conf
|   |-- ci_notification.conf
|   |-- ci_template.conf
|   |-- ci_users.conf
|   |-- commands.conf
|   |-- downtimes.conf
|   |-- groups.conf
|   |-- notifications.conf
|   |-- satellite.conf
|   |-- services.conf
|   |-- templates.conf
|   |-- timeperiods.conf
|   `-- users.conf
|-- master
|   `-- hosts.conf
|-- README
`-- slave-host.local
    |-- ci_services.conf
    |-- ci_zones.conf.ori
    |-- hosts.conf
    |-- service.conf
    `-- test.conf.ori



Das Verzeichnis "C:\Program Files (x86)\ICINGA2\var\lib\icinga2\api\zones\slave.host.local\" am slave-host

Viewing all articles
Browse latest Browse all 1338