Skip to main content

Be aware that depending on your Centreon installation and the packages that are present, this procedure may not work (we are investigating this bug). In all cases, make sure you have a snapshot of your machine before starting the procedure.

If the Debian upgrade wants to remove Centreon packages, answer NO, stop the procedure and contact our support team to provide them with the output of the following command:

apt list --installed > /tmp/installed_packages.log

 

With the upcoming release of Centreon 24.10, support for Debian 11 will officially come to an end. If you're running Centreon on Debian 11 and want to upgrade to version 24.10, you need to migrate to Debian 12 first. This guide will walk you through the steps to ensure a smooth in-place upgrade of your operating system from Debian 11 (Bullseye) to Debian 12 (Bookworm). You can also refer to Debian’s official documentation.

Pre-Migration Checklist

Before you begin, make sure to take the following precautions:

  • Back up essential data: Ensure you have recent backups of all critical data and configurations.
  • Check for system requirements: Verify that your hardware and software meet the compatibility requirements for Debian 12.
  • Read the release notes: Review the official Debian release notes for Debian 12 to understand any new features, deprecated functionalities, and important considerations.
  • Inform stakeholders: Notify any impacted users or stakeholders about the planned upgrade and any expected downtime during the process.

Step-by-Step Migration Guide

Step 1: Upgrade Centreon to version 24.04.x

Update or upgrade your Centreon to the latest minor 24.04.x version.

Step 2: Update Current System

Run the whole procedure as root.

Ensure your current Debian 11 system is updated to the latest package versions. Your version of Debian must be Debian 11.11:

apt update
apt upgrade
apt dist-upgrade

If the centreon-web package has been updated, please follow the steps in the Centreon interface.

Reboot your system to ensure all updates are applied:

apt autoremove
apt autoclean
reboot

At this stage, make sure there are no more updates available and you have a fully functioning Centreon platform.

Step 3: Update APT Sources

In the source list, replace any occurrences of bullseye with bookworm:

sed -i 's/bullseye/bookworm/g' /etc/apt/sources.list
sed -i 's/bullseye/bookworm/g' /etc/apt/sources.list.d/centreon*
sed -i 's/bullseye/bookworm/g' /etc/apt/sources.list.d/mariadb*
sed -i 's/bullseye/bookworm/g' /etc/apt/sources.list.d/sury-php*

Step 4: Perform the Upgrade

Update the APT package lists to the new Debian 12 sources:

apt clean
apt update

Upgrade the existing package without installing new ones:

apt upgrade --without-new-pkgs

Create the following file: /etc/apt/preferences.d/centreon.pref, and add:

Package: centreon*
Pin: release n=bookworm
Pin-Priority: 1001

Package: libzmq3-dev
Pin: origin packages.centreon.com
Pin-Priority: 1001

Package: libzmq5
Pin: origin packages.centreon.com
Pin-Priority: 1001

Upgrade to Debian 12:

apt upgrade

This process will take some time, so please be patient as all packages are upgraded to their Debian 12 versions. Follow any on-screen prompts to accept changes or confirm the installation of new packages.

You can then delete the pref file:

rm -f /etc/apt/preferences.d/centreon.pref

Uninstall all Perl packages and lib and purge the configuration: for all packages in

for package in $(dpkg-query -l | grep perl | grep -v centreon | awk -F " " '{print $2}')
do
dpkg -r --force-depends $package
dpkg --purge --force-depends $package
done

Now reinstall the necessary packages:

apt --fix-broken install

Step 5 : Finalize Bookworm installation

apt full-upgrade
apt autoremove
apt autoclean
reboot

Step 6: Verify the Upgrade

Once your system reboots, verify that the upgrade was successful by checking the Debian version:

lsb_release -a

The output should indicate that your system is now running Debian 12 (Bookworm).

Post-Migration Considerations

After upgrading to Debian 12, here are a few additional steps to ensure everything is functioning correctly:

  • Verify that all services and applications are working as expected.
  • Check for any package-specific migration instructions or additional configuration steps in the release notes.
  • Monitor system logs for any errors or warnings that may need attention.

Thank you for using Centreon and for your continued dedication to maintaining a robust and secure monitoring environment!

Hello,

I've followed the manual to update, and now when I restart the pollers, only the central poller restarts, not the others.

 

Do you know what could be causing this?

Thanks, best regards.


Hello,

this is what the gorgoned log on the central server says

