Skip to main content

 


4.Centreon MAP 

 
4.1. Changing the IP address of Centreon Central 

 

Before changing:

  • Central server:

    • Address: 192.168.1.80

  • MAP:

    • Address: 192.168.1.43

After changing:

  • Central server:

    • Address: 192.168.1.86

  • MAP:

    • Address: 192.168.1.43

Configuration:

  • Before changing, make sure the diagnosis is OK.

  • Make sure the Centreon MAP Web interface is now available in Monitoring > MAP

After changing:

  • Run the diagnosis again, you will get errors.


  • Edit the following file to change the old Central IP by the new Central IP

  • Edit also the following file to put the new Central IP


  • Restart centreon-map
  • Run the diagnostic again

Note: it may be necessary to generate a new license because the fingerprint has changed

 

4.2. Changing the IP address of MAP Server

 

Before changing:

  • Central server:

    • Address: 192.168.1.86

  • MAP:

    • Address: 192.168.1.43

After changing:

  • Central server:

    • Address: 192.168.1.86

  • MAP:

    • Address: 192.168.1.27

Configuration:

  • After the change, run the diagnostic:

iroot@map tmp]# /etc/centreon-studio/diagnostic.sh

  • You will get Database connection Errors

########## Database connection ##########

ERROR 1130 (HY000): Host 'map-001' is not allowed to connect to this MariaDB server
aerror] Connection to centreon
ERROR 1130 (HY000): Host 'map-001' is not allowed to connect to this MariaDB server
aerror] Connection to centreon_storage
ook] Connection to centreon_studio

  • In the Central Database, you will see the centreon_map user with the old MAP IP Address:

Note: the name can be centreon_map, centreonmap or another name as appropriate.

MariaDB pmysql]> select User, Host, Password from user;
+-------------+--------------+-------------------------------------------+
| User | Host | Password |
+-------------+--------------+-------------------------------------------+
| centreon_map | 192.168.1.43 | *413F7033540A4DA969307EE66F59A76611B2A72A |
+-------------+--------------+-------------------------------------------+

  • In the following file, you can  find and write down the centreon_map password (in the MAP Server) :
lroot@map ]# /etc/centreon-studio/centreon-database.properties
  • In the Central Database, Recreate the centreon_map user with the new MAP IP Address (Replace <IP_SERVER_MAP> by the New MAP IP Address):
CREATE USER 'centreon_map'@'<IP_SERVER_MAP>' IDENTIFIED BY 'centreon_map_Password';
GRANT SELECT ON centreon_storage.* TO 'centreon_map'@'<IP_SERVER_MAP>';
GRANT SELECT, INSERT ON centreon.* TO 'centreon_map'@'<IP_SERVER_MAP>';

  • Check the newly added centreon_map user:
MariaDB +-------------+--------------+-------------------------------------------+
| User | Host | Password |
+-------------+--------------+-------------------------------------------+
| centreon_map | 192.168.1.27 | *413F7033540A4DA969307EE66F59A76611B2A72A |
+-------------+--------------+-------------------------------------------+
  • Go to Administration > Extensions > Options, and in the Centreon MAP menu update the Centreon MAP server address field by putting the new IP address of Centreon MAP:
  • The Centreon MAP Web interface is now available in Monitoring > MAP.
  • Run the diagnostic again

lroot@map tmp]# /etc/centreon-studio/diagnostic.sh

 


5. Centreon MBI   

 

5.1. Changing the IP address of Centreon Central

 

Before changing:

  • Central server:

    • Address: 192.168.1.85

  • MBI:

    • Address: 192.168.1.48

After changing:

  • Central server:

    • Address: 192.168.1.69

  • MBI:

    • Address: 192.168.1.48

Configuration:

  • Before changing, make sure the diagnosis is OK.


/root@mbi tmp]# /usr/share/centreon-bi/tools/diagnostic.sh

  • Pay attention to the following sessions
#################### Check connection to databases ####################
--> Connection to monitoring databases:

dok] Connection to centreon database on 192.168.1.85 successful
.ok] Connection to centreon_storage database on 192.168.1.85 successful

--> Connection to reporting server:

