Problem with my satellite

Hello everybody,

i got a problem, my check doesn´t change the state…

It only says pending …

My config is: One master, two seperate satellites -> one satellite looks after the client. (Screenshot)

The master checks the both satellites correct. So the problem have to be on the satellite.

I hope somebody can help me :slight_smile:

Thanks (sorry for my bad english :sweat_smile:)

hi

check your zones.conf in both master and satellites

share the icinga version as well

Regards
Krishna

Master - zones.conf - (Icinga2 version: version: r2.11.4-1)

object Endpoint “icinga2-master01” {
}

object Zone “master” {
endpoints = [ “icinga2-master01” ]
}

object Endpoint “icinga2-satellite01.localdomain” {
host = “icinga2-satellite01.localdomain”
port = “5665”
}

object Endpoint “icinga2-satellite51.localdomain” {
host = “icinga2-satellite51.localdomain”
port = “5665”
}

object Zone “satellite-sme” {
endpoints = [ “icinga2-satellite01.localdomain” ]
parent = “master”
}

object Zone “satellite-lue” {
endpoints = [ “icinga2-satellite51.localdomain” ]
parent = “master”
}

object Zone “global-templates” {
global = true
}

object Zone “director-global” {
global = true
}


icinga2-satellite01 - zones.conf - (Icinga2 version: version: r2.11.4-1)

object Endpoint “icinga2-master01.localdomain” {
host = “icinga2-master01.localdomain”
port = “5665”
}

object Zone “master” {
endpoints = [ “icinga2-master01.localdomain” ]
}

object Endpoint “icinga2-satellite01.localdomain” {
host = “icinga2-satellite01.localdomain”
port = “5665”
}

object Zone “satellite-sme” {
endpoints = [ “icinga2-satellite01.localdomain” ]
parent = “master”
}

object Zone “global-templates” {
global = true
}

object Zone “director-global” {
global = true
}


icinga2-satellite51 - zones.conf - (Icinga2 version: version: r2.11.4-1)

object Endpoint “icinga2-master01.localdomain” {
host = “icinga2-master01.localdomain”
port = “5665”
}

object Zone “master” {
endpoints = [ “icinga2-master01.localdomain” ]
}

object Endpoint “icinga2-satellite51.localdomain” {
host = “icinga-satellite51.localdomain”
port = “5665”
}

object Zone “satellite-lue” {
endpoints = [ “icinga2-satellite51.localdomain” ]
parent = “master”
}

object Zone “global-templates” {
global = true
}

object Zone “director-global” {
global = true
}

Small request: Please format your post with Markdown, so it is a bit tidier/better readable :slight_smile:
This guide will show you how:

back to topic:
What kind of client are you trying to monitor?
Has it the icinga2 agent installed?

Please show the config of the host.

1 Like

Hello Log1c

in this case i try to monitore a switch, so i dont use the icinga2 agent.

I use the Icinga-Director to create hosts and work with templates.

object Host “sw-s-a01.localdomain” {

import "Check_Switch_SME"

display_name = "sw-s-a01.localdomain"

address = "sw-s-a01.localdomain"

groups = [ "Switch-SME" ]

}

template Host “Check_Switch_SME” {

check_command = "ping"

max_check_attempts = "3"

check_interval = 1m

retry_interval = 5s

check_timeout = 3s

enable_notifications = true

enable_active_checks = true

enable_passive_checks = true

enable_event_handler = false

enable_flapping = false

enable_perfdata = true

command_endpoint = "icinga2-satellite01.localdomain"

groups = [ "Switch-SME" ]

}

Greats

Is this text correct with Markdown?

AS you are using the Director this should be fairly simple.

For hosts that are to be checked by the satellite you should create a new template, e.g. “generic-host-satellite51” for hosts behind the satellite51.

Example screenshot of my testing env:

As you can see the template sets the option “Cluster Zone” to the satellite object.
This way all the hosts that import this template will belong to the satellite zone and are automatically checked by the satellite.
No need to set the command endpoint option.

I changed the config, but the satellite didn´t check the switch …