2024-11-12 13:33:04 - ERROR - [legacycmd] Cannot process message type 'SENDCBCFGthrowing it away.
2024-11-12 13:33:49 - ERROR - [legacycmd] Cannot process message type 'SENDCBCFGthrowing it away.
 

 

and tcpdump on port 5556 on the poller shows no activity.

Thanks, best regards.

 


Hi @dmembibre can you cehck the status of gorgoned process on your distant poller?


Hi @Laurent ,

 

 


Can you enable debug mode on both gorgoned process via /etc/sysconfig/gorogned file and restart them.

Then try to export configuration through UI and check /var/log/centreon-gorgone/gorgoned.log files.

Regards,


Hi,

Central:

2024-11-13 09:34:15 - DEBUG - [legacycmd] Processing file '/var/lib/centreon/centcore.cmd_read'
2024-11-13 09:34:15 - INFO - [legacycmd] Handling command 'SENDCFGFILE', Target: '2'
2024-11-13 09:34:15 - DEBUG - [legacycmd] internal message: [remotecopy] [13f21eb4cb7164885385c3b4f555d2bc69f658b6e5c09039470ca311b1c32ae624735c81d74acd716f7814e3b09d3bb8b123e9fbaf8aa979cf514bb36bbf592b] [2] {"logging":0,"content":{"group":"centreon","owner":"centreon-gorgone","source":"/var/cache/centreon//config/vmware/2/centreon_vmware.json","metadata":{"centcore_proxy":1,"centcore_cmd":"SENDCFGFILE"},"cache_dir":"/var/cache/centreon/","destination":"/etc/centreon/centreon_vmware.json"}}
2024-11-13 09:34:15 - DEBUG - [legacycmd] internal message: [remotecopy] [13f21eb4cb7164885385c3b4f555d2bc69f658b6e5c09039470ca311b1c32ae624735c81d74acd716f7814e3b09d3bb8b123e9fbaf8aa979cf514bb36bbf592b] [2] {"content":{"metadata":{"centcore_cmd":"SENDCFGFILE","centcore_proxy":1},"destination":"/etc/centreon-engine//","cache_dir":"/var/cache/centreon/","group":"centreon-engine","source":"/var/cache/centreon//config/engine/2","owner":"centreon-engine"},"logging":0}
2024-11-13 09:34:15 - DEBUG - [legacycmd] internal message: [remotecopy] [13f21eb4cb7164885385c3b4f555d2bc69f658b6e5c09039470ca311b1c32ae624735c81d74acd716f7814e3b09d3bb8b123e9fbaf8aa979cf514bb36bbf592b] [2] {"content":{"cache_dir":"/var/cache/centreon/","destination":"/etc/centreon-broker/","metadata":{"centcore_cmd":"SENDCFGFILE","centcore_proxy":1},"owner":"centreon-broker","source":"/var/cache/centreon//config/broker/2","group":"centreon-broker"},"logging":0}
2024-11-13 09:34:15 - INFO - [legacycmd] Handling command ''SENDCBCFG', Target: '2'
2024-11-13 09:34:15 - ERROR - [legacycmd] Cannot process message type 'SENDCBCFGthrowing it away.
2024-11-13 09:34:15 - DEBUG - [core] Message received internal - [remotecopy] [13f21eb4cb7164885385c3b4f555d2bc69f658b6e5c09039470ca311b1c32ae624735c81d74acd716f7814e3b09d3bb8b123e9fbaf8aa979cf514bb36bbf592b] [2] {"logging":0,"content":{"group":"centreon","owner":"centreon-gorgone","source":"/var/cache/centreon//config/vmware/2/centreon_vmware.json","metadata":{"centcore_proxy":1,"centcore_cmd":"SENDCFGFILE"},"cache_dir":"/var/cache/centreon/","destination":"/etc/centreon/centreon_vmware.json"}}
2024-11-13 09:34:15 - DEBUG - [legacycmd] Processing file '/var/lib/centreon/centcore//1731490453.3841-externalcommand.cmd_read'
2024-11-13 09:34:15 - INFO - [legacycmd] Handling command 'ENGINERESTART', Target: '1'
2024-11-13 09:34:15 - DEBUG - [legacycmd] internal message: [actionengine] [2fd678f406b6da184499c7c8ecd16d6ab191bd0938976077ac489c341837bd5523d9519ca8eaf580806fddacf39681d47a8c679e0df43ba1f9a8264e73256aa6] [1] {"content":{"command":"sudo systemctl restart centreon_vmware.service","metadata":{"centcore_proxy":1,"centcore_cmd":"ENGINERESTART"}},"logging":0}
2024-11-13 09:34:15 - DEBUG - [legacycmd] internal message: [actionengine] [2fd678f406b6da184499c7c8ecd16d6ab191bd0938976077ac489c341837bd5523d9519ca8eaf580806fddacf39681d47a8c679e0df43ba1f9a8264e73256aa6] [1] {"content":{"plugins":"/etc/centreon-engine/plugins.json","command":"sudo service centengine restart","metadata":{"centcore_proxy":1,"centcore_cmd":"ENGINERESTART"}},"logging":0}
2024-11-13 09:34:15 - INFO - [legacycmd] Handling command 'ENGINERESTART', Target: '2'
2024-11-13 09:34:15 - DEBUG - [legacycmd] internal message: [actionengine] [c893e515441acfe78192160966f02a044e1d505b7b10c7078c0f8363a489de5a7f5910c687786c0599a0ed09c5b02976fcfc805b9d15ebcebf4e7e2546296c47] [2] {"content":{"command":"sudo systemctl restart centreon_vmware.service","metadata":{"centcore_cmd":"ENGINERESTART","centcore_proxy":1}},"logging":0}
2024-11-13 09:34:15 - DEBUG - [legacycmd] internal message: [actionengine] [c893e515441acfe78192160966f02a044e1d505b7b10c7078c0f8363a489de5a7f5910c687786c0599a0ed09c5b02976fcfc805b9d15ebcebf4e7e2546296c47] [2] {"logging":0,"content":{"plugins":"/etc/centreon-engine//plugins.json","metadata":{"centcore_proxy":1,"centcore_cmd":"ENGINERESTART"},"command":"sudo service centengine restart"}}
2024-11-13 09:34:15 - DEBUG - [core] Message received internal - [remotecopy] [13f21eb4cb7164885385c3b4f555d2bc69f658b6e5c09039470ca311b1c32ae624735c81d74acd716f7814e3b09d3bb8b123e9fbaf8aa979cf514bb36bbf592b] [2] {"content":{"metadata":{"centcore_cmd":"SENDCFGFILE","centcore_proxy":1},"destination":"/etc/centreon-engine//","cache_dir":"/var/cache/centreon/","group":"centreon-engine","source":"/var/cache/centreon//config/engine/2","owner":"centreon-engine"},"logging":0}
2024-11-13 09:34:15 - DEBUG - [legacycmd] Event: [ack] [13f21eb4cb7164885385c3b4f555d2bc69f658b6e5c09039470ca311b1c32ae624735c81d74acd716f7814e3b09d3bb8b123e9fbaf8aa979cf514bb36bbf592b] {"data":{"error":"no_proxy","message":"no proxy configured. cannot manage target."},"code":1}
2024-11-13 09:34:15 - DEBUG - [core] Message received internal - [remotecopy] [13f21eb4cb7164885385c3b4f555d2bc69f658b6e5c09039470ca311b1c32ae624735c81d74acd716f7814e3b09d3bb8b123e9fbaf8aa979cf514bb36bbf592b] [2] {"content":{"cache_dir":"/var/cache/centreon/","destination":"/etc/centreon-broker/","metadata":{"centcore_cmd":"SENDCFGFILE","centcore_proxy":1},"owner":"centreon-broker","source":"/var/cache/centreon//config/broker/2","group":"centreon-broker"},"logging":0}
2024-11-13 09:34:15 - DEBUG - [legacycmd] Event: [ack] [13f21eb4cb7164885385c3b4f555d2bc69f658b6e5c09039470ca311b1c32ae624735c81d74acd716f7814e3b09d3bb8b123e9fbaf8aa979cf514bb36bbf592b] {"data":{"message":"no proxy configured. cannot manage target.","error":"no_proxy"},"code":1}
2024-11-13 09:34:15 - DEBUG - [core] Message received internal - [actionengine] [2fd678f406b6da184499c7c8ecd16d6ab191bd0938976077ac489c341837bd5523d9519ca8eaf580806fddacf39681d47a8c679e0df43ba1f9a8264e73256aa6] [1] {"content":{"command":"sudo systemctl restart centreon_vmware.service","metadata":{"centcore_proxy":1,"centcore_cmd":"ENGINERESTART"}},"logging":0}
2024-11-13 09:34:15 - DEBUG - [core] Message received internal - [actionengine] [2fd678f406b6da184499c7c8ecd16d6ab191bd0938976077ac489c341837bd5523d9519ca8eaf580806fddacf39681d47a8c679e0df43ba1f9a8264e73256aa6] [1] {"content":{"plugins":"/etc/centreon-engine/plugins.json","command":"sudo service centengine restart","metadata":{"centcore_proxy":1,"centcore_cmd":"ENGINERESTART"}},"logging":0}
2024-11-13 09:34:15 - DEBUG - [legacycmd] Event: [ack] [13f21eb4cb7164885385c3b4f555d2bc69f658b6e5c09039470ca311b1c32ae624735c81d74acd716f7814e3b09d3bb8b123e9fbaf8aa979cf514bb36bbf592b] {"code":1,"data":{"message":"no proxy configured. cannot manage target.","error":"no_proxy"}}
2024-11-13 09:34:15 - DEBUG - [legacycmd] Event: [ack] [2fd678f406b6da184499c7c8ecd16d6ab191bd0938976077ac489c341837bd5523d9519ca8eaf580806fddacf39681d47a8c679e0df43ba1f9a8264e73256aa6] {"code":0,"data":null}
2024-11-13 09:34:15 - DEBUG - [core] Message received internal - [actionengine] [c893e515441acfe78192160966f02a044e1d505b7b10c7078c0f8363a489de5a7f5910c687786c0599a0ed09c5b02976fcfc805b9d15ebcebf4e7e2546296c47] [2] {"content":{"command":"sudo systemctl restart centreon_vmware.service","metadata":{"centcore_cmd":"ENGINERESTART","centcore_proxy":1}},"logging":0}
2024-11-13 09:34:15 - DEBUG - [action] Event: [actionengine] [2fd678f406b6da184499c7c8ecd16d6ab191bd0938976077ac489c341837bd5523d9519ca8eaf580806fddacf39681d47a8c679e0df43ba1f9a8264e73256aa6] [] {"content":{"command":"sudo systemctl restart centreon_vmware.service","metadata":{"centcore_proxy":1,"centcore_cmd":"ENGINERESTART"}},"logging":0}
2024-11-13 09:34:15 - DEBUG - [legacycmd] Event: [ack] [2fd678f406b6da184499c7c8ecd16d6ab191bd0938976077ac489c341837bd5523d9519ca8eaf580806fddacf39681d47a8c679e0df43ba1f9a8264e73256aa6] {"code":0,"data":null}
2024-11-13 09:34:15 - DEBUG - [action] Create sub-process
2024-11-13 09:34:15 - DEBUG - [action] Event: [actionengine] [2fd678f406b6da184499c7c8ecd16d6ab191bd0938976077ac489c341837bd5523d9519ca8eaf580806fddacf39681d47a8c679e0df43ba1f9a8264e73256aa6] [] {"content":{"plugins":"/etc/centreon-engine/plugins.json","command":"sudo service centengine restart","metadata":{"centcore_proxy":1,"centcore_cmd":"ENGINERESTART"}},"logging":0}
2024-11-13 09:34:15 - DEBUG - [action] Create sub-process
2024-11-13 09:34:15 - DEBUG - [core] Message received internal - [actionengine] [c893e515441acfe78192160966f02a044e1d505b7b10c7078c0f8363a489de5a7f5910c687786c0599a0ed09c5b02976fcfc805b9d15ebcebf4e7e2546296c47] [2] {"logging":0,"content":{"plugins":"/etc/centreon-engine//plugins.json","metadata":{"centcore_proxy":1,"centcore_cmd":"ENGINERESTART"},"command":"sudo service centengine restart"}}
2024-11-13 09:34:15 - DEBUG - [legacycmd] Event: [ack] [c893e515441acfe78192160966f02a044e1d505b7b10c7078c0f8363a489de5a7f5910c687786c0599a0ed09c5b02976fcfc805b9d15ebcebf4e7e2546296c47] {"code":1,"data":{"error":"no_proxy","message":"no proxy configured. cannot manage target."}}
2024-11-13 09:34:15 - DEBUG - [legacycmd] Event: [ack] [c893e515441acfe78192160966f02a044e1d505b7b10c7078c0f8363a489de5a7f5910c687786c0599a0ed09c5b02976fcfc805b9d15ebcebf4e7e2546296c47] {"code":1,"data":{"message":"no proxy configured. cannot manage target.","error":"no_proxy"}}
2024-11-13 09:34:15 - INFO - connection to zmq socket : ipc:///tmp/gorgone/routing-173149037552811.ipc
2024-11-13 09:34:15 - INFO - connection to zmq socket : ipc:///tmp/gorgone/routing-173149037552811.ipc
2024-11-13 09:34:15 - INFO - [action] validate plugins - nothing to install
2024-11-13 09:34:20 - DEBUG - [action] Received SIGCLD signal (pid: 29265)
2024-11-13 09:34:20 - DEBUG - [action] Received SIGCLD signal (pid: 29266)

