Solved

Alma 8 broken "update" after installing centreon plugins

  • 3 February 2023
  • 5 replies
  • 208 views

Userlevel 5
Badge +14

Hello

I installed a new poller from scratch :

latest alma 8.7, minimal install, no other package than the standard install

I then boot, do a dnf update and install centreon with the install script from the github

curl -L -s https://raw.githubusercontent.com/centreon/centreon/22.04.x/centreon/unattended.sh > install.sh
chmod +x install.sh
./install.sh install -t poller

(22.10.x and 22.04.x, i tried both)

 

then I install the plugins, and for ease of use, I install all centreon plugins, as I usually don’t know what I will need 

dnf install "centreon-plugin*"

before installing the packages I see this : “downgrading perl-tiny-exporter”

(tried on alma 8.6 and 8.7, with a 22.04 and 22.10 install, fresh install each time)

 

if I run the dnf transaction, all run fine, but next the dnf system is broken

you cannot run a dnf update/install anymore unless specifiying “--nobest”

 

I’m not expert enough in linux to understand where ig goes wrong, but I guess one of the plugin packages has dependencies that requires a downgrade

is there a way to identify it ?

it there a way to fix this downgrade ?

icon

Best answer by MichaelW 7 February 2023, 17:17

View original

5 replies

Userlevel 4
Badge +13

👋

 

@christophe.niel-ACT have you tried with :

 

https://docs.centreon.com/docs/installation/introduction/#unattended-script

 

curl -L -s https://raw.githubusercontent.com/centreon/centreon/22.10.x/centreon/unattended.sh > unattended.sh

 

unattended.sh install -t poller -v 22.10 -r stable

 

🤞

Userlevel 4
Badge +13

also 

dnf install -y dnf-plugins-core
dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
dnf install -y https://rpms.remirepo.net/enterprise/remi-release-8.rpm
dnf config-manager --set-enabled 'powertools'

 

Userlevel 5
Badge +14

hello, 

I used the centreon unatted.sh, I don’t have an issue with centreon “out of the box” when using a package install

epel and remi are installed by this script and the powertools are also enabled by the script

the first part of the original post was to give context, the issue is not the install, this works fine.

 

the issue is when you install “all” centreon plugins, one of them downgrade a perl type library, breaks powertools and breaks dnf and you can’t “dnf install” anymore (you can force using --nobest it’s not completely broken, but that not something I want to do on dozens of pollers i need to change from centos7 to alma X.x)

I need to try Alma 9 with package install too, didn’t have time yet

 

but as it is something happening after installing the plugins, it’s probably something in a package, and I don’t really have the time to test all 700 packages individually, maybe it’s not a centreon plugin package but a Remi problem, who knows?...

 

my next test will be to try with the OVF image is something is different, I could also try not to not install the plugins I don’t need, but the list is “unknown”, the range of stuff I need to monitor is limitless, i’m an MSP with “a lot” of different client/technologies, hence the “centreon-plugins*”, it’s easier to manage

 

 

 

Userlevel 3
Badge +8

Hi,

I have the same pb. This come from the MongoDB plugin and the downgrade of the Perl-Exporter-Tiny dependency.

The dependency from the mongo plugin is too old. Other plugins and centreon packages use a newer dependency. We need a new version of MongoDB plugin packaged with the new dependency.

 

Until that, I have removed the plugin, and all is OK. But I’ll need this plugin absolutely. For now, my mongoDB servers are checked by poller on CentOS 7.9, but I’ll migrate it quickly.

 

Userlevel 5
Badge +14

nice of you to find this package, I was trying to find time to install them one by one

I did that :

yum remove centreon-plugin-Applications-Databases-Mongodb

followed by

yum update

it reinstalled perl-Exporter-Tiny, and all is “fixed”, no more errosr with dnf/yum

 

Reply