Warrick FitzGerald | 1 Aug 2006 06:47

Can't locate RRDs.pm

I'm sure you'll all sick of see people asking about this error, but I
can't seem to find an answer so I guess I'll need to ask :)

When running ./collector I get and error that looks something like this
"Can't locate RRDs.pm in  <at> INC ( <at> INC contains: /home/cricket/cricket/lib
............"

I installed RRD exactly as the instructions in
"rrdtool-1.2.15/doc/rrdbuild.txt" explained - I did not have any problem
at all and RRD compiled like a charm.

I also then remember to run make site-perl-install as "Installing
Cricket for the Complete Beginner" indicated.

In the RRD/bindings folder I see that I now have what I guess is the
compiled RRD perl module, but I guess I must have done something wrong
as they are clearly not located somewhere that Cricket can find them.

Where did I wrong here and what can I do to correct the problem?

Thanks
Warrick

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Stephen Carville | 1 Aug 2006 07:27

Re: Can't locate RRDs.pm

Warrick FitzGerald wrote:
> I'm sure you'll all sick of see people asking about this error, but I
> can't seem to find an answer so I guess I'll need to ask :)
> 
> When running ./collector I get and error that looks something like this
> "Can't locate RRDs.pm in  <at> INC ( <at> INC contains: /home/cricket/cricket/lib
> ............"
> 
> I installed RRD exactly as the instructions in
> "rrdtool-1.2.15/doc/rrdbuild.txt" explained - I did not have any problem
> at all and RRD compiled like a charm.
> 
> I also then remember to run make site-perl-install as "Installing
> Cricket for the Complete Beginner" indicated.
> 
> In the RRD/bindings folder I see that I now have what I guess is the
> compiled RRD perl module, but I guess I must have done something wrong
> as they are clearly not located somewhere that Cricket can find them.
> 
> Where did I wrong here and what can I do to correct the problem?

Does cricket have permission to enter the directory and read files from it?

> Thanks
> Warrick
> 
> 
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
(Continue reading)

Warrick FitzGerald | 1 Aug 2006 14:23

Re: Can't locate RRDs.pm

Stephen Carville wrote:
>
> Does cricket have permission to enter the directory and read files from it?
>
>   
Ah thanks Stephen, I ran chown -R cricket.cricket * in the binding
folder and that seems to have done it ... great stuff.

I tried running collector again and now get the following:

Can't load
'/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/RRDs/RRDs.so'
for module RRDs: librrd.so.2: cannot open shared object file: No such
file or directory at
/usr/lib/perl5/5.8.5/i386-linux-thread-multi/DynaLoader.pm line 230.
 at ./collector line 32
Compilation failed in require at ./collector line 32.
BEGIN failed--compilation aborted at ./collector line 32.

I'm guessing this has something to do with your "and read files from it"
part of the statement.

Line 32: is

use lib "$Common::global::gInstallRoot/lib";
use RRDs 1.000101;

Which is defined in "cricket-conf.pl" as:

package Common::global;
(Continue reading)

Warrick FitzGerald | 1 Aug 2006 20:14

Re: Can't locate RRDs.pm

Stephen Carville wrote:
> My setup does but your's appear to be looking in
>
> /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/RRDs/
>
> try
>
> # ldd \
> /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/RRDs/RRDs.so
>
> to find out where perl expect to find out where RRDs.so expects to
> find the missing library.

Thanks Steven,

I like the way you're thinking and I'm so close I can feel it ...

ldd is unfortunately not listing the expected location though .

# ldd
/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/RRDs/RRDs.so
        librrd.so.2 => not found
        libm.so.6 => /lib/tls/libm.so.6 (0x00b23000)
        libc.so.6 => /lib/tls/libc.so.6 (0x00de9000)
        /lib/ld-linux.so.2 (0x007b1000)

looking back at my install notes, I see that I set the Env variable as
INSTALL_DIR=/usr/local/rrdtool-1.2.15

and running locate shows that this is indeed where it is located.
(Continue reading)

Warrick FitzGerald | 2 Aug 2006 03:02

Re: Can't locate RRDs.pm

Stephen Carville wrote:
>
> Quick and dirty solution is to put a symlink in a 'standard' lib
> directory.
>
> # ln -sf /usr/local/rrdtool-1.2.15/lib/librrd.so.2.0.8  \
> /usr/lib/librrd.so.2
>
> I do this, it works.
You're a legend! - Thanks mate, that worked like a charm.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
reid.x.maynard | 3 Aug 2006 16:33
Picon
Favicon

variable num-cpus Linux


