Skip to main content
Question

error searching for discovered hosts

  • August 16, 2022
  • 7 replies
  • 214 views

Forum|alt.badge.img+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

ponchoh
Centreonian
Forum|alt.badge.img+14
  • Centreonian
  • August 16, 2022

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

 

🤞


Forum|alt.badge.img+1
  • Author
  • Steward *
  • August 16, 2022

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

 

 


omercier
Centreonian
Forum|alt.badge.img+13
  • Centreonian
  • August 17, 2022

Hi @yahya 

Can you give us the software versions you are using?

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

 


Forum|alt.badge.img+1
  • Author
  • Steward *
  • August 18, 2022

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

the latest i believe


omercier
Centreonian
Forum|alt.badge.img+13
  • Centreonian
  • August 18, 2022

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**?

 


Forum|alt.badge.img+1
  • Author
  • Steward *
  • August 19, 2022

yes absolutely positive yes

 


omercier
Centreonian
Forum|alt.badge.img+13
  • Centreonian
  • September 6, 2022

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.