Can't locate Nagios/Report.pm in @INC error
Posted: Thu Jun 09, 2016 9:20 am
Hi,
While running the one example i am getting the below error message. Could you please help me ?
[rardhani1@lussvpnagiosxi00 examples]$ perl load_month_avail_records
Can't locate Nagios/Report.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 load_month_avail_records line 5.
BEGIN failed--compilation aborted at load_month_avail_records line 5.
[rardhani1@lussvpnagiosxi00 examples]$ head load_month_avail_records
#!/usr/bin/perl -w
use strict ;
use Nagios::Report ;
use DBI ;
my @rep_periods = qw(
24x7
Other_Report_Period
Here is the current version of Perl on our system:
[nagios@lussvpnagiosxi00 ~]$ perl -v
This is perl, v5.10.1 (*) built for x86_64-linux-thread-multi
Copyright 1987-2009, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
Version of Nagios XI is v5.2.3
Here is the current version of OS on our system:
[rardhani1@lussvpnagiosxi00 examples]$ cat /proc/version
Linux version 2.6.32-573.7.1.el6.x86_64 ([email protected]) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-16) (GCC) ) #1 SMP Thu Sep 10 13:42:16 EDT 2015
[rardhani1@lussvpnagiosxi00 examples]$ lsb_release -a
LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: RedHatEnterpriseServer
Description: Red Hat Enterprise Linux Server release 6.7 (Santiago)
Release: 6.7
Codename: Santiago
While running the one example i am getting the below error message. Could you please help me ?
[rardhani1@lussvpnagiosxi00 examples]$ perl load_month_avail_records
Can't locate Nagios/Report.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 load_month_avail_records line 5.
BEGIN failed--compilation aborted at load_month_avail_records line 5.
[rardhani1@lussvpnagiosxi00 examples]$ head load_month_avail_records
#!/usr/bin/perl -w
use strict ;
use Nagios::Report ;
use DBI ;
my @rep_periods = qw(
24x7
Other_Report_Period
Here is the current version of Perl on our system:
[nagios@lussvpnagiosxi00 ~]$ perl -v
This is perl, v5.10.1 (*) built for x86_64-linux-thread-multi
Copyright 1987-2009, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
Version of Nagios XI is v5.2.3
Here is the current version of OS on our system:
[rardhani1@lussvpnagiosxi00 examples]$ cat /proc/version
Linux version 2.6.32-573.7.1.el6.x86_64 ([email protected]) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-16) (GCC) ) #1 SMP Thu Sep 10 13:42:16 EDT 2015
[rardhani1@lussvpnagiosxi00 examples]$ lsb_release -a
LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: RedHatEnterpriseServer
Description: Red Hat Enterprise Linux Server release 6.7 (Santiago)
Release: 6.7
Codename: Santiago