xl3von
March 24, 2023, 8:22am
1
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
rsx
(Roland Sommer)
March 24, 2023, 9:42am
2
Hosts of satellites are consolidated at the master but not in the opposite direction. This is by design.
xl3von
March 24, 2023, 9:55am
3
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?
Pooh
(Antony Stone)
March 24, 2023, 10:11am
4
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.
xl3von
March 24, 2023, 10:19am
5
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}
Pooh
(Antony Stone)
March 24, 2023, 10:35am
6
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?
xl3von
March 24, 2023, 12:17pm
8
It doesnt output anything.
xl3von
March 24, 2023, 12:17pm
9
Yes, is that the problem?
xl3von
March 27, 2023, 6:27am
10
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
xl3von
March 27, 2023, 9:16am
12
isnt it possible to use icingaweb on a satellite?
rsx
(Roland Sommer)
March 27, 2023, 11:21am
13
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.
xl3von
March 27, 2023, 11:44am
14
Alright thanks for the input. I am going to try it with seperate DB’s.