Hello,
i tried to roll back the cluster original config with xi_restore.sh script without success.
I could check it with the nagiosxi database xi_users table content (it contain more than 50 rows with our production database and only 1 row if i restore our orginal state)
crm resource stop g_nagios
Node myhuslhqbpngxkp.hu.money.ge.com (2): online
p-drbd-app_fs (ocf::linbit:drbd): Master
Node myhuslhqbpngxvp.hu.money.ge.com (1): online
p-drbd-app_fs (ocf::linbit:drbd): Slave
Inactive resources:
Resource Group: g_nagios
p_httpd (ocf:

apache): Stopped (disabled)
p_fs_drbd (ocf:

Filesystem): Stopped (disabled)
p_mysql (ocf:

mysql): Stopped (disabled)
p_crond (systemd:crond): Stopped (disabled)
p_ndo2db (systemd:ndo2db): Stopped (disabled)
p_npcd (systemd:npcd): Stopped (disabled)
p_nagios (systemd:nagios): Stopped (disabled)
p_virtip (ocf:

IPaddr2): Stopped (disabled)
p_virtsrcip (ocf:

IPsrcaddr): Stopped (disabled)
crm resource start g_nagios
Last updated: Thu Jan 23 08:19:22 2020 Last change: Thu Jan 23 08:19:06 2020 by root via cibadmin on
2 nodes and 11 resources configured
Node xxx (2): online
p-drbd-app_fs (ocf::linbit:drbd): Master
p_crond (systemd:crond): Started
p_ndo2db (systemd:ndo2db): Started
p_npcd (systemd:npcd): Started
p_nagios (systemd:nagios): Started
p_virtsrcip (ocf:

IPsrcaddr): Started
p_fs_drbd (ocf:

Filesystem): Started
p_virtip (ocf:

IPaddr2): Started
p_httpd (ocf:

apache): Started
p_mysql (ocf:

mysql): Started
Node xxy (1): online
p-drbd-app_fs (ocf::linbit:drbd): Slave
As i see after that crm restart, the mysql connection working well from cli:
[root@host ~]# mysql -unagiosql -pn@gweb
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 1
Server version: 5.5.64-MariaDB MariaDB Server
MariaDB [(none)]> use nagiosql
Database changed
MariaDB [nagiosql]> Bye
[root@host ~]# mysql -undoutils -pn@gweb
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 2
Server version: 5.5.64-MariaDB MariaDB Server
MariaDB [(none)]> use nagios
Database changed
MariaDB [nagios]> Ctrl-C -- exit!
Aborted
[root@host ~]# mysql -unagiosxi -pn@gweb
Your MariaDB connection id is 3
Server version: 5.5.64-MariaDB MariaDB Server
MariaDB [(none)]> use nagiosxi
Database changed
MariaDB [nagiosxi]> Ctrl-C -- exit!
From the side of the browser i become the following error, whe i push the "Access NagiosXI" blue button ath the start:
Database Error
Connection failed: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13)DB:localhost, DBUSER: nagiosxi, DBPASS: DBNAME:nagiosxi A database connection error has been detected, please follow the repair prompt below. If the issue persists, please contact Nagios support.
Run the following from the CLI as root to attempt to repair the DB....
Actually not contacted LinBit, because all the service running now... I think the question is more reliable the side of nagios rather than linbit, but because the question i open a ticket at the side of the LinBit also...
Best regards,
Ferenc