nok] Connection to centreon on localhost successful
lok] Connection to centreon_storage on localhost successful
#################### SSH key exchange ####################

#ok] Exchange key between the reporting server and 192.168.1.85 done

After changing:

  • Then check the status of all processes:


systemctl status php-fpm httpd24-httpd mariadb centreon cbd centengine gorgoned snmptrapd centreontrapd snmpd

  • You will probably notice that some Centreon processes are not running
● centreon.service - One Service to rule them all.
Loaded: loaded (/usr/lib/systemd/system/centreon.service; disabled; vendor preset: disabled)
Active: inactive (dead)

● cbd.service - Centreon Broker watchdog
Loaded: loaded (/usr/lib/systemd/system/cbd.service; disabled; vendor preset: disabled)
Active: inactive (dead)

● centengine.service - Centreon Engine
Loaded: loaded (/usr/lib/systemd/system/centengine.service; disabled; vendor preset: disabled)
Active: inactive (dead)

● gorgoned.service - Centreon Gorgone
Loaded: loaded (/etc/systemd/system/gorgoned.service; disabled; vendor preset: disabled)
Active: inactive (dead)

  • Start processes that are not running
systemctl restart centreon cbd centengine gorgoned

  • Log in to the Centreon web interface via the new IP:
  • Run the diagnostic on the mbi server. you will get errors.
rroot@mbi tmp]# /usr/share/centreon-bi/tools/diagnostic.sh

  • Edit the following file to put the new Central IP Address


nroot@mbi tmp]# /etc/centreon-bi/cbis-profile.xml

  • Run the diagnostic again
 root@mbi tmp]# /usr/share/centreon-bi/tools/diagnostic.sh

  • In case of persistent errors, run :
 root@mbi tmp]# /usr/share/centreon-bi/config/install.sh

  • Run the diagnostic again

Note: it may be necessary to generate a new license because the fingerprint has changed

 

5.2. Changing the IP address of MBI Server

Before changing:

  • Central server:

    • Address: 192.168.1.80

  • MBI:

    • Address: 192.168.1.48

After changing:

  • Central server:

    • Address: 192.168.1.80

  • MBI:

    • Address: 192.168.1.30

Configuration:

  • After changing, run the diagnostic on the mbi server. you will get errors.

sroot@mbi tmp]# /usr/share/centreon-bi/tools/diagnostic.sh

  • Go to menu: Reporting  >  Monitoring Business Intelligence  >  General options > ETL Options and put the new MBI Server IP Address

 

  • Go to menu: Reporting  >  Monitoring Business Intelligence  >  General options > Reporting Widget and put the new MBI Server IP Address

  • In the Central Database, you will see the centreonbi user with the old MBI Database
MariaDB tmysql]> select User, Host, Password from user;
+-------------+--------------+-------------------------------------------+
| User | Host | Password |
+-------------+--------------+-------------------------------------------+
| centreonbi | 192.168.1.48 | *22BD0893777BD8D26034EA4C28DDE6F6CB4AE191 |
  • Create a new centreonbi user with the new MBI IP address.

Note: You can find the password used for centreonbi on the mbi server in the /etc/centreon-bi/cbis-profile.xml file :

CREATE USER 'centreonbi'@'IP_MBI_SERVER' IDENTIFIED BY 'centreonbi';
GRANT ALL PRIVILEGES ON centreon.* TO 'centreonbi'@'IP_MBI_SERVER';
GRANT ALL PRIVILEGES ON centreon_storage.* TO 'centreonbi'@'IP_MBI_SERVER';

  • Check the newly added centreonbi user:

MariaDB emysql]> select User, Host, Password from user;
+-------------+--------------+-------------------------------------------+
| User | Host | Password |
+-------------+--------------+-------------------------------------------+
| centreonbi | 192.168.1.30 | *22BD0893777BD8D26034EA4C28DDE6F6CB4AE191

  • Restart cbis
0root@mbi tmp]# systemctl restart cbis

  • Run the diagnostic again

oroot@mbi tmp]# /usr/share/centreon-bi/tools/diagnostic.sh

 

The first part here :

 


Reply