Hello,
I encountered an issue with the host icon displayed on the Resource Status page.
Steps to reproduce:
1. Duplicate an existing host using a Docker icon.
2. Rename and configure the duplicated host.
3. Change its icon to the Linux/Tux icon in the host configuration.
4. Save the host.
5. Export and deploy the configuration with:
- Generate configuration files
- Move export files
- Restart monitoring engine
The icon is correctly configured in the Centreon UI, but Resource Status continues to display the old Docker icon.
I also tried:
- Clearing the browser cache and using Ctrl+F5
- Restarting centengine
- Restarting cbd
- Restarting gorgoned
- Removing the icon, deploying the configuration, then assigning the Linux icon again
- Running a forced check on the host
The issue remained.
The centreon_storage.resources table still contained the old icon_id for the duplicated host, while another Linux host had the correct icon_id.
Commands used for verification:
mysql centreon_storage -e "SELECT name,icon_id FROM resources WHERE name IN ('SRV-IPA01','SRV-IPA02');"
I did not want to manually update the Centreon database.
Workaround:
I deleted the affected host, deployed the configuration, then duplicated a host that already had the Linux icon. After recreating and deploying the host, the correct icon appeared immediately.
It seems that the icon_id of a duplicated host is not always synchronized in centreon_storage.resources when the icon is later changed from the UI.
Has anyone encountered this issue? Is there a supported way to force the synchronization of icon_id without deleting the host or modifying the database manually?
my centreon version:
centreon-broker-24.04.19-1.el9.x86_64
centreon-broker-cbd-24.04.19-1.el9.x86_64
centreon-broker-cbmod-24.04.19-1.el9.x86_64
centreon-broker-core-24.04.19-1.el9.x86_64
centreon-central-24.04.26-1.el9.noarch
centreon-common-24.04.26-1.el9.noarch
centreon-engine-24.04.19-1.el9.x86_64
centreon-engine-daemon-24.04.19-1.el9.x86_64
centreon-gorgone-24.04.14-1.el9.noarch
centreon-gorgone-centreon-config-24.04.14-1.el9.noarch
centreon-web-24.04.26-1.el9.noarch
centreon-web-24.04.26-1.el9.noarch
