RRD confusion
am 20.06.2005 18:36:11 von Stan Brown
I've been using a script called weathergraph on a FreeBSD box for years.
Last week I upgraded the machine, and the script stopped working.
One of the "dirty little secrets" about FreeBSD is it's poor handling of
perl upgrades. I've found that I have to reinstall all the modules I need,
after perl is upgraded on these machine. Now normally this is not a huge
deal, as I can do it the the portupgrade tool.
However in this case, it looks like this script uses a module not in the
FreeBSD ports system: Here's the line:
use RRDs;
I'm confused as to what module I need to get from CPAM to hand el this
properly.
Can someone enlighten me, please?
--
"They that would give up essential liberty for temporary safety deserve
neither liberty nor safety."
-- Benjamin Franklin
Re: RRD confusion
am 20.06.2005 20:55:44 von gbacon
In article ,
Stan Brown wrote:
: [...]
: However in this case, it looks like this script uses a module not in the
: FreeBSD ports system: Here's the line:
:
: use RRDs;
:
: I'm confused as to what module I need to get from CPAM to hand el this
: properly.
:
: Can someone enlighten me, please?
Not sure if it's available on CPAN, but according to the FAQ for
webminstats[*] on SF, you need rrdtool:
http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/
[*] http://webminstats.sourceforge.net/faq.html#installation5
Hope this helps,
Greg
--
...wherever the Welfare State is involved, the moral precept, "Thou shalt not
steal," becomes altered to say: "Thou shalt not steal, except for what thou
deemest to be a worthy cause, where thou thinkest that thou canst use the loot
for a better purpose than wouldst the victim of the theft." -- F. A. Harper
Re: RRD confusion
am 20.06.2005 21:25:17 von Stan Brown
In <11be49g83rosuba@corp.supernews.com> gbacon@hiwaay.net (Greg Bacon) writes:
>In article ,
> Stan Brown wrote:
>: [...]
>: However in this case, it looks like this script uses a module not in the
>: FreeBSD ports system: Here's the line:
>:
>: use RRDs;
>:
>: I'm confused as to what module I need to get from CPAM to hand el this
>: properly.
>:
>: Can someone enlighten me, please?
>Not sure if it's available on CPAN, but according to the FAQ for
>webminstats[*] on SF, you need rrdtool:
> http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/
>[*] http://webminstats.sourceforge.net/faq.html#installation5
Mmm, that's the rrdtool libraries themselves. I;ve got them, thanks to
ports, but I need the perl module to use them. Or at leas that's what I
_think_.
--
"They that would give up essential liberty for temporary safety deserve
neither liberty nor safety."
-- Benjamin Franklin
Re: RRD confusion
am 21.06.2005 03:01:12 von Sisyphus
"Stan Brown" wrote in message
>
> >Not sure if it's available on CPAN, but according to the FAQ for
> >webminstats[*] on SF, you need rrdtool:
>
> > http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/
>
> >[*] http://webminstats.sourceforge.net/faq.html#installation5
>
> Mmm, that's the rrdtool libraries themselves. I;ve got them, thanks to
> ports, but I need the perl module to use them. Or at leas that's what I
> _think_.
>
Google turned up that module's documentation at
http://crs.ciril.fr/public/docs/rrdtool/RRDs.html . Maybe the module itself
is there somewhere. (The documentation gives the author's email address, so
you could perhaps make use of that if need be.)
Cheers,
Rob
Re: RRD confusion
am 26.06.2005 21:07:56 von pkent
In article <42b766db$0$26758$afc38c87@news.optusnet.com.au>,
"Sisyphus" wrote:
> "Stan Brown" wrote in message
> > >Not sure if it's available on CPAN, but according to the FAQ for
> > >webminstats[*] on SF, you need rrdtool:
....
> > Mmm, that's the rrdtool libraries themselves. I;ve got them, thanks to
> > ports, but I need the perl module to use them. Or at leas that's what I
> > _think_.
Depending on how you installed rrdtool itself, you might/should already
have RRDs.pm - it just won't be in your PERL5LIB path. The perl modules
were installed as part of the rrdtool installation. On my system the
perl modules are in /usr/local/rrdtool/lib/perl:
dev:/usr/local/rrdtool/lib/perl $ ls
total 24
drwxr-xr-x 3 root root 4096 Oct 10 2004 .
drwxr-xr-x 3 root root 4096 Oct 10 2004 ..
-rw-r--r-- 1 root root 4514 Oct 10 2004 RRDp.pm
-rw-r--r-- 1 root root 3514 Oct 10 2004 RRDs.pm
drwxr-xr-x 3 root root 4096 Oct 10 2004 auto
e.g. if I run this command:
$ PERL5LIB=/usr/local/rrdtool/lib/perl perldoc RRDs
I get the docs. If you want to use the module you can of course alter
PERL5LIB, "use lib", etc. according to taste.
P
--
pkent 77 at yahoo dot, er... what's the last bit, oh yes, com
Remove the tea to reply