Hi,
I am trying to monitor a client via the Icinga Agent.
I have configured the server with the director module, but can’t get any checks to run on the client.
I think there is something wrong with the zones/endpoint configuration.
Here is my server configuration, NodeName is set to icingaserver.domain:
object Endpoint NodeName {
host = NodeName
}object Zone ZoneName {
endpoints = [ NodeName ]
}object Zone “global-templates” {
global = true
}object Zone “director-global” {
global = true
}
Here is my agent configuration:
object Endpoint “icingaserver.domain” {
}object Zone “icingaserver.domain” {
endpoints = [ “icingaserver.domain” ]
}object Endpoint “icingaagent.domain” {
}object Zone “icingaagent.domain” {
endpoints = [ “icingaagent.domain” ]
parent = “icingaserver.domain”
}object Zone “global-templates” {
global = true
}object Zone “director-global” {
global = true
}
Here is the host config:
zones.d/icingaserver.domain/hosts.conf
object Host “icingaagent.domain” {
import “generic-host”display_name = "xxxx" address = "192.168.xx.xx" vars.os = "other"
}
zones.d/icingaserver.domain/agent_endpoints.conf
object Endpoint “icingaagent.domain” {
host = “192.168.65.33”
log_duration = 0s
}zones.d/icingaserver.domain/agent_zones.conf
object Zone “icingaagent.domain” {
parent = “icingaserver.domain”
endpoints = [ “icingaagent.domain” ]
}
And this is the check command which I have set up in the director-global zone (for syncing between the endpoints):
object CheckCommand “agent-test-command” {
import “plugin-check-command”
command = [ PluginDir + “/check_disk”, “-w”, “20%”, “-c”, “10%” ]
}
Can someone have a look on the config and give me a hint?
Thanks and regard
Karim