Can't locate Nagios/Plugin.pm in @INC

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.
User avatar
eloyd
Cool Title Here
Posts: 2129
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Can't locate Nagios/Plugin.pm in @INC

Post by eloyd »

For fun, and because I don't really want to think about it yet, try this:

Code: Select all

yum clean all
And then try the install again.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoydI'm a Nagios Fanatic!
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Can't locate Nagios/Plugin.pm in @INC

Post by sreinhardt »

Yep

yum clean all; yum update; yum install perl-Nagios-Plugin

You might also want to make sure you have epel enabled if you have not already, as that is where this particular package lives last I checked.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
User avatar
millisa
Posts: 69
Joined: Thu Jan 16, 2014 11:13 pm
Location: Austin, TX
Contact:

Re: Can't locate Nagios/Plugin.pm in @INC

Post by millisa »

This caught my eye:
sir i'm running "CentOS release 5.6 (Final)"
combined with
One of those is a typo, right? That looks like you have centos5 but are trying to use the EPEL packages for centos6.

Other thoughts - the fedoraproject.org https setup was changed last week to not support SSLv3 in light of the 'poodle' vulnerability. I had to manually change some of the /etc/yum.repos.d/epel.repo files on my centos5 systems to use http:// instead of https:// to get them to work.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Can't locate Nagios/Plugin.pm in @INC

Post by tmcdonald »

millisa wrote:Other thoughts - the fedoraproject.org https setup was changed last week to not support SSLv3 in light of the 'poodle' vulnerability. I had to manually change some of the /etc/yum.repos.d/epel.repo files on my centos5 systems to use http:// instead of https:// to get them to work.
That would certainly explain a ticket I had the other day where yum was not working. Solution was just as you said, to change temporarily to http.

@braindope: Try doing as millisa said and change your repositories to use http and not https.
Former Nagios employee
braindope
Posts: 80
Joined: Fri Sep 26, 2014 12:13 am

Re: Can't locate Nagios/Plugin.pm in @INC

Post by braindope »

tmcdonald wrote:
millisa wrote:Other thoughts - the fedoraproject.org https setup was changed last week to not support SSLv3 in light of the 'poodle' vulnerability. I had to manually change some of the /etc/yum.repos.d/epel.repo files on my centos5 systems to use http:// instead of https:// to get them to work.
That would certainly explain a ticket I had the other day where yum was not working. Solution was just as you said, to change temporarily to http.

@braindope: Try doing as millisa said and change your repositories to use http and not https.

Hi Sir / Ma'am,


Did you mean in changing my repositories to use http and not https, is to edit epel.repo in /etc/yum.repos.d.

Sorry i'm just newbie in this kind of stuff :)
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Can't locate Nagios/Plugin.pm in @INC

Post by tmcdonald »

Correct. My file looked like this:

Code: Select all

[epel]
name=Extra Packages for Enterprise Linux 6 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
mirrorlist=http://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

[epel-debuginfo]
name=Extra Packages for Enterprise Linux 6 - $basearch - Debug
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch/debug
mirrorlist=http://mirrors.fedoraproject.org/metalink?repo=epel-debug-6&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
gpgcheck=1

[epel-source]
name=Extra Packages for Enterprise Linux 6 - $basearch - Source
#baseurl=http://download.fedoraproject.org/pub/epel/6/SRPMS
mirrorlist=http://mirrors.fedoraproject.org/metalink?repo=epel-source-6&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
gpgcheck=1
Former Nagios employee
braindope
Posts: 80
Joined: Fri Sep 26, 2014 12:13 am

Re: Can't locate Nagios/Plugin.pm in @INC

Post by braindope »

Code: Select all

[epel]
name=Extra Packages for Enterprise Linux 5 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/5/$basearch
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-5&arch=$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL

[epel-debuginfo]
name=Extra Packages for Enterprise Linux 5 - $basearch - Debug
#baseurl=http://download.fedoraproject.org/pub/epel/5/$basearch/debug
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-debug-5&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
gpgcheck=1

[epel-source]
name=Extra Packages for Enterprise Linux 5 - $basearch - Source
#baseurl=http://download.fedoraproject.org/pub/epel/5/SRPMS
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-source-5&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
gpgcheck=1
Hi Sir,

This is what my epel looks like, i've tried editing, but no luck .i'm still stuck at this point.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Can't locate Nagios/Plugin.pm in @INC

Post by abrist »

I have no problems with those repos. . .Are you sure this server is not firewalled? And can connect to these servers?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: Can't locate Nagios/Plugin.pm in @INC

Post by lmiltchev »

Can you run the following commands and show us the output?

Code: Select all

cat /etc/*release
uname -a
yum repolist -v
Can you run "yum update" successfully?

What is the output of the following command?

Code: Select all

yum search perl-Nagios-Plugin
Be sure to check out our Knowledgebase for helpful articles and solutions!
braindope
Posts: 80
Joined: Fri Sep 26, 2014 12:13 am

Re: Can't locate Nagios/Plugin.pm in @INC

Post by braindope »

Hi Everyone,

I've successfully run yum install perl-Nagios-Plugin commands with no error so far

I am now trying to proceed on my work, does anyone knows how to install e2fsprogs 1.38 or greater i need it for UUID (not sure what this means :lol: )

Thank you very much guys for patiently helping me :D
Locked