Skip to main content

Hi,

after upgrading to centreon 24.04, I’ve upgraded debian to debian 12. On debian 12 I get:

UNKNOWN: Cannot load module 'Libssh::Session'. 
Can't locate Libssh/Session.pm in @INC (you may need to install the Libssh::Session module) (@INC contains: /usr/lib/centreon/plugins FatPacked::94118386514816=HASH(0x5599a4febb80) /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.36.0 /usr/local/share/perl/5.36.0 /usr/lib/x86_64-linux-gnu/perl5/5.36 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.36 /usr/share/perl/5.36 /usr/local/lib/site_perl) at /usr/lib/centreon/plugins//centreon_linux_ssh.pl line 2266.

The default host template os-linux-ssh uses libssh as ssh-backend, if I delete it in host-template os-linux-ssh-custom, my ssh-checks start to work again (when they use sshcli as ssh-backend)

I couldn’t find a package for the missing files with apt

 

Gr,

Philip

I added cpan and cpanm (cpanminus) to my debian-system to handle the perl-files.

On my system a “cpanm Libssh::Session” solved it.

 

Maybe this can help you a bit.

 

Regards

Timo


Hello,

normally this package (libssh-session-perl) is in the plugin stable repository :

https://packages.centreon.com/apt-plugins-stable

can you add here the output of an apt update command ?

Once apt update done you can use this command to check if you have any old version of it available ?

apt-cache policy libssh-session-perl

apt info centreon-plugin-operatingsystems-linux-ssh


It seems that the version in the repo for bookworm is older than installed in bullseye:

apt-cache policy libssh-session-perl
libssh-session-perl:
Installed: 0.8-5~bullseye
Candidate: 0.8-5~bullseye
Version table:
*** 0.8-5~bullseye 100
100 /var/lib/dpkg/status
0.8-1~bookworm 500
500 https://packages.centreon.com/apt-plugins-stable bookworm/main amd64 Packages

I have to downgrade:

apt-get install libssh-session-perl=0.8-1~bookworm

 


a better solutions is to create a file centreon.pref in /etc/apt/preferences.d before the upgrade to bookworm with the following content:

Package: *
Pin: origin packages.centreon.com
Pin-Priority: 1000

This way all the packages get updates (downgrades)


Reply