Poller:

2024-11-13 09:34:37 - DEBUG - [audit] sampling starting
 

 


Central

2024-11-13 09:34:15 - DEBUG - [legacycmd] Processing file '/var/lib/centreon/centcore.cmd_read'
2024-11-13 09:34:15 - INFO - [legacycmd] Handling command 'SENDCFGFILE', Target: '2'
2024-11-13 09:34:15 - DEBUG - [legacycmd] internal message: [remotecopy] [13f21eb4cb7164885385c3b4f555d2bc69f658b6e5c09039470ca311b1c32ae624735c81d74acd716f7814e3b09d3bb8b123e9fbaf8aa979cf514bb36bbf592b] [2] {"logging":0,"content":{"group":"centreon","owner":"centreon-gorgone","source":"/var/cache/centreon//config/vmware/2/centreon_vmware.json","metadata":{"centcore_proxy":1,"centcore_cmd":"SENDCFGFILE"},"cache_dir":"/var/cache/centreon/","destination":"/etc/centreon/centreon_vmware.json"}}
2024-11-13 09:34:15 - DEBUG - [legacycmd] internal message: [remotecopy] [13f21eb4cb7164885385c3b4f555d2bc69f658b6e5c09039470ca311b1c32ae624735c81d74acd716f7814e3b09d3bb8b123e9fbaf8aa979cf514bb36bbf592b] [2] {"content":{"metadata":{"centcore_cmd":"SENDCFGFILE","centcore_proxy":1},"destination":"/etc/centreon-engine//","cache_dir":"/var/cache/centreon/","group":"centreon-engine","source":"/var/cache/centreon//config/engine/2","owner":"centreon-engine"},"logging":0}
2024-11-13 09:34:15 - DEBUG - [legacycmd] internal message: [remotecopy] [13f21eb4cb7164885385c3b4f555d2bc69f658b6e5c09039470ca311b1c32ae624735c81d74acd716f7814e3b09d3bb8b123e9fbaf8aa979cf514bb36bbf592b] [2] {"content":{"cache_dir":"/var/cache/centreon/","destination":"/etc/centreon-broker/","metadata":{"centcore_cmd":"SENDCFGFILE","centcore_proxy":1},"owner":"centreon-broker","source":"/var/cache/centreon//config/broker/2","group":"centreon-broker"},"logging":0}
2024-11-13 09:34:15 - INFO - [legacycmd] Handling command ''SENDCBCFG', Target: '2'
2024-11-13 09:34:15 - ERROR - [legacycmd] Cannot process message type 'SENDCBCFGthrowing it away.
2024-11-13 09:34:15 - DEBUG - [core] Message received internal - [remotecopy] [13f21eb4cb7164885385c3b4f555d2bc69f658b6e5c09039470ca311b1c32ae624735c81d74acd716f7814e3b09d3bb8b123e9fbaf8aa979cf514bb36bbf592b] [2] {"logging":0,"content":{"group":"centreon","owner":"centreon-gorgone","source":"/var/cache/centreon//config/vmware/2/centreon_vmware.json","metadata":{"centcore_proxy":1,"centcore_cmd":"SENDCFGFILE"},"cache_dir":"/var/cache/centreon/","destination":"/etc/centreon/centreon_vmware.json"}}
2024-11-13 09:34:15 - DEBUG - [legacycmd] Processing file '/var/lib/centreon/centcore//1731490453.3841-externalcommand.cmd_read'
2024-11-13 09:34:15 - INFO - [legacycmd] Handling command 'ENGINERESTART', Target: '1'
2024-11-13 09:34:15 - DEBUG - [legacycmd] internal message: [actionengine] [2fd678f406b6da184499c7c8ecd16d6ab191bd0938976077ac489c341837bd5523d9519ca8eaf580806fddacf39681d47a8c679e0df43ba1f9a8264e73256aa6] [1] {"content":{"command":"sudo systemctl restart centreon_vmware.service","metadata":{"centcore_proxy":1,"centcore_cmd":"ENGINERESTART"}},"logging":0}
2024-11-13 09:34:15 - DEBUG - [legacycmd] internal message: [actionengine] [2fd678f406b6da184499c7c8ecd16d6ab191bd0938976077ac489c341837bd5523d9519ca8eaf580806fddacf39681d47a8c679e0df43ba1f9a8264e73256aa6] [1] {"content":{"plugins":"/etc/centreon-engine/plugins.json","command":"sudo service centengine restart","metadata":{"centcore_proxy":1,"centcore_cmd":"ENGINERESTART"}},"logging":0}
2024-11-13 09:34:15 - INFO - [legacycmd] Handling command 'ENGINERESTART', Target: '2'
2024-11-13 09:34:15 - DEBUG - [legacycmd] internal message: [actionengine] [c893e515441acfe78192160966f02a044e1d505b7b10c7078c0f8363a489de5a7f5910c687786c0599a0ed09c5b02976fcfc805b9d15ebcebf4e7e2546296c47] [2] {"content":{"command":"sudo systemctl restart centreon_vmware.service","metadata":{"centcore_cmd":"ENGINERESTART","centcore_proxy":1}},"logging":0}
2024-11-13 09:34:15 - DEBUG - [legacycmd] internal message: [actionengine] [c893e515441acfe78192160966f02a044e1d505b7b10c7078c0f8363a489de5a7f5910c687786c0599a0ed09c5b02976fcfc805b9d15ebcebf4e7e2546296c47] [2] {"logging":0,"content":{"plugins":"/etc/centreon-engine//plugins.json","metadata":{"centcore_proxy":1,"centcore_cmd":"ENGINERESTART"},"command":"sudo service centengine restart"}}
2024-11-13 09:34:15 - DEBUG - [core] Message received internal - [remotecopy] [13f21eb4cb7164885385c3b4f555d2bc69f658b6e5c09039470ca311b1c32ae624735c81d74acd716f7814e3b09d3bb8b123e9fbaf8aa979cf514bb36bbf592b] [2] {"content":{"metadata":{"centcore_cmd":"SENDCFGFILE","centcore_proxy":1},"destination":"/etc/centreon-engine//","cache_dir":"/var/cache/centreon/","group":"centreon-engine","source":"/var/cache/centreon//config/engine/2","owner":"centreon-engine"},"logging":0}
2024-11-13 09:34:15 - DEBUG - [legacycmd] Event: [ack] [13f21eb4cb7164885385c3b4f555d2bc69f658b6e5c09039470ca311b1c32ae624735c81d74acd716f7814e3b09d3bb8b123e9fbaf8aa979cf514bb36bbf592b] {"data":{"error":"no_proxy","message":"no proxy configured. cannot manage target."},"code":1}
2024-11-13 09:34:15 - DEBUG - [core] Message received internal - [remotecopy] [13f21eb4cb7164885385c3b4f555d2bc69f658b6e5c09039470ca311b1c32ae624735c81d74acd716f7814e3b09d3bb8b123e9fbaf8aa979cf514bb36bbf592b] [2] {"content":{"cache_dir":"/var/cache/centreon/","destination":"/etc/centreon-broker/","metadata":{"centcore_cmd":"SENDCFGFILE","centcore_proxy":1},"owner":"centreon-broker","source":"/var/cache/centreon//config/broker/2","group":"centreon-broker"},"logging":0}
2024-11-13 09:34:15 - DEBUG - [legacycmd] Event: [ack] [13f21eb4cb7164885385c3b4f555d2bc69f658b6e5c09039470ca311b1c32ae624735c81d74acd716f7814e3b09d3bb8b123e9fbaf8aa979cf514bb36bbf592b] {"data":{"message":"no proxy configured. cannot manage target.","error":"no_proxy"},"code":1}
2024-11-13 09:34:15 - DEBUG - [core] Message received internal - [actionengine] [2fd678f406b6da184499c7c8ecd16d6ab191bd0938976077ac489c341837bd5523d9519ca8eaf580806fddacf39681d47a8c679e0df43ba1f9a8264e73256aa6] [1] {"content":{"command":"sudo systemctl restart centreon_vmware.service","metadata":{"centcore_proxy":1,"centcore_cmd":"ENGINERESTART"}},"logging":0}
2024-11-13 09:34:15 - DEBUG - [core] Message received internal - [actionengine] [2fd678f406b6da184499c7c8ecd16d6ab191bd0938976077ac489c341837bd5523d9519ca8eaf580806fddacf39681d47a8c679e0df43ba1f9a8264e73256aa6] [1] {"content":{"plugins":"/etc/centreon-engine/plugins.json","command":"sudo service centengine restart","metadata":{"centcore_proxy":1,"centcore_cmd":"ENGINERESTART"}},"logging":0}
2024-11-13 09:34:15 - DEBUG - [legacycmd] Event: [ack] [13f21eb4cb7164885385c3b4f555d2bc69f658b6e5c09039470ca311b1c32ae624735c81d74acd716f7814e3b09d3bb8b123e9fbaf8aa979cf514bb36bbf592b] {"code":1,"data":{"message":"no proxy configured. cannot manage target.","error":"no_proxy"}}
2024-11-13 09:34:15 - DEBUG - [legacycmd] Event: [ack] [2fd678f406b6da184499c7c8ecd16d6ab191bd0938976077ac489c341837bd5523d9519ca8eaf580806fddacf39681d47a8c679e0df43ba1f9a8264e73256aa6] {"code":0,"data":null}
2024-11-13 09:34:15 - DEBUG - [core] Message received internal - [actionengine] [c893e515441acfe78192160966f02a044e1d505b7b10c7078c0f8363a489de5a7f5910c687786c0599a0ed09c5b02976fcfc805b9d15ebcebf4e7e2546296c47] [2] {"content":{"command":"sudo systemctl restart centreon_vmware.service","metadata":{"centcore_cmd":"ENGINERESTART","centcore_proxy":1}},"logging":0}
2024-11-13 09:34:15 - DEBUG - [action] Event: [actionengine] [2fd678f406b6da184499c7c8ecd16d6ab191bd0938976077ac489c341837bd5523d9519ca8eaf580806fddacf39681d47a8c679e0df43ba1f9a8264e73256aa6] [] {"content":{"command":"sudo systemctl restart centreon_vmware.service","metadata":{"centcore_proxy":1,"centcore_cmd":"ENGINERESTART"}},"logging":0}
2024-11-13 09:34:15 - DEBUG - [legacycmd] Event: [ack] [2fd678f406b6da184499c7c8ecd16d6ab191bd0938976077ac489c341837bd5523d9519ca8eaf580806fddacf39681d47a8c679e0df43ba1f9a8264e73256aa6] {"code":0,"data":null}
2024-11-13 09:34:15 - DEBUG - [action] Create sub-process
2024-11-13 09:34:15 - DEBUG - [action] Event: [actionengine] [2fd678f406b6da184499c7c8ecd16d6ab191bd0938976077ac489c341837bd5523d9519ca8eaf580806fddacf39681d47a8c679e0df43ba1f9a8264e73256aa6] [] {"content":{"plugins":"/etc/centreon-engine/plugins.json","command":"sudo service centengine restart","metadata":{"centcore_proxy":1,"centcore_cmd":"ENGINERESTART"}},"logging":0}
2024-11-13 09:34:15 - DEBUG - [action] Create sub-process
2024-11-13 09:34:15 - DEBUG - [core] Message received internal - [actionengine] [c893e515441acfe78192160966f02a044e1d505b7b10c7078c0f8363a489de5a7f5910c687786c0599a0ed09c5b02976fcfc805b9d15ebcebf4e7e2546296c47] [2] {"logging":0,"content":{"plugins":"/etc/centreon-engine//plugins.json","metadata":{"centcore_proxy":1,"centcore_cmd":"ENGINERESTART"},"command":"sudo service centengine restart"}}
2024-11-13 09:34:15 - DEBUG - [legacycmd] Event: [ack] [c893e515441acfe78192160966f02a044e1d505b7b10c7078c0f8363a489de5a7f5910c687786c0599a0ed09c5b02976fcfc805b9d15ebcebf4e7e2546296c47] {"code":1,"data":{"error":"no_proxy","message":"no proxy configured. cannot manage target."}}
2024-11-13 09:34:15 - DEBUG - [legacycmd] Event: [ack] [c893e515441acfe78192160966f02a044e1d505b7b10c7078c0f8363a489de5a7f5910c687786c0599a0ed09c5b02976fcfc805b9d15ebcebf4e7e2546296c47] {"code":1,"data":{"message":"no proxy configured. cannot manage target.","error":"no_proxy"}}
2024-11-13 09:34:15 - INFO - connection to zmq socket : ipc:///tmp/gorgone/routing-173149037552811.ipc
2024-11-13 09:34:15 - INFO - connection to zmq socket : ipc:///tmp/gorgone/routing-173149037552811.ipc
2024-11-13 09:34:15 - INFO - [action] validate plugins - nothing to install
2024-11-13 09:34:20 - DEBUG - [action] Received SIGCLD signal (pid: 29265)
2024-11-13 09:34:20 - DEBUG - [action] Received SIGCLD signal (pid: 29266)

poller

2024-11-13 09:34:37 - DEBUG - [audit] sampling starting
 


HI,

I'll upload screenshots because I'm unable to upload the log as text.

Central

 

 

poller

 

2024-11-13 12:48:37 - DEBUG - audit] sampling starting
 


Hi you have a message that indicates no proxy are configured.

What is your Centreon gorgone central configuration?

# systemctl status gorgoned
● gorgoned.service - Centreon Gorgone
Loaded: loaded (/etc/systemd/system/gorgoned.service; enabled; preset: disabled)
Active: active (running) since Tue 2024-11-12 14:46:38 CET; 1 day 1h ago
Main PID: 561745 (perl)
Tasks: 75 (limit: 50413)
Memory: 238.9M
CPU: 5min 10.368s
CGroup: /system.slice/gorgoned.service
├─561745 /usr/bin/perl /usr/bin/gorgoned --config=/etc/centreon-gorgone/config.yaml --logfile=/var/log/centreon-gorgone/gorgoned.log --severity=debug
├─561748 gorgone-anomalydetection
├─561749 gorgone-cron
├─561750 gorgone-nodes
├─561751 gorgone-action
├─561752 gorgone-dbcleaner
├─561753 gorgone-statistics
├─561754 gorgone-proxy
├─561755 gorgone-proxy
├─561756 gorgone-proxy
├─561757 gorgone-proxy
├─561758 gorgone-proxy
├─561761 gorgone-legacycmd
├─561764 gorgone-autodiscovery
├─561769 gorgone-httpserver
└─561801 gorgone-engine

 


