Skip to main content

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

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


I’m on the same train.


Hi, I’m also concerned by a solution.


Exactly the same problem with 22.10.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


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.


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


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


@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


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


@itoussies thanks for your help.


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

 

 


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

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

Thanks


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

I just wanted to check the command...

 


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


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


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.


 


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

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


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

 

 


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

 


@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


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?


@itoussies 

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

Reply