I have some new linux RHEL 8-way and 16-way mixed servers.

I noticed that the (net-snmp) ssCPU... units are cumulitive; i.e. on a idle 8-way I get near 800% idle time!

I didn't see and easy way to retreive the number of CPUs via SNMP, so I created some files local test files with this info; and did the following

datasource myCPU
        ds-source       =       file:0:/local/apps/cixscm/cricket/data/%auto-target-name%
        desc            =       "Num CPUs"


then I tried to scale the graph

graph   UCD_ssCpuRawUser
        scale           =       myCPU,/

but it didn't seem to like that...

no I'm kinda lost as to a direction to take...

-Reid
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
cricket-users mailing list
cricket-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cricket-users
Stephen Carville | 1 Aug 2006 23:28

Re: Can't locate RRDs.pm

Warrick FitzGerald wrote:
> Stephen Carville wrote:
> 
>>My setup does but your's appear to be looking in
>>
>>/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/RRDs/
>>
>>try
>>
>># ldd \
>>/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/RRDs/RRDs.so
>>
>>to find out where perl expect to find out where RRDs.so expects to
>>find the missing library.
> 
> 
> Thanks Steven,
> 
> I like the way you're thinking and I'm so close I can feel it ...
> 
> ldd is unfortunately not listing the expected location though .
> 
> # ldd
> /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/RRDs/RRDs.so
>         librrd.so.2 => not found
>         libm.so.6 => /lib/tls/libm.so.6 (0x00b23000)
>         libc.so.6 => /lib/tls/libc.so.6 (0x00de9000)
>         /lib/ld-linux.so.2 (0x007b1000)
> 
> looking back at my install notes, I see that I set the Env variable as
> INSTALL_DIR=/usr/local/rrdtool-1.2.15
> 
> and running locate shows that this is indeed where it is located.
> 
> [root <at> nagios2 RRDs]# locate librrd.so.2
> /home/cricket/rrdtool-1.2.15/src/.libs/librrd.so.2.0.8
> /home/cricket/rrdtool-1.2.15/src/.libs/librrd.so.2
> /usr/local/rrdtool-1.2.15/lib/librrd.so.2.0.8
> /usr/local/rrdtool-1.2.15/lib/librrd.so.2
> 
> I guess something in my environment must be wrong because that's not
> where it's looking.
> 
> Any other ideas?

Quick and dirty solution is to put a symlink in a 'standard' lib directory.

# ln -sf /usr/local/rrdtool-1.2.15/lib/librrd.so.2.0.8  \
/usr/lib/librrd.so.2

I do this, it works.

A purist would probably set LD_LIBRARY_PATH in his crontab and in httpd.conf

> Thanks
> Warrick
> 

--

-- 
Stephen Carville <stephen <at> totalflood.com>
Unix and Network Admin
Nationwide Totalflood
6033 W. Century Blvd
Los Angeles, CA 90045
310-342-3602

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Stephen Carville | 1 Aug 2006 16:30

Re: Can't locate RRDs.pm

Warrick FitzGerald wrote:
> Stephen Carville wrote:
> 
>>Does cricket have permission to enter the directory and read files from it?
>>
>>  
> 
> Ah thanks Stephen, I ran chown -R cricket.cricket * in the binding
> folder and that seems to have done it ... great stuff.
> 
> I tried running collector again and now get the following:
> 
> Can't load
> '/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/RRDs/RRDs.so'
> for module RRDs: librrd.so.2: cannot open shared object file: No such
> file or directory at
> /usr/lib/perl5/5.8.5/i386-linux-thread-multi/DynaLoader.pm line 230.
>  at ./collector line 32
> Compilation failed in require at ./collector line 32.
> BEGIN failed--compilation aborted at ./collector line 32.

It can't find librrd.so.2.

> I'm guessing this has something to do with your "and read files from it"
> part of the statement.
> 
> Line 32: is
> 
> use lib "$Common::global::gInstallRoot/lib";
> use RRDs 1.000101;
> 
> Which is defined in "cricket-conf.pl" as:
> 
> package Common::global;
> 
> $gCricketHome = "/home/cricket";
> $gInstallRoot = "$gCricketHome/cricket";
> #$gConfigRoot = "$gCricketHome/cricket-config";
> 
> So I guess it's looking for RRDs.so in /home/cricket/cricket/lib

My setup does but your's appear to be looking in

/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/RRDs/

try

# ldd \
/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/RRDs/RRDs.so

to find out where perl expect to find out where RRDs.so expects to find 
the missing library.