HI,

 

Indeed, the Gorgoned proxy module was not starting, and the log during the Gorgoned startup showed this:

2024-11-14 06:28:47 - INFO - core] Module 'proxy' cannot be loaded: Base class package "Libssh::Session" is empty. (Perhaps you need to 'use' the module which defines that package first, or make that module available in @INC (@INC contains: /usr/bin /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.36.0 /usr/local/share/perl/5.36.0 /usr/lib/x86_64-linux-gnu/perl5/5.36 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.36 /usr/share/perl/5.36 /usr/local/lib/site_perl). at /usr/share/perl5/gorgone/modules/core/proxy/sshclient.pm line 23. BEGIN failed--compilation aborted at /usr/share/perl5/gorgone/modules/core/proxy/sshclient.pm line 23. Compilation failed in require at /usr/share/perl5/gorgone/modules/core/proxy/class.pm line 30. BEGIN failed--compilation aborted at /usr/share/perl5/gorgone/modules/core/proxy/class.pm line 30. Compilation failed in require at /usr/share/perl5/gorgone/modules/core/proxy/hooks.pm line 31. BEGIN failed--compilation aborted at /usr/share/perl5/gorgone/modules/core/proxy/hooks.pm line 31. Compilation failed in require at /usr/share/perl5/gorgone/class/core.pm line 429.

 

I fixed it by doing the following: apt-get install libssh-dev and cpanm Libssh::Session

This stopped working after the upgrade from Debian 11 to 12. I understand that the gorgone package might be missing some dependency, right? Also, during the Debian upgrade on the poller, the gorgone package was removed, so I had to reinstall it.

Additionally, the VMware plugin is also encountering errors with libraries. Can't locate VMware/VIRuntime.pm in @INC (you may need to install the VMware::VIRuntime module)


Hi,

I fixed the error of VMware plugin by doing the following:

  • apt purge centreon-plugin-virtualization-vmware2-connector-plugin centreon-plugin-virtualization-vmware-daemon
  • apt autoremove
  • apt install centreon-plugin-virtualization-vmware2-connector-plugin centreon-plugin-virtualization-vmware-daemon
  • apt-get install libextutils-pkgconfig-perl libcurl4-openssl-dev
  • cpan Net::Curl::Easy
  • systemctl restart centreon_vmware.service

BR


Reply