You are here

check_aws_ec2 - Can't locate Nagios/Plugin.pm

5 posts / 0 new
Last post
dangibbons
dangibbons's picture
check_aws_ec2 - Can't locate Nagios/Plugin.pm

Hi,

We've just bought OpsView Pro but I can't find any links on the homepage to get support so I'll post here as I've done before....

I'm trying to get the check_aws_ec2 plugin working but it fails with 

Can't locate Nagios/Plugin.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at ./check_aws_ec2 line 12.

BEGIN failed--compilation aborted at ./check_aws_ec2 line 12.   I'm running RHEL and I executed  "yum install nagios-plugins" which installed the plugin but the ec2 command still fails with the same errors.   Any idea how I can fix this?   Thanks   Dan
smarsh
smarsh's picture
Re: check_aws_ec2 - Can't locate Nagios/Plugin.pm

Hi Dan,

You can login via http://support.opsview.com - the support guys can help you out with this issue.

Best,

Sam.

support_1
support_1's picture
I have this same issue, I've

I have this same issue, I've just tried to go to Support but auth.opsview.com appears to have an invalid certificate. Would appreciate you just posting the solution. Paul Smyth

Duncan Ferguson
dferguson's picture
The perl module Nagios:

The perl module Nagios::Plugin has been discontinued since September 2015 - see http://search.cpan.org/~mstrout/Nagios-Plugin-0.990001/lib/Nagios/Plugin.pm - if you have updated your system recently then this perl module might have been removed.

You can amend the script to use 'Monitoring::Plugin' instead and it should work without further problems.  You may also find setting the environment variable 'PERL5LIB=/usr/local/nagios/perl/lib/perl5:/opt/opsview/perl/lib/perl5' in ~nagios/.profile helps (or add the following line to the perl script: 'use "/usr/local/nagios/perl/lib/perl5";'

I will get the auth.opsview.com certificate checked.

  Duncs

Duncan Ferguson
dferguson's picture
Using an external site to

Using an external site to check auth.opsview.com, everything appears to be okay

The certificate will expire in 1037 days.
The hostname (auth.opsview.com) is correctly listed in the certificate.

Duncs