Can't install perl-net-SNMP - CentOS 7 - Nagios 4

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
chris91
Posts: 5
Joined: Wed Jul 29, 2015 6:02 am

Can't install perl-net-SNMP - CentOS 7 - Nagios 4

Post by chris91 »

Hello,

I'm trying to install Nagios 4 on Cent OS 7.
My server doesn't have any web access. I've had to setup an internal repository. I'm using only Cent OS 7 repository and I've downloaded all needed extra dependencies from EPEL, or CPAN when needed.

I can't install perl-net-SNMP package. During dependencies check, the server needs perl(Crypt::DES) package.
I couldn't find any compiled file for CentOS 7, so I've downloaded the source file from CPAN and compiled it.
Installation of compiled Crypt::DES package seemed to be completed without any error.
Still, when I'm trying to install perl-net-SNMP package, I'm getting following error message (sorry, it's in French):
  • [root@localhost Crypt-DES-2.07]# yum -y install perl-Net-SNMP
    Modules complémentaires chargés : fastestmirror
    Loading mirror speeds from cached hostfile
    Résolution des dépendances
    --> Lancement de la transaction de test
    ---> Le paquet perl-Net-SNMP.noarch 0:6.0.1-7.el7 sera installé
    --> Traitement de la dépendance : perl(Crypt::DES) pour le paquet : perl-Net-SNMP-6.0.1-7.el7.noarch
    --> Résolution des dépendances terminée

    Erreur : Paquet : perl-Net-SNMP-6.0.1-7.el7.noarch (repo-custom)
    Requiert : perl(Crypt::DES)

    Vous pouvez essayer d'utiliser --skip-broken pour contourner le problème
    Vous pouvez essayer d'exécuter : rpm -Va --nofiles --nodigest
    [root@localhost Crypt-DES-2.07]#
List of packages I'm trying to install:
  • perl-Net-SNMP-6.0.1-7.el7.noarch.rpm
    Crypt-DES-2.07.tar.gz
I'm wondering if Crypt-DES-2.07.tar.gz could be uncompatible with OS 64b... But I also made a dummy install from a PC (CentOS 7 on virtualbox) with Web access and all packages were installed without any error message. I kept default repositories for this test installation.

Instead of perl-Net-SNMP-6.0.1-7.el7.noarch.rpm, I found net-snmp-perl-5.7.2-20.el7.x86_64.rpm. I'm not sure this could be the solution as I don't know the difference between two files.

Thanks to any help you could give me.

Sincerely,

Christophe
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Can't install perl-net-SNMP - CentOS 7 - Nagios 4

Post by jolson »

You might try the following:

On your server with internet access:
rpm -qa | grep -i perl | sort > withinternet

On your server without internet access:
rpm -qa | grep -i perl | sort > withoutinternet

Diff the files:
diff withinternet withoutinternet

Show us the result of the diff command. What is the difference regarding your installed packages between the two servers?
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
chris91
Posts: 5
Joined: Wed Jul 29, 2015 6:02 am

Re: Can't install perl-net-SNMP - CentOS 7 - Nagios 4

Post by chris91 »

Hello,

Thanks for the answer. This is the result:

[nagios@localhost ~]$ diff withinternet withoutinternet
12a13
> perl-Config-IniFiles-2.79-1.el7.noarch
55a57
> perl-IO-stringy-2.110-22.el7.noarch
77a80
> perl-Number-Format-1.73-14.el7.noarch


All three files are installed on server without internet access. I've installed the first and third as they were said as missing during installation of other perl packets. For IO-stringy, I don't remember having installed it. It was maybe included in an other package but this is strange. I was expecting missing packages from the server without internet access...

I'll try to uninstall packages tomorrow.

Christophe
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Can't install perl-net-SNMP - CentOS 7 - Nagios 4

Post by tgriep »

Try installing this package to see if that resolves the dependency.

Code: Select all

yum install perl-Crypt-DES
Could you run this and post the output?

Code: Select all

yum list installed |grep -i snmp
Be sure to check out our Knowledgebase for helpful articles and solutions!
chris91
Posts: 5
Joined: Wed Jul 29, 2015 6:02 am

Re: Can't install perl-net-SNMP - CentOS 7 - Nagios 4

Post by chris91 »

Hi,

The first package, Crypt-DES, wasn't in the CentOS 7 repository. It wasn't neither on the epel (at least I didn't find it). That's why I've downloaded the sources and compiled them.

This is the result of your commands:
[root@localhost ~]# yum install perl-Crypt-DES
Modules complémentaires chargés : fastestmirror
repo | 951 B 00:00
repo-custom | 951 B 00:00
Loading mirror speeds from cached hostfile
Aucun paquet perl-Crypt-DES disponible.
Erreur : Rien à faire
[root@localhost ~]# yum list installed |grep -i snmp
net-snmp.x86_64 1:5.7.2-20.el7 @repo
net-snmp-agent-libs.x86_64 1:5.7.2-20.el7 @repo
net-snmp-devel.x86_64 1:5.7.2-20.el7 @repo
net-snmp-libs.x86_64 1:5.7.2-20.el7 @repo
net-snmp-perl.x86_64 1:5.7.2-20.el7 @repo-custom
net-snmp-utils.x86_64 1:5.7.2-20.el7 @repo
php-snmp.x86_64 5.4.16-23.el7_0.3 @repo-custom
[root@localhost ~]#
repo and repo-custom are the name of our repositories

Christophe
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Can't install perl-net-SNMP - CentOS 7 - Nagios 4

Post by tgriep »

The perl-Crypt-DES is part of the CentOS-Base repo. Can you edit /etc/yum.repos.d/CentOS-Base.repo and enable it if you have it?
Can you run the following and post back the output?

Code: Select all

ll /etc/yum.repos.d/
Be sure to check out our Knowledgebase for helpful articles and solutions!
chris91
Posts: 5
Joined: Wed Jul 29, 2015 6:02 am

Re: Can't install perl-net-SNMP - CentOS 7 - Nagios 4

Post by chris91 »

Hi,

Sorry for my late answer.
I don't have any web access. I can't enable official Yum base repository.
I made my own internal repository and I'm sure this is the root cause but I can't find the difference between Mirror sites and my personnal repo.

I'm loosing too much time, unfortunately. I'll build my server from outside with web access and I will reinstall it Inside. That's a shame for my troubleshooting but I need to go forward or our Nagios project will be in troubles.

Thanks for your help, anyhow.

Christophe
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Can't install perl-net-SNMP - CentOS 7 - Nagios 4

Post by tgriep »

You could download it on another machine, copy it to the Nagios system and install it locally. Can you try that?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked