|
Re: Can't locate RRDs.pm or HTML/Template.pm: msg#00063db.rddtool.munin.general
Hi Lupe, Thanks for your help. Following your advice, I installed those RPMs and now got Munin basically work. Now the problem is I couldn't get plugin work. Could you point out what was wrong? -- I hope this is my last post on this thread:) This is what I did: 1. I created file plugin.conf under $CONFDIR/plugin-conf.d which contains very simple config: [cpu] user root 2. I put the plugin script cpu (copied from Munin installation) under $CONFDIR/plugins 3. Restart munin-node (I have two Munin instances installed because of the RPM installation. I use the instance installed by rpm (1.2.4) as the server and the previously installed instance (1.3.2) as the client/node) 4. I did NOT modify munin.conf (because it should graph all unless we specify "[service].graph no". I also tried adding "cpu.lable cpu" etc to munin.conf. It didn't work. 5. Manually execute munin-cron. Then I found below in the munin-node.log 2006/12/13-20:59:36 CONNECT TCP Peer: "127.0.0.1:47574" Local: "127.0.0.1:4949" Insecure directory in $ENV{PATH} while running with -T switch at ./munin-node line 482, <STDIN> line 2. 2006/12/13-20:59:36 [30074] Plugin "cpu" exited with status 2304. ---- Insecure directory in $ENV{PATH} while running with -T switch at ./munin-node line 482, <STDIN> line 3. 2006/12/13-20:59:36 [30074] Plugin "cpu" exited with status 2304. ---- 6. In the browser http://localhost/munin I didn't see any graph. i.e., if I click the localhost link, no graph shows up. Did I miss any plugin config? --- Lupe Christoph <lupe@xxxxxxxxxxxxxxxxx> wrote: > On Wednesday, 2006-12-13 at 13:41:15 -0800, Victor > wrote: > > Unfortunately > > I still got compilation error. > > I must have missed something basic but also > critical. > > Please shed light on this:) I believe I am very > close > > to the resolution... > > > Here I post the steps I did: > > > 1. Install all dependencies (cgilib, freetype2, > etc) > > > 2. In rrdTool directory, set env: > > > -- I believe the installation succeeded because I > can > > also find below files and dirctory: > > > auto(is a directory) ntmake.pl perllocal.pod > > RRDs.pm > > > under: > > > > /usr/lib/perl5/site_perl/5.8.5/lib/perl/5.8.5/i386-linux-thread-multi > > > 6. Then in the Munin bin directory > (/opt/munin/bin) I > > execute the munin-cron script (I disabled the last > 3 > > lines for debugging so that only munin-update is > ran) > > I saw below error message: > > Can't locate RRDs.pm in @INC (@INC contains: > > /usr/lib/perl5/5.8.5/i386-linux-thread-multi > > /usr/lib/perl5/5.8.5 > > > > /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi > > > /usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi > > > /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi > > > /usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi > > > /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi > > > /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi > > /usr/lib/perl5/site_perl/5.8.5 > > /usr/lib/perl5/site_perl/5.8.4 > > /usr/lib/perl5/site_perl/5.8.3 > > /usr/lib/perl5/site_perl/5.8.2 > > /usr/lib/perl5/site_perl/5.8.1 > > /usr/lib/perl5/site_perl/5.8.0 > > /usr/lib/perl5/site_perl > > > /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi > > > /usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi > > > /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi > > > /usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi > > > /usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi > > > /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi > > /usr/lib/perl5/vendor_perl/5.8.5 > > /usr/lib/perl5/vendor_perl/5.8.4 > > /usr/lib/perl5/vendor_perl/5.8.3 > > /usr/lib/perl5/vendor_perl/5.8.2 > > /usr/lib/perl5/vendor_perl/5.8.1 > > /usr/lib/perl5/vendor_perl/5.8.0 > > Your perl setup is screwed. You should only have one > version directory > in @INC. Not all from 5.8.0 till 5.8.5. > > > --- It looks Munin.pm is not looking at the > RRDs.pm > > file located under: > > > /usr/lib/perl5/site_perl/5.8.5/lib/perl/5.8.5/i386-linux-thread-multi > > (where it is installed). > > It isn't the module that isn't looking, it's perl. > You should install > RRDs.pm in one of the directories perl has in @INC. > > > Then if I copy RRDs.pm and other related files to > a > > directory Munin.pm looks at, I got error message > in my > > previous post. > > This one? > > >> Can't load > >> > '/usr/lib/perl5/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 /usr/lib/perl5/site_perl/5.8.5/Munin.pm line > 57 > >> Compilation failed in require at > >> /usr/lib/perl5/site_perl/5.8.5/Munin.pm line 57. > > That points to a badly installed librrd.so.2. All > your problems are due > to a bad installation of RRDtool. We aren't the > people who know how to > do that right. And there is probably nobady here who > knows CentOS. I > found out from Google that CentOS seems to use RPM > packages. Why don't > you try to locate an RRDtool RPM for CentOS and try > to use that? > > > How could I install them to a directory Munin.pm > looks > > at? What is the easiest way to get it work? > > The easiest way is to use ready-made packages. > > I would like to advise you that you should use a > more common platform. > When you use an exotic one like CentOS, you should > be able to help > yourself. If you can't it's probably better to ask > people who know the > platform. I've never met anybody who uses CentOS. I > could help you with > Debian, Ubuntu, SuSE Linux or Red Hat. Or Solaris > and FreeBSD. But then, > you could probably install RRDtool and Munin on all > of those without > running a single make command. > > Sorry about this. > Lupe Christoph > > PS: One last hint. Have you ever tried to answer the > question why the > linker can't find librrd.so.2? > -- > | You know we're sitting on four million pounds of > fuel, one nuclear | > | weapon and a thing that has 270,000 moving parts > built by the lowest | > | bidder. Makes you feel good, doesn't it? > | > | Rockhound in "Armageddon", 1998, about the Space > Shuttle | > ____________________________________________________________________________________ Yahoo! Music Unlimited Access over 1 million songs. http://music.yahoo.com/unlimited ------------------------------------------------------------------------- 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 |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Strange inconsistency between smart_ and hddtemp_smartctl temperature readings: 00063, it |
|---|---|
| Next by Date: | Re: Can't locate RRDs.pm or HTML/Template.pm: 00063, Lupe Christoph |
| Previous by Thread: | Re: Can't locate RRDs.pm or HTML/Template.pmi: 00063, Vincent Rivellino |
| Next by Thread: | Re: Can't locate RRDs.pm or HTML/Template.pm: 00063, Lupe Christoph |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |