May 10 13:52:25 nagiosprodxi1 rrdcached[13497]: queue_thread_main: rrd_update_r (/usr/local/nagios/share/perfdata/MY1PUPRDZAFDB01/Disk__All_Partitions.rrd) failed with status -1. (/usr/local/nagios/share/perfdata/MY1PUPRDZAFDB01/Disk__All_Partitions.rrd: expected 13 data source readings (got 12) from 1462858619)
May 10 13:52:25 nagiosprodxi1 rrdcached[13497]: queue_thread_main: rrd_update_r (/usr/local/nagios/share/perfdata/smsgdrclweb01/Disk__All_Partitions.rrd) failed with status -1. (/usr/local/nagios/share/perfdata/smsgdrclweb01/Disk__All_Partitions.rrd: expected 8 data source readings (got 7) from 1462858629)
May 10 13:52:26 nagiosprodxi1 rrdcached[13497]: queue_thread_main: rrd_update_r (/usr/local/nagios/share/perfdata/MXiDRAP9/Disk__All_Partitions.rrd) failed with status -1. (/usr/local/nagios/share/perfdata/MXiDRAP9/Disk__All_Partitions.rrd: expected 8 data source readings (got 7) from 1462858929)
May 10 13:52:26 nagiosprodxi1 rrdcached[13497]: queue_thread_main: rrd_update_r (/usr/local/nagios/share/perfdata/MY1PWPRDETPDB01/Disk__Drive_All.rrd) failed with status -1. (/usr/local/nagios/share/perfdata/MY1PWPRDETPDB01/Disk__Drive_All.rrd: expected 12 data source readings (got 6) from 1462858629)
So to fix this I need run run fix_ds_quantity.sh which needs perl-RRD-Simple
Unfortunately this also overwrites the rrdtool-perl version 1.44 that is needed by rrdcached.
[nagios@nagiosprodxi3 raja]$ sudo yum list installed |grep rrdtool
rrdtool.x86_64 1.3.8-7.el6 @rhel-6-server-rpms
rrdtool-python.x86_64 1.3.8-7.el6 @rhel-6-server-optional-rpms
[nagios@nagiosprodxi3 raja]$ rrdtool
RRDtool 1.4.4 Copyright 1997-2010 by Tobias Oetiker <[email protected]>
Compiled Apr 21 2016 10:46:24
Usage: rrdtool [options] command command_options
Valid commands: create, update, updatev, graph, graphv, dump, restore,
last, lastupdate, first, info, fetch, tune,
resize, xport, flushcached
RRDtool is distributed under the Terms of the GNU General
Public License Version 2. (www.gnu.org/copyleft/gpl.html)
For more information read the RRD manpages
[nagios@nagiosprodxi3 raja]$
Can someone please assist on steps to get both running without breaking each other? Thanks.
cd /tmp
wget http://search.cpan.org/CPAN/authors/id/N/NI/NICOLAW/RRD-Simple-1.44.tar.gz
tar zxvf RRD-Simple-1.44.tar.gz
cd RRD-Simple-1.44
perl Makefile.PL
perl Build
perl Build test
perl Build install
This way, you should be able to avoid yum dependencies. Hopes this help.
Be sure to check out our Knowledgebase for helpful articles and solutions!
[nagios@nagiosprodxi1 RRD-Simple-1.44]$ perl Makefile.PL
# running Build.PL
Checking prerequisites...
requires:
! RRDs is not installed
ERRORS/WARNINGS FOUND IN PREREQUISITES. You may wish to install the versions
of the modules indicated above before proceeding with this installation
Run 'Build installdeps' to install missing prerequisites.
Created MYMETA.yml and MYMETA.json
Creating new 'Build' script for 'RRD-Simple' version '1.44'
Thank you for downloading RRD-Simple
I would like to find out how many people are using this software,
and on what operating systems and Perl versions. If you have an
internet connection, may I transmit the following information:
http://perlgirl.org.uk/lib/usage.cgi?name=RRD::Simple&version=1.44&osname=linux&archname=x86_64-linux-thread-multi&osver=linux&perlver=5.010001
Send this anonymous information? [n ]
[nagios@nagiosprodxi2 update_rrd]$ sudo cpan RRD:Simple
CPAN: Storable loaded ok (v2.51)
Reading '/root/.cpan/Metadata'
Database was generated on Thu, 12 May 2016 01:17:01 GMT
Running install for module 'RRD::Simple'
CPAN: Digest::SHA loaded ok (v5.47)
CPAN: Compress::Zlib loaded ok (v2.021)
Checksum for /root/.cpan/sources/authors/id/N/NI/NICOLAW/RRD-Simple-1.44.tar.gz ok
CPAN: Archive::Tar loaded ok (v1.58)
RRD-Simple-1.44/
RRD-Simple-1.44/LICENSE
RRD-Simple-1.44/README
RRD-Simple-1.44/Changes
RRD-Simple-1.44/TODO
RRD-Simple-1.44/examples/
RRD-Simple-1.44/examples/mem_usage-monthly.png
RRD-Simple-1.44/examples/network.pl
RRD-Simple-1.44/examples/meminfo-daily.png
RRD-Simple-1.44/examples/statlogs.pl
RRD-Simple-1.44/examples/processes.pl
RRD-Simple-1.44/examples/README
RRD-Simple-1.44/examples/iostat-hda-daily.png
RRD-Simple-1.44/examples/vmstat.pl
RRD-Simple-1.44/examples/mod_perl.pl
RRD-Simple-1.44/examples/rrd-server/
RRD-Simple-1.44/examples/rrd-server/bin/
RRD-Simple-1.44/examples/rrd-server/bin/rrd-client-switches.pl
RRD-Simple-1.44/examples/rrd-server/bin/rrd-client-infrant.pl
RRD-Simple-1.44/examples/rrd-server/bin/spider.sh
RRD-Simple-1.44/examples/rrd-server/bin/rrd-server.pl
RRD-Simple-1.44/examples/rrd-server/bin/rrd-client-mta-traffic.pl
RRD-Simple-1.44/examples/rrd-server/bin/rrd-client.pl
RRD-Simple-1.44/examples/rrd-server/bin/snmp.sh
RRD-Simple-1.44/examples/rrd-server/bin/rrd-client-nagios-perfdata.pl
RRD-Simple-1.44/examples/rrd-server/README
RRD-Simple-1.44/examples/rrd-server/etc/
RRD-Simple-1.44/examples/rrd-server/etc/rrd-httpd.conf
RRD-Simple-1.44/examples/rrd-server/etc/graph.defs
RRD-Simple-1.44/examples/rrd-server/etc/rrd.me.uk.conf
RRD-Simple-1.44/examples/rrd-server/etc/create.defs
RRD-Simple-1.44/examples/rrd-server/etc/xinetd-rrd-client.conf
RRD-Simple-1.44/examples/rrd-server/cgi-bin/
RRD-Simple-1.44/examples/rrd-server/cgi-bin/by_graph.tmpl
RRD-Simple-1.44/examples/rrd-server/cgi-bin/rrd-server.cgi
RRD-Simple-1.44/examples/rrd-server/cgi-bin/devel/
RRD-Simple-1.44/examples/rrd-server/cgi-bin/devel/error.tmpl
RRD-Simple-1.44/examples/rrd-server/cgi-bin/devel/foo.tmpl
RRD-Simple-1.44/examples/rrd-server/cgi-bin/devel/export.tmpl
RRD-Simple-1.44/examples/rrd-server/cgi-bin/devel/RRDBrowseCommon.pm
RRD-Simple-1.44/examples/rrd-server/cgi-bin/devel/edit_include.tmpl
RRD-Simple-1.44/examples/rrd-server/cgi-bin/devel/rrd-export.cgi
RRD-Simple-1.44/examples/rrd-server/cgi-bin/footer.tmpl
RRD-Simple-1.44/examples/rrd-server/cgi-bin/by_host.tmpl
RRD-Simple-1.44/examples/rrd-server/cgi-bin/index.tmpl
RRD-Simple-1.44/examples/rrd-server/cgi-bin/rrd-browse.cgi
RRD-Simple-1.44/examples/rrd-server/cgi-bin/list_graphs.tmpl
RRD-Simple-1.44/examples/rrd-server/cgi-bin/host.tmpl
RRD-Simple-1.44/examples/rrd-server/cgi-bin/header.tmpl
RRD-Simple-1.44/examples/rrd-server/cgi-bin/instructions.tmpl
RRD-Simple-1.44/examples/rrd-server/cgi-bin/templates/
RRD-Simple-1.44/examples/rrd-server/cgi-bin/templates/theme-red.css
RRD-Simple-1.44/examples/rrd-server/cgi-bin/templates/theme-magenta.css
RRD-Simple-1.44/examples/rrd-server/cgi-bin/templates/theme-yellow.css
RRD-Simple-1.44/examples/rrd-server/cgi-bin/templates/ubuntu-include.html
RRD-Simple-1.44/examples/rrd-server/cgi-bin/templates/theme-cyan.css
RRD-Simple-1.44/examples/rrd-server/cgi-bin/templates/solaris-include.html
RRD-Simple-1.44/examples/rrd-server/cgi-bin/templates/rhel-include.html
RRD-Simple-1.44/examples/rrd-server/cgi-bin/templates/cisco-include.html
RRD-Simple-1.44/examples/rrd-server/cgi-bin/templates/theme-ubuntu.css
RRD-Simple-1.44/examples/rrd-server/cgi-bin/templates/theme-green.css
RRD-Simple-1.44/examples/rrd-server/cgi-bin/templates/windows-include.html
RRD-Simple-1.44/examples/rrd-server/cgi-bin/templates/netbsd-include.html
RRD-Simple-1.44/examples/rrd-server/cgi-bin/list_hosts.tmpl
RRD-Simple-1.44/examples/ApacheAccessLogActivity.pl
RRD-Simple-1.44/examples/loadavg.pl
RRD-Simple-1.44/examples/df.pl
RRD-Simple-1.44/examples/ColloquyBotLogParser.pl
RRD-Simple-1.44/examples/vmstat-cpu-daily.png
RRD-Simple-1.44/examples/hddtemp.pl
RRD-Simple-1.44/examples/foo.pl
RRD-Simple-1.44/examples/graph2-daily.png
RRD-Simple-1.44/examples/graph2.pl
RRD-Simple-1.44/examples/meminfo.pl
RRD-Simple-1.44/examples/iostat.pl
RRD-Simple-1.44/examples/hddtemp-daily.png
RRD-Simple-1.44/examples/example_apache_monitoring.png
RRD-Simple-1.44/examples/disk-capacity-daily.png
RRD-Simple-1.44/examples/graph.pl
RRD-Simple-1.44/META.yml
RRD-Simple-1.44/lib/
RRD-Simple-1.44/lib/RRD/
RRD-Simple-1.44/lib/RRD/Simple/
RRD-Simple-1.44/lib/RRD/Simple/Examples.pod
RRD-Simple-1.44/lib/RRD/Simple.pm
RRD-Simple-1.44/complain.txt
RRD-Simple-1.44/Build.PL
RRD-Simple-1.44/t/
RRD-Simple-1.44/t/21synopsis.t
RRD-Simple-1.44/t/20compile.t
RRD-Simple-1.44/t/11pod_coverage.t
RRD-Simple-1.44/t/33correct_spelling.t
RRD-Simple-1.44/t/25info.t
RRD-Simple-1.44/t/24retention_period.t
RRD-Simple-1.44/t/31create_assume_rrd_filename.t
RRD-Simple-1.44/t/35average_hrule.t
RRD-Simple-1.44/t/28heartbeat.t
RRD-Simple-1.44/t/29on_missing_ds.t
RRD-Simple-1.44/t/21synopsis_old.t
RRD-Simple-1.44/t/26add_source.t
RRD-Simple-1.44/t/answers.pl
RRD-Simple-1.44/t/27rename_source.t
RRD-Simple-1.44/t/23graph.t
RRD-Simple-1.44/t/10pod.t
RRD-Simple-1.44/t/22last_value.t
RRD-Simple-1.44/t/30assume_rrd_filename.t
RRD-Simple-1.44/t/32exported_function_interface.t
RRD-Simple-1.44/t/36no_sources.t
RRD-Simple-1.44/t/34populate_test_data.t
RRD-Simple-1.44/MANIFEST
RRD-Simple-1.44/INSTALL
RRD-Simple-1.44/Makefile.PL
RRD-Simple-1.44/NOTICE
CPAN: File::Temp loaded ok (v0.22)
CPAN: YAML loaded ok (v1.13)
CPAN: CPAN::Meta::Requirements loaded ok (v2.127)
CPAN: Parse::CPAN::Meta loaded ok (v1.4414)
CPAN: CPAN::Meta loaded ok (v2.143240)
CPAN: Module::Build loaded ok (v0.421)
Configuring N/NI/NICOLAW/RRD-Simple-1.44.tar.gz with Build.PL
+-----------------------------------------------------------------------------+
| ERROR! -- Could not load RRDs.pm |
| |
| RRD::Simple requires RRDs.pm (a part of RRDtool) in order to function. You |
| can download a copy of RRDtool from http://www.rrdtool.org. See the INSTALL |
| document for more details. |
+-----------------------------------------------------------------------------+
Checking prerequisites...
requires:
! RRDs is not installed
ERRORS/WARNINGS FOUND IN PREREQUISITES. You may wish to install the versions
of the modules indicated above before proceeding with this installation
Created MYMETA.yml and MYMETA.json
Creating new 'Build' script for 'RRD-Simple' version '1.44'
Thank you for downloading RRD-Simple
I would like to find out how many people are using this software,
and on what operating systems and Perl versions. If you have an
internet connection, may I transmit the following information:
http://perlgirl.org.uk/lib/usage.cgi?name=RRD::Simple&version=1.44&osname=linux&archname=x86_64-linux-thread-multi&osver=linux&perlver=5.010001
Send this anonymous information? [n ]
n
NICOLAW/RRD-Simple-1.44.tar.gz
/usr/bin/perl Build.PL --installdirs site -- OK
Running Build for N/NI/NICOLAW/RRD-Simple-1.44.tar.gz
CPAN: Module::CoreList loaded ok (v2.18)
---- Unsatisfied dependencies detected during ----
---- NICOLAW/RRD-Simple-1.44.tar.gz ----
RRDs [requires]
Shall I follow them and prepend them to the queue
of modules we are processing right now? [yes]
Running install for module 'RRDs'
The module RRDs isn't available on CPAN.
Either the module has not yet been uploaded to CPAN, or it is
temporary unavailable. Please contact the author to find out
more about the status. Try 'i RRDs'.
NICOLAW/RRD-Simple-1.44.tar.gz
Has already been unwrapped into directory /root/.cpan/build/RRD-Simple-1.44-qhCDUK
NICOLAW/RRD-Simple-1.44.tar.gz
Has already been prepared
Running Build for N/NI/NICOLAW/RRD-Simple-1.44.tar.gz
Building RRD-Simple
NICOLAW/RRD-Simple-1.44.tar.gz
./Build -- OK
Running Build test
t/10pod.t .......................... ok
t/11pod_coverage.t ................. 1/1
# Failed test 'Pod coverage on RRD::Simple'
# at /usr/local/share/perl5/Test/Pod/Coverage.pm line 133.
# RRD::Simple: requiring 'RRD::Simple' failed
# Looks like you failed 1 test of 1.
t/11pod_coverage.t ................. Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/1 subtests
t/20compile.t ...................... skipped: RRDs.pm *MUST* be installed!
t/21synopsis.t ..................... skipped: RRDs.pm *MUST* be installed!
t/21synopsis_old.t ................. skipped: RRDs.pm *MUST* be installed!
t/22last_value.t ................... skipped: RRDs.pm *MUST* be installed!
t/23graph.t ........................ skipped: RRDs.pm *MUST* be installed!
t/24retention_period.t ............. skipped: RRDs.pm *MUST* be installed!
t/25info.t ......................... skipped: RRDs.pm *MUST* be installed!
t/26add_source.t ................... skipped: RRDs *MUST* be installed!
t/27rename_source.t ................ skipped: RRDs.pm *MUST* be installed!
t/28heartbeat.t .................... skipped: RRDs.pm *MUST* be installed!
t/29on_missing_ds.t ................ skipped: RRDs *MUST* be installed!
t/30assume_rrd_filename.t .......... skipped: RRDs.pm *MUST* be installed!
t/31create_assume_rrd_filename.t ... skipped: RRDs.pm *MUST* be installed!
t/32exported_function_interface.t .. skipped: RRDs.pm *MUST* be installed!
t/33correct_spelling.t ............. skipped: RRDs.pm *MUST* be installed!
t/34populate_test_data.t ........... skipped: RRDs.pm *MUST* be installed!
t/35average_hrule.t ................ skipped: RRDs.pm *MUST* be installed!
t/36no_sources.t ................... skipped: RRDs.pm *MUST* be installed!
Test Summary Report
-------------------
t/11pod_coverage.t (Wstat: 256 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 1
Files=20, Tests=3, 0 wallclock secs ( 0.06 usr 0.03 sys + 0.67 cusr 0.16 csys = 0.92 CPU)
Result: FAIL
Failed 1/20 test programs. 1/3 subtests failed.
NICOLAW/RRD-Simple-1.44.tar.gz
one dependency not OK (RRDs); additionally test harness failed
./Build test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports NICOLAW/RRD-Simple-1.44.tar.gz
[nagios@nagiosprodxi2 update_rrd]$
[nagios@nagiosprodxi2 libexec]$ sudo cpan RRD:Simple
CPAN: Storable loaded ok (v2.51)
Reading '/root/.cpan/Metadata'
Database was generated on Thu, 12 May 2016 01:17:01 GMT
CPAN: Module::CoreList loaded ok (v2.18)
RRD::Simple is up to date (1.44).
[nagios@nagiosprodxi2 update_rrd]$ ./updaterrd_ds.sh
Batch process started at Thu May 12 13:26:50 MYT 2016
Populating list of RRDs from the dircetory: /usr/local/nagios/share/perfdata/
Can't locate RRDs.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 /usr/local/share/perl5/RRD/Simple.pm line 27.
BEGIN failed--compilation aborted at /usr/local/share/perl5/RRD/Simple.pm line 27.
Compilation failed in require at ./addSource.pl line 4.
BEGIN failed--compilation aborted at ./addSource.pl line 4.
Can't locate RRDs.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 /usr/local/share/perl5/RRD/Simple.pm line 27.
BEGIN failed--compilation aborted at /usr/local/share/perl5/RRD/Simple.pm line 27.
Compilation failed in require at ./addSource.pl line 4.
BEGIN failed--compilation aborted at ./addSource.pl line 4.
Fixing permissions for file: /usr/local/nagios/share/perfdata/MXIDEVDB1/Disk__Exemption_All_Others.rrd
/usr/local/nagios/share/perfdata/MXIDEVDB1/Disk__Exemption_All_Others.rrd updated with 2 additional datasource(s)
I see that you are running the updaterrd_ds.sh script as the nagios user and that could be the problem.
Sometimes when a perl module is installed, it is installed with incorrect permissions and only the root account can access it.
That is what I think it could be.
Either run it as root and see if that works or search for the RRDs.pm module and make sure the nagios user has access to it.
You can search for it by running this as root.
tgriep wrote:I see that you are running the updaterrd_ds.sh script as the nagios user and that could be the problem.
Sometimes when a perl module is installed, it is installed with incorrect permissions and only the root account can access it.
That is what I think it could be.
Either run it as root and see if that works or search for the RRDs.pm module and make sure the nagios user has access to it.
You can search for it by running this as root.
[nagios@nagiosprodxi2 update_rrd]$ sudo ./updaterrd_ds.sh
Batch process started at Fri May 13 09:30:14 MYT 2016
Populating list of RRDs from the dircetory: /usr/local/nagios/share/perfdata/
Can't locate RRDs.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 /usr/local/share/perl5/RRD/Simple.pm line 27.
BEGIN failed--compilation aborted at /usr/local/share/perl5/RRD/Simple.pm line 27.
Compilation failed in require at ./addSource.pl line 4.
BEGIN failed--compilation aborted at ./addSource.pl line 4.
Can't locate RRDs.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 /usr/local/share/perl5/RRD/Simple.pm line 27.
BEGIN failed--compilation aborted at /usr/local/share/perl5/RRD/Simple.pm line 27.
Compilation failed in require at ./addSource.pl line 4.
BEGIN failed--compilation aborted at ./addSource.pl line 4.
Fixing permissions for file: /usr/local/nagios/share/perfdata/MXIDEVDB1/Disk__Exemption_All_Others.rrd
/usr/local/nagios/share/perfdata/MXIDEVDB1/Disk__Exemption_All_Others.rrd updated with 2 additional datasource(s)
^C[nagios@nagiosprodxi2 update_rrd]$ cd /
[nagios@nagiosprodxi2 /]$ sudo find / -name RRDs.pm
/tmp/raja/rrdtool-1.4.4/bindings/perl-shared/blib/lib/RRDs.pm
/tmp/raja/rrdtool-1.4.4/bindings/perl-shared/RRDs.pm
/opt/rrdtool-1.4.4/lib/perl/5.10.1/x86_64-linux-thread-multi/RRDs.pm
/opt/rrdtool-1.5.4/lib/perl/5.10.1/x86_64-linux-thread-multi/RRDs.pm
[nagios@nagiosprodxi2 /]$
[nagios@nagiosprodxi2 /]$ sudo find / -name Simple.pm
/usr/lib64/perl5/LWP/Simple.pm
/usr/share/perl5/Error/Simple.pm
/usr/share/perl5/Locale/Maketext/Simple.pm
/usr/share/perl5/Log/Message/Simple.pm
/usr/share/perl5/Filter/Simple.pm
/usr/share/perl5/DBIx/Simple.pm
/usr/share/perl5/XML/Simple.pm
/usr/share/perl5/LWP/Simple.pm
/usr/share/perl5/Test/Simple.pm
/usr/share/perl5/Pod/Simple.pm
/usr/local/share/perl5/Test/Simple.pm
/usr/local/share/perl5/Test/Deep/Cache/Simple.pm
/usr/local/share/perl5/RRD/Simple.pm
/root/.cpan/build/GD-2.56-bNQ4cF/lib/GD/Simple.pm
/root/.cpan/build/Test-Simple-1.001014-HyNw4A/lib/Test/Simple.pm
/root/.cpan/build/Test-Simple-1.001014-HyNw4A/blib/lib/Test/Simple.pm
/root/.cpan/build/RRD-Simple-1.44-Bl1ZTC/lib/RRD/Simple.pm
/root/.cpan/build/RRD-Simple-1.44-Bl1ZTC/blib/lib/RRD/Simple.pm
/root/.cpan/build/RRD-Simple-1.44-ymdNHw/lib/RRD/Simple.pm
/root/.cpan/build/RRD-Simple-1.44-ymdNHw/blib/lib/RRD/Simple.pm
/root/.cpan/build/Module-Runtime-0.014-9UMorm/t/Simple.pm
/root/.cpan/build/Test-Pod-Coverage-1.10-dkQ9c0/t/Simple.pm
/root/.cpan/build/Storable-2.51-Ix2EvC/t/compat/Test/Simple.pm
/root/.cpan/build/RRD-Simple-1.44-nt70UT/lib/RRD/Simple.pm
/root/.cpan/build/RRD-Simple-1.44-nt70UT/blib/lib/RRD/Simple.pm
/root/.cpan/build/Test-Deep-1.120-ZYIen9/lib/Test/Deep/Cache/Simple.pm
/root/.cpan/build/Test-Deep-1.120-ZYIen9/blib/lib/Test/Deep/Cache/Simple.pm
/root/.cpan/build/RRD-Simple-1.44-qhCDUK/lib/RRD/Simple.pm
/root/.cpan/build/RRD-Simple-1.44-qhCDUK/blib/lib/RRD/Simple.pm
/root/.cpan/build/ExtUtils-MakeMaker-7.04-ZOiuG9/t/lib/Test/Simple.pm
/tmp/raja/RRD-Simple-1.44/lib/RRD/Simple.pm
/tmp/raja/RRD-Simple-1.44/blib/lib/RRD/Simple.pm
[nagios@nagiosprodxi2 /]$
What files do I need to copy and where to put them so that the script wont complain it cannot find RRDs.pm?
Can I just dump Simple.pm and RRDs.pm in the same directory as the script and point it there?
Sorry I am not familiar with Perl.
Batch process started at Wed May 18 14:41:47 MYT 2016
Populating list of RRDs from the dircetory: /usr/local/nagios/share/perfdata/
Can't locate loadable object for module RRDs 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 /usr/local/share/perl5/RRD/Simple.pm line 27
Compilation failed in require at /usr/local/share/perl5/RRD/Simple.pm line 27.
BEGIN failed--compilation aborted at /usr/local/share/perl5/RRD/Simple.pm line 27.
Compilation failed in require at ./addSource.pl line 4.
BEGIN failed--compilation aborted at ./addSource.pl line 4.
Can't locate loadable object for module RRDs 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 /usr/local/share/perl5/RRD/Simple.pm line 27