The Community Forums

Interact with an entire community of cPanel & WHM users.
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

RRDTool problem

Discussion in 'General Discussion' started by Cmer31, Oct 25, 2010.

  1. Cmer31

    Cmer31 Member

    Joined:
    Sep 6, 2010
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Hello.

    I would install monitorix which is more comprehensive than munin, installation goes well on all my servers except the server or there Cpanel.

    Demos: Here

    Here are the error messages
    Code:
    service monitorix restart
    Can't locate loadable object for module RRDs in @INC (@INC contains: /usr/local/lib/perl5/5.8.8/x86_64-linux /usr/local/lib/perl5/5.8.8 /usr/local/lib/perl5/site_perl/5.8.8/x86_64-linux /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl .) at /usr/sbin/monitorix.pl line 12
    Compilation failed in require at /usr/sbin/monitorix.pl line 12.
    BEGIN failed--compilation aborted at /usr/sbin/monitorix.pl line 12.
    Stopping Monitorix:                                        [  OK  ]
    Starting Monitorix: Can't locate loadable object for module RRDs in @INC (@INC contains: /usr/local/lib/perl5/5.8.8/x86_64-linux /usr/local/lib/perl5/5.8.8 /usr/local/lib/perl5/site_perl/5.8.8/x86_64-linux /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl .) at /usr/sbin/monitorix.pl line 12
    Compilation failed in require at /usr/sbin/monitorix.pl line 12.
    BEGIN failed--compilation aborted at /usr/sbin/monitorix.pl line 12.
                                                               [ÃCHOUÃ]
    Have you a solution to the problem rddtolls
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Check where RRDs.pm is located:

    Code:
    find /usr/local -name RRDs.pm -print 
    If it isn't in one of the paths noted by @INC, then put it into one of those paths. It likely isn't given that RRDTool is typically at something like /usr/local/cpanel/3rdparty/lib/perl/5.8.8/i686-linux (on a 32-bit system) instead of the normal perl paths. You may simply need to install RRDTool from source even to go with this monitoring tool.
     
  3. Cmer31

    Cmer31 Member

    Joined:
    Sep 6, 2010
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Hi.

    thank you for your prompt response

    Code:
    find /usr/local -name RRDs.pm -print
    /usr/local/lib/perl5/site_perl/5.8.8/Log/Log4perl/Appender/RRDs.pm
    /usr/local/lib/perl5/site_perl/5.8.8/RRDs.pm
    /usr/local/cpanel/3rdparty/lib/perl/5.8.8/x86_64-linux/RRDs.pm
    rrdtool is installed from yum install rrdtool
    Code:
    rrdtool -V
    RRDtool 1.2.27  Copyright 1997-2008 by Tobias Oetiker <tobi@oetiker.ch>
                   Compiled Apr  6 2008 00:00:25
    Server is x86_64

    EDIT:

    I just creat test.pl
    Lunch

    :confused::confused:
     
    #3 Cmer31, Oct 25, 2010
    Last edited: Oct 25, 2010
  4. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Check where the RRDs and RRDp directories are located (on my install they are in /usr/local/cpanel/3rdparty/lib/perl/5.8.8/i686-linux/auto) and, if the RRDs and RRDp directories aren't in /usr/local/lib/perl5/site_perl/5.8.8/auto, put them into there.

    Next, check you don't have two copies of the perl binary:

    Code:
    ls -lah /usr/bin/perl /usr/local/bin/perl
     
  5. Cmer31

    Cmer31 Member

    Joined:
    Sep 6, 2010
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Thank you very much it works.

    He had to copy from / usr/local/cpanel/3rdparty/lib/perl/5.8.8

    thx

    Code:
    service monitorix restart
    Stopping Monitorix:                                        [  OK  ]
    Starting Monitorix:                                        [  OK  ]
    
    :):):)
     
Loading...

Share This Page