Unfortunately something bad happened due to my HA setup which went unnoticed until now. I have duplicate entries in the database for my hosts.
I completely uninstalled the second master and removed all icinga2 traces for now so I can clean up everything. Meaning I am in a single master setup now.
I already deleted all hosts from the director which were affacted but the duplicate entries remained in the database (and are still shown in icingaweb with all services associated).
How can I properly clean up my database now? I have only found this issue but no help how to clean up the mess I produced: Icinga2db Web show double object · Issue #532 · Icinga/icingadb · GitHub
I guess I have to remove from host where environmental_id the wrong one. But where else in the database do I have to look for more traces?
EDIT: What I also do not understands, what’s wrong with the encoding?
+----------------------+------------------------------------------+
| id | name |
+----------------------+------------------------------------------+
| ,�y���^��$��t6.{�ܮ | 2cfb79e0efef5e1caa8124d3fd74362e7bf3dcae |
| �
�łF�␦��
5ޠ�@�O | 900ce7c58246ee9b1afce90a1035dea0de40d44f |
+----------------------+------------------------------------------+
character set
SHOW VARIABLES LIKE 'character_set%';
+--------------------------+----------------------------+
| Variable_name | Value |
+--------------------------+----------------------------+
| character_set_client | utf8mb4 |
| character_set_connection | utf8mb4 |
| character_set_database | utf8mb4 |
| character_set_filesystem | binary |
| character_set_results | utf8mb4 |
| character_set_server | utf8mb4 |
| character_set_system | utf8mb3 |
| character_sets_dir | /usr/share/mysql/charsets/ |
+--------------------------+----------------------------+
collation
+----------------------+--------------------+
| Variable_name | Value |
+----------------------+--------------------+
| collation_connection | utf8mb4_general_ci |
| collation_database | utf8mb4_unicode_ci |
| collation_server | utf8mb4_unicode_ci |
+----------------------+--------------------+
icingadb
SELECT default_character_set_name FROM information_schema.SCHEMATA WHERE schema_name = "icingadb";
+----------------------------+
| default_character_set_name |
+----------------------------+
| utf8mb4 |
+----------------------------+