Announcement

Collapse
No announcement yet.

ods won't start because of wrong path to RRDs.pm

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • p2im0
    replied
    another easy fix, if you are using ubuntu or debian is to do this:
    Code:
    sudo apt-get install librrds-perl

    Leave a comment:


  • Jogarem
    replied
    Ok self solved

    I thought maybe it is an option to recompile the rrdtool but before that
    I made a "configure --help" within the unpacked rrdtool source and see this:

    --enable-perl-site-install by default the rrdtool perl modules are installed
    together with rrdtool in $prefix/lib/perl. You have to
    put a 'use lib qw($prefix/lib/perl)' into your scripts

    the perl modules will get installed wherever
    your perl setup thinks it is best.

    So I have inserted the path in the ods.pl like this:
    use lib qw(/usr/local/rrdtool-1.2.23/lib/perl);

    Now the /etc/init.d/ods starts without probs

    Great Iam looking forward for the graphs

    Thomas

    Leave a comment:


  • Jogarem
    replied

    no way. the perl-config-inifiles were installed but also when I remove it and reinstall the same error occurs..

    Leave a comment:


  • kurty100
    replied
    apt-get install libconfig-inifiles-perl

    Leave a comment:


  • Jogarem
    started a topic ods won't start because of wrong path to RRDs.pm

    ods won't start because of wrong path to RRDs.pm

    Hi again,

    I have a prob with my OreonDataStorage.
    When I start the ODS with

    /etc/init.d/ods start

    I get this error:
    Can't locate RRDs.pm in @INC (@INC contains: /usr/lib/perl5/5.8.3/i586-linux-thread-multi /usr/lib/perl5/5.8.3 /usr/lib/perl5/site_perl/5.8.3/i586-linux-thread-multi /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.3/i586-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl .) at ./ods.pl line 31.
    BEGIN failed--compilation aborted at ./ods.pl line 31.

    It is correct that the RRDs.pm isn't in one of these folders but how can I tell ods the correct path (RRDs.pm is in: /usr/local/rrdtool/lib/perl/5.8.3/i586-linux-thread-multi)?
    The perl-rrdtool is installed.

    SLES 9.3
    Oreon 1.4
    MySQL 4.1
    Nagios 2.9
    rrdtool 1.2.23

    Kind regards
    Thomas
Working...
X