Solved

Migration 19.10 - 23.10 Problem

  • 3 July 2024
  • 1 reply
  • 15 views

Badge +1

Hello,

after upgrading from 19.10 to 23.10 i’m not able to restart centengine over the web interface on Central server. On poller is working ok.

 

centengine restart from centreon-gorgone user is working

 

i turn on debug on gorgone and this is output when i try restart centengine:

“2024-07-03 16:12:14 - DEBUG - [legacycmd] Processing file '/var/lib/centreon/centcore//1720015930.4536-externalcommand.cmd_read'
2024-07-03 16:12:14 - INFO - [legacycmd] Handling command 'RESTART', Target: '2'
2024-07-03 16:12:14 - DEBUG - [legacycmd] internal message: [COMMAND] [0d765c1b11d6a95f44d356015d0f0c19f64c94902b908c17fd42c2c39a68fcc079d650295cbd7ac8c0177ab484586bb0d19a2fca5d6e1258c475f403045af3dc] [2] {"logging":0,"content":[{"metadata":{"centcore_cmd":"RESTART","centcore_proxy":1},"command":"sudo service centengine restart"}]}
2024-07-03 16:12:14 - DEBUG - [core] Message received internal - [COMMAND] [0d765c1b11d6a95f44d356015d0f0c19f64c94902b908c17fd42c2c39a68fcc079d650295cbd7ac8c0177ab484586bb0d19a2fca5d6e1258c475f403045af3dc] [2] {"logging":0,"content":[{"metadata":{"centcore_cmd":"RESTART","centcore_proxy":1},"command":"sudo service centengine restart"}]}
2024-07-03 16:12:14 - DEBUG - [legacycmd] Event: [ACK] [] {"data":{"error":"unknown_action","message":"action 'COMMAND' is unknown"},"code":1}”

 

In Configuration - Pollers in Actions gorgone configuration is write id: 1 but central has server_id:2

 

During migration i follow centreon documentation.

icon

Best answer by marek.polacik 4 July 2024, 09:07

View original

1 reply

Badge +1

Ok so with this migration

https://docs.centreon.com/docs/developer/developer-gorgone-migrate-from-centcore/

it’s generate config.yaml file in centreon-gorgone directory with configuration

But there should be this:

name: config.yaml
description: Configuration brought by Centreon Gorgone package. SHOULD NOT BE EDITED! USE CONFIG.D DIRECTORY!
configuration: !include /etc/centreon-gorgone/config.d/*.yaml

Now is working

Reply