> 
> 
> Should I just copy this file into that folder or is there a smarter way
> \ correct way to deal with this?
> 
> 
> Thanks
> Warrick
> 
> 
> 
> 

--

-- 
Stephen Carville <stephen <at> totalflood.com>
Unix and Network Admin
Nationwide Totalflood
6033 W. Century Blvd
Los Angeles, CA 90045
310-342-3602

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Christian Hammers | 7 Aug 2006 11:58
Favicon

Automatically drawing every element of an SNMP MIB tree?

Hello

Is it possible to draw one one graph for every sensor that is below a
specific OID tree without having to configure the exact leaf OIDs?

Foundry Routers have several slots with interface cards, with varying
numbers of temperature sensors. Their snmpwalk output look like:

	$ snmpwalk router01-xyz FOUNDRY-SN-AGENT-MIB::snAgentTempValue
	FOUNDRY-SN-AGENT-MIB::snAgentTempValue.1.1 = INTEGER: 76  \ two
	FOUNDRY-SN-AGENT-MIB::snAgentTempValue.1.2 = INTEGER: 123 /
	FOUNDRY-SN-AGENT-MIB::snAgentTempValue.2.1 = INTEGER: 92  \ two
	FOUNDRY-SN-AGENT-MIB::snAgentTempValue.2.2 = INTEGER: 125 / 
	FOUNDRY-SN-AGENT-MIB::snAgentTempValue.5.1 = INTEGER: 71  \ two
	FOUNDRY-SN-AGENT-MIB::snAgentTempValue.5.2 = INTEGER: 95  /
	FOUNDRY-SN-AGENT-MIB::snAgentTempValue.6.1 = INTEGER: 75  \ two
	FOUNDRY-SN-AGENT-MIB::snAgentTempValue.6.2 = INTEGER: 103 /
	FOUNDRY-SN-AGENT-MIB::snAgentTempValue.7.1 = INTEGER: 68  <- one
	FOUNDRY-SN-AGENT-MIB::snAgentTempValue.8.1 = INTEGER: 68  <- one

The graph description may be auto generated as well, like "sensor 6.1", 
that would be ok.

thanks,

-christian-


--

-- 
Christian Hammers             WESTEND GmbH  |  Internet-Business-Provider
Technik                       CISCO Systems Partner - Authorized Reseller
                              Lütticher Straße 10      Tel 0241/701333-11
ch <at> westend.com                D-52064 Aachen              Fax 0241/911879

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Michael Bunk | 8 Aug 2006 10:53
Favicon

Re: Automatically drawing every element of an SNMP MIB tree?

Hi,

yes, you can generate cricket config files by postprocessing eg. snmpwalk 
output with a shell or perl script.  There is no function in cricket that 
does this automatically.

Regards,
 Michael

On Monday 07 August 2006 11:58, Christian Hammers wrote:
> Hello
>
> Is it possible to draw one one graph for every sensor that is below a
> specific OID tree without having to configure the exact leaf OIDs?
>
> Foundry Routers have several slots with interface cards, with varying
> numbers of temperature sensors. Their snmpwalk output look like:
>
> 	$ snmpwalk router01-xyz FOUNDRY-SN-AGENT-MIB::snAgentTempValue
> 	FOUNDRY-SN-AGENT-MIB::snAgentTempValue.1.1 = INTEGER: 76  \ two
> 	FOUNDRY-SN-AGENT-MIB::snAgentTempValue.1.2 = INTEGER: 123 /
> 	FOUNDRY-SN-AGENT-MIB::snAgentTempValue.2.1 = INTEGER: 92  \ two
> 	FOUNDRY-SN-AGENT-MIB::snAgentTempValue.2.2 = INTEGER: 125 /
> 	FOUNDRY-SN-AGENT-MIB::snAgentTempValue.5.1 = INTEGER: 71  \ two
> 	FOUNDRY-SN-AGENT-MIB::snAgentTempValue.5.2 = INTEGER: 95  /
> 	FOUNDRY-SN-AGENT-MIB::snAgentTempValue.6.1 = INTEGER: 75  \ two
> 	FOUNDRY-SN-AGENT-MIB::snAgentTempValue.6.2 = INTEGER: 103 /
> 	FOUNDRY-SN-AGENT-MIB::snAgentTempValue.7.1 = INTEGER: 68  <- one
> 	FOUNDRY-SN-AGENT-MIB::snAgentTempValue.8.1 = INTEGER: 68  <- one
>
> The graph description may be auto generated as well, like "sensor 6.1",
> that would be ok.
>
>
> thanks,
>
> -christian-

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

Gmane