You are here

check_aws_ec2 - Can't locate Nagios/

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


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/ 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's picture
Re: check_aws_ec2 - Can't locate Nagios/

Hi Dan,

You can login via - the support guys can help you out with this issue.



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 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 - 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 certificate checked.


Duncan Ferguson
dferguson's picture
Using an external site to

Using an external site to check, everything appears to be okay

The certificate will expire in 1037 days.
The hostname ( is correctly listed in the certificate.