Solved

Update centreon with/with the OS

  • 1 September 2022
  • 3 replies
  • 219 views

Userlevel 1
Badge +5

Hello,

I have a fresh installation of the centreon version 22.04 open source un Alma linux 8 (split : 1 central, 1 DB and several pollers).

I can see in the documentation that it is possible to update centreon using the “yum update centreon\*” command.

https://docs.centreon.com/fr/docs/update/update-centreon-platform/

If I want to update my version of centreon (and just centreon) I just have to do some commands “yum update centreon\*” on the central and on the pollers (nothing on the database server) please correct me if I'm wrong.
This will update all centreon packages (I guess if there are some dependencies to satisfy, the packages will also be updated or installed).

On the other hand, I wonder about the update of the OS part and other packages outside centreon.
If I want to keep my linux distributions up to date, is there a way to do this in a simple way and is recommended (perhaps excluding packages during the “yum update”?
Or is it that when we update the OS we also update centreon because otherwise we risk problems and it can be complicated to manage for non-experts?

 

Can you help me clarify this ?

 

Thanks

Cordially

icon

Best answer by cmeschin 1 September 2022, 12:05

View original

3 replies

Userlevel 6
Badge +18

Hi @mc.gyver.reboot , of course you can update all packages using following command:

yum update

This will update kernel and all installed applications, including dependencies ;)

Userlevel 2
Badge +6

Hi @mc.gyver.reboot ,

When you run yum update centreon*, you update all centreon packages (centreon-web, centreon-plugins and centreon-pack if exists) and all dependancies (php, etc...).

Other packages are not updated.

To update OS, you can exclude centreon packages with this argument --exclude=centreon\*

Then you can update your OS independently of centreon sotfware and vice-versa.

When you update centreon, you can exclude also centreon-pack and centreon-plugin to separate into different steps (web side and plugin side).

 → On central server and pollers:

So you can update OS first:

  • yum update --exclude=centreon\*
  • reboot if needed (when kernel updated)

then update centreon Web like described in documentation with exclude the centreon-packs and the centreon-plugins

  • yum update centreon\* --exclude=centreon-pack\* --exclude=centreon-plugin-\*
  • and continue with centreon-web wizard
  • vérify if all is OK

and finally update centreon Plugin Packs like as documentation: https://docs.centreon.com/docs/monitoring/pluginpacks/#installing-a-plugin-pack

 

→ On Database server (similar at central server without centreon Plugin Packs because not installed):

Update OS first:

  • yum update --exclude=centreon\*
  • reboot if needed (when kernel updated)

then update centreon packages

  • yum update centreon\*

I hope it is more clear.

Kind regards

Userlevel 1
Badge +5

Hello,

@cmeschin Thanks for the very comprehensive answer!

Reply