Question

error searching for discovered hosts

  • 16 August 2022
  • 7 replies
  • 132 views

Badge +1

after i configure an azure disovery job and i run it, it shows i have 182 hosts but when i try to display the  job result it shows me an empty list with an error “error when searching for discovered hosts”


7 replies

Userlevel 4
Badge +13

Hi @yahya 

 

Did you have the opportunity to follow this documentation?

https://docs.centreon.com/pp/integrations/plugin-packs/procedures/cloud-azure-management-discover/

 

Do you have enough space in your machine?

Any relevant error in these logs:

  1. centreon-error.log
  2. sql-error.log
  3. gorgoned.log

 

🤞

Badge +1

gorgoned.log gives me : SQL error: MySQL server has gone away

sql-error.log i just empty

centreon-error gives me :  CRITICAL: Error when searching for discovered hosts {"context":"[object] (CentreonAutoDiscovery\\Domain\\Job\\Exception\\JobException(code: 0): Error when searching for discovered hosts at /usr/share/centreon/src/CentreonAutoDiscovery/Domain/Job/Exception/JobException.php:31)\n[previous exception] [object] (Error(code: 0): Call to undefined method Centreon\\Domain\\HostConfiguration\\HostConfigurationService::findHostTemplate() at /usr/share/centreon/src/CentreonAutoDiscovery/Domain/Job/JobService.php:768)"}

 

and yes i followed that same tutorial

 

 

Userlevel 4
Badge +12

Hi @yahya 

Can you give us the software versions you are using?

rpm -q centreon-web centreon-auto-discovery-server

 

Badge +1

centreon-auto-discovery-server-22.04.1-2.el7.centos.noarch

the latest i believe

Userlevel 4
Badge +12

I’m sorry to insist, but can you make sure that the installed version of centreon-web is `centreon-web-22.04.2-2.el7.centos.noarch`?

And that the Auto Discovery extension appears up-to-date in **Administration > Extensions > Manager**?

 

Badge +1

yes absolutely positive yes

 

Userlevel 4
Badge +12

Hi @yahya 

I have tried reproducing your issue with our Azure subscription, but I did not get your error.

Can you send here the result of the second command? (it should not contain any confidential data)

yum install -y jq
mysql --skip-column-names centreon -e 'select discovery_result from mod_host_disco_host ' | jq '.type' | sort | uniq -c | sort -nr

You may need to add the `-p` option and type your mysql root password.

Reply