Hi all,
for my education to IT-Specialist, for my final project i choose to set up Network Monitoring, using Icinga2 in a small Company Network.
I just aim to have one master checking about 10 different Windows Server and Switches.
I’m having a hard time realising this.
My current issue is the following error
[2020-10-22 11:22:54 +0200] information/cli: Icinga application loader (version: r2.12.0-1)
[2020-10-22 11:22:54 +0200] information/cli: Loading configuration file(s).
[2020-10-22 11:22:54 +0200] information/ConfigItem: Committing config item(s).
[2020-10-22 11:22:54 +0200] critical/config: Error: Validation failed for object 'DC01' of type 'Zone'; Attribute 'zone': Object 'icinga2' of type 'Zone' does not exist.
Location: in [stage]/zones.d/icinga2/agent_zones.conf: 1:0-1:17
[stage]/zones.d/icinga2/agent_zones.conf(1): object Zone "DC01" {
^^^^^^^^^^^^^^^^^^
[stage]/zones.d/icinga2/agent_zones.conf(2): parent = "icinga2"
[stage]/zones.d/icinga2/agent_zones.conf(3): endpoints = [ "DC01" ]
[2020-10-22 11:22:54 +0200] critical/config: 1 error
[2020-10-22 11:22:54 +0200] critical/cli: Config validation failed. Re-run with 'icinga2 daemon -C' after fixing the config.
icinga2 ist the Hostname of my Master… i dont think i ever said icinga2 should be a zone…
oks… i tried to add the Client01 (agent side) into /etc/icinga2/zones.conf on the master
in any way i could think of, with the result of various error messages
how would the /etc/icinga2/zones.conf look exactly with the added Client01?
what makes me wonder, is that i have another icinga2 master, which doesnt produce the “Object ‘icinga2’ of type ‘Zone’ does not exist.” error.
/etc/icinga2/zones.conf looks exactly the same on them both
object Endpoint "icinga2" {
}
object Zone "master" {
endpoints = [ "icinga2" ]
}
object Zone "global-templates" {
global = true
}
object Zone "director-global" {
global = true
}
I also never wrote smtn manually in any config file at the working master
the only difference i see is parent = “master” on the working Icinga vs parent = “icinga2”
why are they behaving different… the only ting i can think of, there must be another file containing an error, no?
im sorry… i know its a mess and im not really know what im doin here… but i really need to make it work and your help is very appreciated
object Zone "master" {
endpoints = [ "icinga2" ]
}
to
object Zone "icinga2" {
endpoints = [ "icinga2" ]
}
works for now…
still wondering why the same agent is looking for master on the one, but for icinga2 on the other master… i have a feeling, i should rather change this behavior, than writing in /etc/icinga2/zones.conf
…dunno how/where
and adding host works…
so in my case either changing zones.conf to match director or execute kickstart wizard to make director match zones.conf was the solution