NAGIOS 4.1.1 & CPAN & check_vmware_api

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
ziniaragon
Posts: 5
Joined: Wed May 11, 2016 5:39 am

NAGIOS 4.1.1 & CPAN & check_vmware_api

Post by ziniaragon »

Hello,

trying to install plugin Check_vmware_api.pl I had some error messages:

#cpan Nagios:: Plugin

Code: Select all

Reading '/root/.cpan/Metadata'
  Database was generated on Wed, 25 May 2016 06:41:02 GMT
Running install for module 'Nagios::Plugin'
Checksum for /root/.cpan/sources/authors/id/M/MS/MSTROUT/Nagios-Plugin-0.990001.tar.gz ok
Configuring M/MS/MSTROUT/Nagios-Plugin-0.990001.tar.gz with Makefile.PL
This is a tombstone release, not an installable distribution
Warning: No success on command[/usr/bin/perl Makefile.PL INSTALLDIRS=site]
  MSTROUT/Nagios-Plugin-0.990001.tar.gz
  /usr/bin/perl Makefile.PL INSTALLDIRS=site -- NOT OK
#./check_vmware_api.pl

Code: Select all

Can't locate Nagios/Plugin/Functions.pm in @INC (you may need to install the Nagios::Plugin::Functions module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/x86_64-linux-gnu/perl5/5.20 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl .) at ./check_vmware_api.pl line 39.
BEGIN failed--compilation aborted at ./check_vmware_api.pl line 39
My OS is debian and I already try to reinstall CPAN, typing command #perl -MCPAN -e 'install Nagios::Plugin'

But I still have this messages...

any idea?

Many thanks for your help
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: NAGIOS 4.1.1 & CPAN & check_vmware_api

Post by mcapra »

Nagios::Plugin doesn't exist in the cpan directory system anymore. This is why you are unable to install it through cpan.

Could you try running the following:

Code: Select all

apt-get install libnagios-plugin-perl
And see if ./check_vmware_api.pl works as intended? This solved the problem on my Debian 7 system.

If it's still giving you trouble after installing the libnagios-plugin-perl package, you could also try installing HTTP:Date and LWP::UserAgent through cpan.
Former Nagios employee
https://www.mcapra.com/
ziniaragon
Posts: 5
Joined: Wed May 11, 2016 5:39 am

Re: NAGIOS 4.1.1 & CPAN & check_vmware_api

Post by ziniaragon »

Hi,


it's working fine now.

Thank you for your help :)
Locked