The only things I changed is the group membership of the user www-data which are not available in Alma8.
I changed with :
usermod -a -G apache centreon-broker usermod -a -G centreon-broker apache
I clean symphony cache and reload php-fpm and httpd and the auto-discovery api seams not working:
2023-05-03 09:08:52 - ERROR - autodiscovery] -class- host discovery - cannot get host discovery jobs - request error code: '404'] message: 'No route found for "GET https://XXXXX/centreon/api/latest/auto-discovery/scheduling/jobs"']
Hi,
In my case, the package is up to date.
The only things I changed is the group membership of the user www-data which are not available in Alma8.
I changed with :
usermod -a -G apache centreon-broker usermod -a -G centreon-broker apache
I clean symphony cache and reload php-fpm and httpd and the auto-discovery api seams not working:
2023-05-03 09:08:52 - ERROR - autodiscovery] -class- host discovery - cannot get host discovery jobs - request error code: '404'] message: 'No route found for "GET https://XXXXX/centreon/api/latest/auto-discovery/scheduling/jobs"']
Same here as it’s the same “apache” for RHEL8, but somehow it does not surprise me that the Centreon documentation never fits reality - worst one I came across was a plugin which was just a copy/paste of another plugin but none of the text was changed.
Hi, I asked to our documentation writers team to improve this part.
Do you have Centreon AutoDiscovery module installed ? If you don’t use it, you can remove it or disable this Centreon gorgone sub module in /etc/centreon-gorgone/config.d/41-autodiscovery.yaml file and restart gorgoned process
I don't use it on my test platform. However, the installation of this version a few days after its availability makes it possible to anticipate the problems that we could encounter during the production’s migration. So if the problem is proven, deleting the feature will only hide it :)
@Pascal to facilitate the installation of Centreon for IT-100 users, we install additional modules but they may not be used by everyone. This can add errors in the logs but by functional problems. You just have to uninstall the "excess" modules.
Am I to understand that automatic host discovery is no longer available for the IT-100 platform?
If so, it is strange to report that the API is not available.
Service auto-discovery seams work.
Will deleting the /etc/centreon-gorgone/config.d/41-autodiscovery.yaml file result in no longer processing host discovery, service discovery or both?
Hi @Pascal , no discovery still present with IT-100.
what I wanted to say is that when you install Centreon, the packages related to the discovery functionalities are automatically installed. If through the interface ("Administration > Extensions > Manager" menu), the features are not installed, then you may get the error message on the APIs because they are not loaded.
Hi @Laurent thanks for this confirmation :)
But, in my case, IT-100 is valid and the extension is deployed :
In fact I tried to remove the extension and reinstall it.
Now, api /auto-discovery/scheduling/jobs is now available and works.
But, I lose all my active discovery rules.
I hope not to have to do this operation during the migration of my production. It will be problematic to lose all my discovery rules.
If you have errors during your migration, try to rebuild cache:
If your cache is correctly refreshed you should see the following result
# sudo -u apache php /usr/share/centreon/bin/console debug:router | grep scheduling autodiscovery.scheduling.findDiscoveryJobs GET ANY ANY /{base_uri}api/{version}/auto-discovery/scheduling/jobs
Hi,
I am still getting this error No route found for "GET /api/latest/auto-discovery/scheduling/jobs"
Is there any solution on how to fix this issue ?
No update on getting this resolved ??
Hello, after investigation we certainly have found the root cause of this issue. It will be fixed soon, before waiting for the patch here is a workaround:
Go to /usr/share/centreon/www/modules/centreon-autodiscovery-server/routes
You should see two files:
CentreonAutoDiscovery.yaml and CentreonAutoDiscovery.yaml.wait.
the CentreonAutoDiscovery.yaml is probably empty or different than CentreonAutoDiscovery.yaml.wait.
remove CentreonAutoDiscovery.yaml
Rename CentreonAutoDiscovery.yaml.wait to CentreonAutoDiscovery.yaml
Clear the cache: sudo -u apache php /usr/share/centreon/bin/console cache:clear
The problem should be resolved.
I have followed every instruction above and I still have blank pages all over my server - both Monitoring and Reporting seem to work, but for Configuration and Administration every menu item is blank. In fact I think the last suggestion of yaml files may have made things worse, I no longer see route errors in the F12 console, but 500 errors.