On Thursday 16 Feb 2017 at 14:57, Brad Bendy wrote: > That makes sense, not sure what I was thinking. I just moved the files > and the same thing is happening. > > zones.d/testclient.dom.net/hosts.conf is the new path
You moved services.conf as well? > I restarted the master and then removed the files in /var/lib/icinga2/api > and restarted the client, it gets the config but still no local checks. Try using "icinga2 object list --type host" and "icinga2 object list --type service" on the client to see whether it really has all the config you expect. Antony. > On Thu, Feb 16, 2017 at 2:07 AM, Antony Stone wrote: > > On Thursday 16 Feb 2017 at 02:59, Brad Bendy wrote: > >> Hi, > >> > >> Ive got a new Icinga v2.6.2 install that im trying to get the "top > >> down config sync" config working on. > >> > >> In the zones.conf on the master I have: > >> > >> object Zone "testclient.dom.net" { > >> > >> endpoints = [ "testclient.dom.net" ] > >> parent = "master" > >> > >> } > > > > So, the master thinks the endpoint testclient.dom.net exists in the > > testclient.dom.net zone. > > > >> In the zones.conf on the client I have: > >> > >> object Zone "testclient.dom.net" { > >> > >> endpoints = [ "testclient.dom.net" ] > >> parent = "master" > >> > >> } > > > > The client believes the same, and knows its parent is the master. > > > >> On the master I have created the zones.d/master/fqdn/services.conf > > > >> file and currently have this in it: > > The file is under zones.d/master and therefore does nto get sent to the > > testclient. > > > >> apply Service for (disk => config in host.vars.disks) { > >> > >> import "generic-service" > >> host_name = "testclient.dom.net" > >> check_command = "my-check_disk" > >> vars += config > >> vars.disk_wfree = "9%" > >> vars.disk_cfree = "4%" > >> > >> } > > > > And yet it's the testclient you want the check to apply to. > > > >> This all works, and the 3 disk checks show up but show as pending and > >> the "check source" shows the masters FQDN not the remote host. (It was > >> performing checks before when the zone was set to master instead of > >> testclient.dom.net) > > > > Indeed. > > > > Move zones.d/master/fqdn to zones.d/testclient.dom.net/fqdn and it should > > work. You have to create the config files under the name of the zone > > which the machines to be checked exist in. > > > > > > Antony. -- Ramdisk is not an installation procedure. Please reply to the list; please *don't* CC me. _______________________________________________ icinga-users mailing list icinga-users@lists.icinga.org https://lists.icinga.org/mailman/listinfo/icinga-users