Remote Check on Linux Ubuntu

Hello, I want to monitor multiple Linux hosts. To do this, I installed the icinga client on the host. However, I always get the results of the Icinga Master when I view it. The included monitoring checks are used. The operating system is always Ubuntu 18.0.4. Icinga is used with the Director and it is the latest stable version installed. Can you give me a tip about where the error might lie? Need more Information?

This is typical when command_endpoint is not set or not set correctly. Typically configuration used:

command_endpoint = host.name

How can I specify the host_name when used check_apt?

Using the director makes it easy. You just need to set Run on Agent to yes.

I activated the agent on the host. In the check previous also. Without success.

As you are using the Director you can simply enable the “Run on agent” option in the service template, as @rsx said.

For that to work the agent has to be successfully connected to the master.
You will also need a different host template where you set the needed attributes.
Example of my windows server template for agents:

If you are still having trouble posting your host/service configuration would certainly help :slight_smile:

Sorry for my late reply. I was very busy at work.
My config:

zones.d/icinga2.xxx.de/hosts.conf

object Host “logging.xxx.de” {
display_name = “logging.xxx.de
address = “xxx.xx.4.61”
check_command = “ping4”
max_check_attempts = “3”
check_interval = 5m
retry_interval = 1m
enable_notifications = true
enable_active_checks = true
enable_event_handler = true
enable_perfdata = true
groups = [ “Linux Server” ]
}

zones.d/icinga2.xxx.de/agent_endpoints.conf

object Endpoint “logging.xxx.de” {
host = “xxx.xx.4.61”
log_duration = 0s
}

zones.d/icinga2.xxx.de/agent_zones.conf

object Zone “logging.xxx.de” {
parent = “icinga2.xxx.de
endpoints = [ “logging.xxx.de” ]
}

GNU nano 2.9.3 /etc/icinga2/zones.conf
/*

  • Generated by Icinga 2 node setup commands
  • on 2020-06-04 18:39:43 +0000
    */

object Endpoint “icinga2.xxx.de” {
host = “icinga2.xxx.de
port = “5665”
}

object Zone “master” {
endpoints = [ “icinga2.xxx.de” ]
}

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

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

object Endpoint “logging.xxx.de” {
}

object Zone “logging.xxx.de” {
endpoints = [ “logging.xxx.de” ]
parent = “master”
}

So it goes now. The config in Icinga didn’t quite fit. Thank you for your help.