Icinga stand-alone master installation and dependency issue

Hello Icinga community,

We currently have an Icinga server running on an old Linux system (CentOS 4 or 5).
As such, a colleague of mine, who left already, has started with replacing this server.

An Oracle Linux 8 server was installed to replace this server. (Please see versions of already installed Icinga and components below)
I am not very familiar with Icinga installation and export/import process, yet I got the luxury of continuing this process.

This new server is supposed to be a stand-alone master with no satellites, one master zone and no fancy stuff. The old server will be powered down once the new server is up and running.

The new server already - seemingly - contains the hosts, services, commands etc., but there seems to be a weird connection between the two servers (maybe it was made when settings and hosts were imported to the new server from the old one.)

For example, when I try to add or change a host, the dashboard of the old server fills up with all kinds of critical notifications for a minute or two and then they disappear.

On the new server, under Icinga infrastructure on director, the “master” zone (which is considered as non-editable external object) is pointing to the old server as well as in the endpoints section which contains only the old server (with a symbol next to it indicating it as the config master - still).

I’ve tried to follow up with some advice I read on other threads like running “icinga2 node wizard” command through CLI, but the behavior is still the same.

  • Icinga Version used: 2.13.2-1
  • The new server is running Oracle Linux 8
  • Enabled features: api checker command ido-mysql mainlog notification syslog
  • Icinga Web 2 version 2.9.5 (PHP 7.4.30, php-library 0.7.0, php-thirdparty 0.10.0, director 1.8.0,
    doc 2.9.5, incubator 0.6.0, ipl v0.3.0, migrate 2.9.5, monitoring 2.9.5, reactbundle 0.7.0)

Sorry for the long description, as I wanted to explain the case as much as I could.
Any help or comment pointing to the right direction will be much appreciated.

Note: English is not my native language - Sorry for any grammar mistakes.

Sincerely,
A very frustrated IT guy.

It looks like both systems use the same IDO database. As I would assume this is not the only misconfiguration, I’d start from scratch and build a complete new installation. And then use director’s basket function to backup and restore its database. If your old system is too old and does not have the basket function already, I’d backup and restore director’s database (although it’s most properly not supported).

Hello Roland,

First, thank you for your reply and time.

I was thinking about starting from scratch, but as I said I’m not very familiar with the process.
My knowledge is related more to the front end of Icinga application - i.e., adding hosts and configuring checks.
I did install Icinga once, but it was for testing purposes only, and it took me a few times of trial and error until I had the basic out-of-the-box installation up and running.

Adding the necessary exports and imports, as you said, to the equation is completely out of my knowledge.

Do you know of any good step-by-step manual (preferably using Oracle Linux) for installing Icinga from scratch (with a reference to the export/import process)?
I think that, based on what you’ve said, trying to salvage a working environment from the current state will be a waste of time.

I’ve checked the old server and I can see something called configuration basket, if this was what you meant.

Regards,
A slightly more hopeful IT guy

No. Maybe you try icinga-installer. Haven’t been trying myself but sounds promising.

Thank you for the Github suggestion. I’ll test it and see whether it is a feasible solution for our environment.

If I manage to get through this, I will post a manual for other users to use.
Right now, it seems like a distant dream. :crazy_face:

FYI: for whom ever finds this post -
There is a very well written manual to get a very basic up and running instance of Icinga.

There is much to do still, like installing director, but at least I have a new “out-of-the-box” Icinga server.

This is the link:
Installing basic icinga instance on Oracle Linux

1 Like