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
Can't locate Nagios/Report.pm in @INC error
-
raamardhani7
- Posts: 459
- Joined: Tue Jun 02, 2015 12:36 am
Re: Can't locate Nagios/Report.pm in @INC error
Is the Nagios::Report perl module installed?
Try installing it in cpan:
Try installing it in cpan:
Code: Select all
cpan -i Nagios::ReportBe sure to check out our Knowledgebase for helpful articles and solutions!
-
raamardhani7
- Posts: 459
- Joined: Tue Jun 02, 2015 12:36 am
Re: Can't locate Nagios/Report.pm in @INC error
Hi team,
thanks a lot for your quick response. this worked for me.
thanks a lot for your quick response. this worked for me.
Re: Can't locate Nagios/Report.pm in @INC error
I am glad I could help! 
Be sure to check out our Knowledgebase for helpful articles and solutions!