Master/Satellite Host display

Hello Everyone
I have a quick question. If i have a master/satellite setup isnt it possible that i have hosts in my master which doesnt get displayed in the icingaweb2 of my satellite. I thought it should be automatically like that but now i tested it and i was wrong. Is there a way to do it?

Best regards xl3von

Hosts of satellites are consolidated at the master but not in the opposite direction. This is by design.

Alright but my problem is still. In /zones.d/master i have defined one host which i only want to be displayed on the master node. But still its being displayed on my satellite node as well. When i click source it gets an error message. Isnt it possible so that the host i defined in the master folder doesnt get displayed on the satellite?

Firstly, please tell us what the error message says.

Secondly, show us what this command outputs on the satellite:

ls -l /etc/icinga2/zones.d /var/lib/icinga2/api/zones/

Antony.

Output from ls -l /etc/icinga2/zones.d /var/lib/icinga2/api/zones/
/var/lib/icinga2/api/zones/:
total 8
drwx------ 2 nagios nagios 4096 Mär 24 08:57 global-templates
drwx------ 3 nagios nagios 4096 Mär 24 08:57 satellite

Error Message on source of Host which schouldnt even be displayed on the satellite.



Can't send external Icinga command: 404 No objects found.

#0 /usr/share/icingaweb2/modules/icingadb/library/Icingadb/Command/Transport/ApiCommandTransport.php(301): Icinga\Module\Icingadb\Command\Transport\ApiCommandTransport->sendCommand()
#1 /usr/share/icingaweb2/modules/icingadb/library/Icingadb/Command/Transport/CommandTransport.php(111): Icinga\Module\Icingadb\Command\Transport\ApiCommandTransport->send()
#2 /usr/share/icingaweb2/modules/icingadb/application/controllers/HostController.php(89): Icinga\Module\Icingadb\Command\Transport\CommandTransport->send()
#3 /usr/share/icingaweb2/modules/icingadb/library/Icingadb/Web/Controller.php(490): Icinga\Module\Icingadb\Controllers\HostController->sourceAction()
#4 /usr/share/php/Icinga/Web/Controller/Dispatcher.php(76): Icinga\Module\Icingadb\Web\Controller->dispatch()
#5 /usr/share/icingaweb2/library/vendor/Zend/Controller/Front.php(937): Icinga\Web\Controller\Dispatcher->dispatch()
#6 /usr/share/php/Icinga/Application/Web.php(290): Zend_Controller_Front->dispatch()
#7 /usr/share/php/Icinga/Application/webrouter.php(105): Icinga\Application\Web->dispatch()
#8 /usr/share/icingaweb2/public/index.php(4): require_once(String)
#9 {main}


Okay, what do you get on the satellite from:

grep -ri NameOfHost /var/lib/icinga2/api/zones/

Put the actual name of the host you do not expect to see on the Satellite in
place of NameOfHost.

Antony.

do you have icingadb installed on the satellite as well?

It doesnt output anything.

Yes, is that the problem?

I now disabled icingadb on my satellite node but i have still the other hosts displayed on my satellite.

your satellite should’t have anything to display host or services, no icingaweb2

isnt it possible to use icingaweb on a satellite?

It’s not intended but it works (at one of our customers since 5 years). But master and satellite(s) needs to have its own dedicated db, what you are describing sounds like kind of a shared setup.

Alright thanks for the input. I am going to try it with seperate DB’s.