Home
Reading
Searching
Subscribe
Sponsors
Statistics
Posting
Contact
Spam
Lists
Links
About
Hosting
Filtering
Features Download
Marketing
Archives
FAQ
Blog
 
Gmane
From: Alex Shepard <ashepard <at> u.washington.edu>
Subject: Re: Newbie with Python issue
Newsgroups: gmane.network.flow-tools.user
Date: Friday 6th April 2007 17:46:55 UTC (over 9 years ago)
Dwann,

I believe what's missing is the python rrdtool module.

Try this:
artemis:~ alexs$ python -c 'import rrdtool'

If you get something like:
Traceback (most recent call last):
   File "", line 1, in ?
ImportError: No module named rrdtool

Then you need to find the 'python-rrdtool' RPM (it appears to be on  
RPMFind) or build the source from http://sourceforge.net/projects/py-

rrdtool/

HTH,
alex

On Apr 6, 2007, at 5:49 AM, Dwann Hall wrote:

> I am new to flow tools and Linux for that matter. I was able to  
> stumble through getting flow-tools configured. I am able to get  
> flow-report to work as well. But when I try to run flow-rpt2rrd, I  
> get an error when python tries to "import rrdtool". I thought is  
> was a profile error, so inserted the path to librrd.so.2 into my  
> path but to no avail. I am poised to blow away my CentOS box and  
> start all over again but I would like to get over this last hurdle  
> before resorting to rebuilding my box.
>
> [[email protected] ~]# flow-cat /var/netflow/ft/ft- 
> v05.2007-04-03.164001-0400 | flow-report -s/usr/local/netflow/var/ 
> cfg/IP-Port.cfg -Stest | flow-rpt2rrd -kpercent -p rrds
> Traceback (most recent call last):
>   File "/usr/local/netflow/bin/flow-rpt2rrd", line 5, in ?
>     import rrdtool
> ImportError: librrd.so.2: cannot open shared object file: No such  
> file or directory
>
> [[email protected] ~]# locate librrd.so.2
> /usr/local/rrdtool/lib/librrd.so.2
> /usr/local/rrdtool/lib/librrd.so.2.0.9
> /usr/local/rrdtool-1.2.19/lib/librrd.so.2
> /usr/local/rrdtool-1.2.19/lib/librrd.so.2.0.9
> /var/netflow/installs/rrdtool-1.2.19/src/.libs/librrd.so.2
> /var/netflow/installs/rrdtool-1.2.19/src/.libs/librrd.so.2.0.9
> [[email protected] ~]# echo $PATH
> /usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/rrdtool/lib:/usr/ 
> local/rrdtool-1.2.19/lib:/usr/local/RRDTool/bin:/usr/local/flow- 
> tools/bin:/usr/local/netflow/bin:/usr/local/rrdtool-1.2.19:/usr/ 
> local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/ 
> bin:/root/bin
>
> ~Dwann
>
>
> Dwann A. Hall
> Information Technology Services
> Kennesaw State University
> [email protected]
> _______________________________________________
> Flow-tools mailing list
> [email protected]
> http://mailman.splintered.net/mailman/listinfo/flow-tools
 
CD: 3ms