Question

broker-stat unknown command error host key verification failed


Badge +2

After upgradind centreon from 21.10 to 22.10.2, I ‘ve got an error in the web interface (and when I execute the command directrly from the server)

How can I solve this error?

Thanks for your help


37 replies

Badge +4

I also have this problem since upgrading to 22.10.2 

Had 22.10.x previously

Just one single Central Server with this issue

Help for that would be great from the community

Badge

I’m on the same train.

Badge

Hi, I’m also concerned by a solution.

Badge +5

Exactly the same problem with 22.10.2

Badge +2

Hello,
I would be interested in the answer too. Under Centreon 21.10, after updating 2 plugin packs (MySQL and Microsoft SQL Server), the same error appears

Userlevel 3
Badge +9

Hello, 

 

The plugin is using a new ssh backend but the changes were not applied in the Plugin Pack yet. Sorry for the inconvenience

 

For the service template App-Monitoring-Centreon-Broker-Stats-Central-custom, you will need to do the SSH key exchange between the centreon@<IP central server> and centreon-engine@<IP of the poller monitoring the central server> users and add “--ssh-username=centreon” to the EXTRAOPTION macro.

For the service template App-Monitoring-Centreon-Broker-Stats-Poller-custom, replace “--verbose --remote --ssh-option='-l=centreon'” by “--verbose --ssh-username=centreon” in EXTRAOPTIONS macro.

 

For @Isabelle BADORC, the error should be different, something like “unknown option” ? If so, you are probably using deprecated services templates. For MSSQL, you probably have an error with Databases-Size services and you should use App-DB-MSSQL-Databases-Size-custom instead. Also, don’t forget to update the plugins.

 

Regards,

itoussies.

Badge +5

@itoussies Is this necessary if it’s a single server architecture ? 

Userlevel 3
Badge +9

That would be the better (and recommended solution). Otherwise, you can use a custom command that remove the “--hostname” option.

Badge +2

@itoussies , Thank you for your answer. Here is the error message for "brokers-Stats".

The plugins are well up to date, both in the web interface and in Central.
I have no error with the Databases-Size services.

So, I don't understand what's wrong

Userlevel 3
Badge +9

@Isabelle BADORC Oops I misunderstood your first comment. You can just apply what I said for the two Broker-Stats service templates.

Badge +2

@itoussies thanks for your help.

Badge +2

Sorry but I’ve got the same error: I’ve replaced the configuration of the two services (I’ve just one single server).

In the App-Monitoring-Centreon-Broker-Stats-Central-custom service template, I’ve “--verbose --ssh-username=centreon” in extraoptions and

in the App-Monitoring-Centreon-Broker-Stats-Poller-custom service template, I’ve “--verbose --ssh-username=centreon” in extraoptions

 

Is this correct? Thank you for your help

 

 

Badge

Hi.
And…. did your config solved the issue???

I’ve tried your config and I’m still facing the same error.

Thanks

Badge +2

No I’ve got the same error with this config.

I just wanted to check the command...

 

Userlevel 3
Badge +9

Did you do the SSH key exchange? Something I did not mention, you need to do the connection once in CLI.

Badge +2

sorry for my question (I’m not expert!) but what do you mean by “you need to do the connection once in CLi”. (I’ve already made an ssh connection with putty to my centreon server). Sorry again for my question

Userlevel 3
Badge +9

No worries it is my bad, I should have been more precise! You will need to do an SSH key exchange even if the central server monitors itself.


Then, connect to your centreon server with SSH and log in using the centreon-engine user (su - centreon-engine). Log in using SSH to the centreon user:

  • ssh centreon@Iocalhost if the central server monitors itself (careful, replace the first “l” by an actual “l”. My message don’t go through with the real word for some reason)
  • ssh centreon@<IP poller> if a poller monitors the central server


By now, you should be connected to the centreon user without the need of a password. The next check of the Broker-Stats service should now be OK.

Badge +2

 

Userlevel 3
Badge +9

The word “Localhost” but first letter in lowercase seems to bug the site ^^
 

This message is normal, you can safely answer “yes”.

Badge +2

I’ve restarted the poller from the web interface but still the message “host key verification failed”

 

 

Badge +1
Hello,I can't log in using ssh, what is the default password? I tried "centreon", "password", "centreon-password"
Badge +1

 

Userlevel 3
Badge +9

@beugnv The key SSH exchange is OK and you can log in with the centreon user from the centreon-engine user?

 

@Melvin Please use this procedure to do the SSH key exchange https://docs.centreon.com/pp/integrations/plugin-packs/procedures/applications-monitoring-centreon-central/#ssh-key-exchange

Badge +2

I don’t have the centreon-engine password (I’ve installed my server with the ova file from centreon web site)

can I change it?

Badge +1

@itoussies 

Thanks,Now the SSH key exchange is done but the Broker-Stats service is still in "unknown"

Reply