The zone name doesn’t matter (and yes, that’s confusing). The ip address of the endpoint is crucial and it has to be the ip address of the satellite.
The host object has to be in the satellite zone and this is configured at the director. You could verfiy this with icinga2 object list -n wk2016.local.
yeah… this is getting more and more confusing, so what icinga2 object list tells me is:
[root@icinga-master icinga2]# icinga2 object list -n wk2016.local
Object ‘wk2016.local’ of type ‘Zone’:
% declared in ‘/var/lib/icinga2/api/packages/director/cc5bce90-b4c1-4b47-b9fe-cbcb68a997a8/zones.d/icinga-master/agent_zones.conf’, lines 11:1-11:38
Object ‘wk2016.local’ of type ‘Endpoint’:
% declared in ‘/var/lib/icinga2/api/packages/director/cc5bce90-b4c1-4b47-b9fe-cbcb68a997a8/zones.d/icinga-master/agent_endpoints.conf’, lines 11:1-11:42
__name = “wk2016.local”
host = “192.168.10.58”
% = modified in ‘/var/lib/icinga2/api/packages/director/cc5bce90-b4c1-4b47-b9fe-cbcb68a997a8/zones.d/icinga-master/agent_endpoints.conf’, lines 12:5-12:25
log_duration = 0
% = modified in ‘/var/lib/icinga2/api/packages/director/cc5bce90-b4c1-4b47-b9fe-cbcb68a997a8/zones.d/icinga-master/agent_endpoints.conf’, lines 13:5-13:21
Object ‘wk2016.local’ of type ‘Host’:
% declared in ‘/var/lib/icinga2/api/packages/director/cc5bce90-b4c1-4b47-b9fe-cbcb68a997a8/zones.d/icinga-master/hosts.conf’, lines 24:1-24:38
__name = “wk2016.local”
action_url = “”
address = “192.168.10.58”
% = modified in ‘/var/lib/icinga2/api/packages/director/cc5bce90-b4c1-4b47-b9fe-cbcb68a997a8/zones.d/icinga-master/hosts.conf’, lines 28:5-28:28
address6 = “”
check_command = “hostalive”
% = modified in ‘/var/lib/icinga2/api/packages/director/cc5bce90-b4c1-4b47-b9fe-cbcb68a997a8/zones.d/director-global/host_templates.conf’, lines 6:5-6:31
check_interval = 300
check_period = “”
check_timeout = null
command_endpoint = “”
display_name = “wk2016”
% = modified in ‘/var/lib/icinga2/api/packages/director/cc5bce90-b4c1-4b47-b9fe-cbcb68a997a8/zones.d/icinga-master/hosts.conf’, lines 27:5-27:34
enable_active_checks = true
enable_event_handler = true
enable_flapping = false
enable_notifications = true
enable_passive_checks = true
enable_perfdata = true
event_command = “”
flapping_threshold = 0
flapping_threshold_high = 30
flapping_threshold_low = 25
groups = [ “CUST1-Group” ]
% = modified in ‘/var/lib/icinga2/api/packages/director/cc5bce90-b4c1-4b47-b9fe-cbcb68a997a8/zones.d/icinga-master/hosts.conf’, lines 29:5-29:27
Then I went into the icinga director and tried to select the correct zone for the host, namely satellite-zone, however I can only chose the master zone …
I’d assume you didn’t run kick start wizard after you added the satellite’s objects to your zones.conf. And that’s the reason why is does not appear in the list.
BTW: For better readability please format your posts as described here.
The error message is clear “Please change the endcoding…” means you didn’t create the director database with CREATE DATABASE director CHARACTER SET 'utf8';
You have to create “kickstart.ini” under the path: /etc/icingaweb2/modules/director
Then run:
icingacli director kickstart run
Go into the webinterface Icinga-Director → Activitylogs and accept.
Now I am able to set the host wk2016.local to the z one “satellite”.
However, still it looks as though the icinga-master server tries to check the wk2016 server… When I have a look at the host I can see that “check-source” is set to icinga-master for the “hostalive” plugin. Where can I set this to the satellite-server?
Check source is only updated when a check is triggered to run. Maybe you did not wait long enough? You still can verify the host object with icinga2 object list... and it need to have the satellite as zone.
sorry for the late reply what I had some (well earned) holidays
So first thing I did is check if satellite’s cert and master’s cert is the same:
So this looks good.
However, if I want to use pki tools (on ubuntu) to check the certs in detail, I get:
[quote]root@monitoring:/var/lib/icinga2/certs# pki verify --cacert ca.crt
FileNotFoundError: [Errno 2] No such file or directory: ‘/usr/share/pki/java-home/bin/java’
[/quote]
Java is installed and java_home is exported:
Strictly no icinga problem, but maybe you stumbled accross that one as well using PKI on ubuntu?