Hello,
I’m sorry to ask about this topic again. I know that a lot has been written on this (I’ve read most of it), but still i can’t get this set-up to work. Please help. I’m able to sync configs from the master to satellite and agent but checks are not run (pending).
We have a setup of master/agents in master zone which works ok.
Now, the client saw how cool their monitoring system is and they decided to add one older system into the mix for monitoring. This system is not visible from the master host (mt1). Need to ssh mt1->dm1->vm1; where vm1 is one machine in the “old system”.
I’m trying to do a top-down setup, same how it’s done for master/agents (where i define hosts in EndPoint objects only on the master mt1 machine).
The master/satellite/agent setup (mt1/dm1/vm1).
Agent (vm1) zones.conf:
object Endpoint "mt1" {
}
object Endpoint "dm1" {
}
object Endpoint "vm1" {
}
object Zone "master" {
endpoints = ["mt1"]
}
object Zone "dm1" {
endpoints = ["dm1"]
parent = "master"
}
object Zone "vm1" {
parent = "dm1"
endpoints = ["vm1"]
}
object Zone "global-templates" {
global = true
}
Satellite (dm1) zones.conf:
object Endpoint "dm1" {
}
object Endpoint "mt1" {
}
object Zone "master" {
endpoints = [ "mt1", ]
}
object Zone "dm1" {
endpoints = [ "dm1", ]
parent = "master"
}
object Zone "global-templates" {
global = true
}
object Endpoint "vm1" {
host = "192.168.180.31"
}
object Zone "vm1" {
endpoints = [ "vm1", ]
parent = "dm1"
}
Master (mt1) zones.conf:
...
object Endpoint "dm1" {
host = "10.5.25.77"
}
object Zone "dm1" {
endpoints = [ "dm1", ]
parent = "master"
}
...
Master (mt1) zones.d/dm1/vm1.conf:
object Endpoint "vm1" {
// host = "192.168.180.31"
}
object Zone "vm1" {
endpoints = ["vm1"]
parent = "dm1"
}
object Host "vm1" {
address = "192.168.180.31"
display_name = "vm1"
check_command = "hostalive"
vars.name = "vm1"
// command_endpoint = "vm1"
vars.os = "Linux"
vars.disks["disk"] = {}
vars.disks["disk /"] = {
disk_partitions = "/"
}
vars.agent = true
//zone = "dm1"
}
object Service "disk-sat" {
host_name = "vm1"
check_command = "disk"
}
With this config I’m able to sync global-templates from mt1 to vm1 but checks don’t run on vm1.
Thank you very much for your help!
br
mm