From owner-freebsd-questions@FreeBSD.ORG Sun Nov 27 10:25:27 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D62FD16A41F for ; Sun, 27 Nov 2005 10:25:27 +0000 (GMT) (envelope-from fasterdisco@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1F54D43D46 for ; Sun, 27 Nov 2005 10:25:26 +0000 (GMT) (envelope-from fasterdisco@gmail.com) Received: by zproxy.gmail.com with SMTP id z31so788318nzd for ; Sun, 27 Nov 2005 02:25:26 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=JtzP1rTOU9amZwcL5cg8XpHasTfGwSn8dJE41Sbj8hWOs7GaJ9WT9PddQXm8f7YCvuSviIvuG7WwUk3LeLLkhoebnBKpHU8E8quHw3FR2PeKgGtglPv6e1pIf69QSQBwM3ZOQsXtMoz0et2koZBEj1ZdFo7kYW8YsgAMkyoyOJk= Received: by 10.65.181.10 with SMTP id i10mr4943676qbp; Sun, 27 Nov 2005 02:25:26 -0800 (PST) Received: by 10.65.43.6 with HTTP; Sun, 27 Nov 2005 02:25:26 -0800 (PST) Message-ID: Date: Sun, 27 Nov 2005 05:25:26 -0500 From: "matt ." To: Glenn Dawson In-Reply-To: <6.2.3.4.2.20051126184743.02a2f960@cobalt.antimatter.net> MIME-Version: 1.0 References: <6.2.3.4.2.20051126154801.023a3ac0@cobalt.antimatter.net> <6.2.3.4.2.20051126184743.02a2f960@cobalt.antimatter.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: Running mrtg on FreeBSD X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Nov 2005 10:25:28 -0000 On 11/26/05, Glenn Dawson wrote: > > At 05:24 PM 11/26/2005, matt . wrote > I don't think it's a bug in the port. I've installed it many times > recently and not had any problems. > > What version of Perl are you using? Version of FreeBSD? > > It looks as if the FindBin perl module is failing to find the correct > location of the mrtg script, which then causes it to look for rateup > in the wrong place. Thanks Glenn, Here are the relevant specs for both of my machines: bash-2.05b$ pkg_info | grep mrtg mrtg-2.12.2,1 The multi-router traffic grapher bash-2.05b$ uname -a FreeBSD host.foo.bar 6.0-RELEASE FreeBSD 6.0-RELEASE #2: Sat Nov 19 15:37:1= 0 EST 2005 root@foo.bar:/usr/obj/usr/src/sys/DORMIR i386 bash-2.05b$ perl -v This is perl, v5.8.7 built for i386-freebsd-64int (with 1 registered patch, see perl -V for more detail) =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D I have a 4.9 box exhibiting the exact same problem. Here are it's specs: [mbest@helium][~]$ perl -v This is perl, v5.8.0 built for i386-freebsd [mbest@helium][~]$ pkg_info | grep mrtg mrtg-2.12.2,1 The multi-router traffic grapher [mbest@helium][~]$ uname -a FreeBSD host.example.com 4.9-RELEASE FreeBSD 4.9-RELEASE #0: Mon Oct 27 1 7:51:09 GMT 2003 root@freebsd-stable.sentex.ca :/usr/obj/usr/src/sys/GENERIC i386 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D The only thing the same is the version of my MRTG port. I was unable to find the which module installs FindBin. I checked freshports.org and didn't find any port specifically related to anything called FindBin. Thanks. matt -Glenn > > > >matt > > > > > >On 11/26/05, matt . wrote: > > > > > > > > > On 11/26/05, matt . wrote: > > > > > > > > > > > > > > > > Trying this now...I'll letcha now. Thanks! > > > > > > > > > > > > > Still seeing the same error. I created /usr/local/www/mrtg owned by > > > mrtg:mrtg. I run the following in mrtg's crontab: > > > > > > */5 * * * * /usr/local/bin/mrtg /usr/local/etc/mrtg/mrtg.cfg > > > --debug=3Dcfg,dir --logging /var/log/mrtg.log > > > > > > And I see the debug check the config and dir structures ok: > > > > > > 2005-11-26 19:58:00 -- --dir: ensure path IN: '/usr/local/www/mrtg' > > > 2005-11-26 19:58:00 -- --dir: ensure path OUT: '/usr/local/www/mrtg/' > > > 2005-11-26 19:58:00 -- --dir: imagehtml =3D > > > 2005-11-26 19:58:00 -- Use of uninitialized value in concatenation (.= ) > or > > > string at /usr/local/bin/mrtg line 720. > > > 2005-11-26 19:58:00 -- Use of uninitialized value in concatenation (.= ) > or > > > string at /usr/local/bin/mrtg line 720. > > > 2005-11-26 19:58:00 -- ERROR: Can't Execute '/rateup' > > > > > > Still trying to execute /rateup. This works flawlessly when run by > root. > > > I don't get it. > > > > > > Here is line 720 of /usr/local/bin/mrtg: > > > > > > ((($MRTG_lib::OS eq 'NT' or $MRTG_lib::OS eq 'OS2') and (-e > > > "${FindBin::Bin}${MRTG_lib::SL}rateup.exe")) or > > > (($MRTG_lib::OS eq 'NW') and (-e "SYS:/Mrtg/bin/rateup.nlm")) or > > > (-x "${FindBin::Bin}${MRTG_lib::SL}rateup")) or > > > die "ERROR: Can't Execute > > > '${FindBin::Bin}${MRTG_lib::SL}rateup'\n"; > > > > > > > > > matt > > > > > > > >_______________________________________________ > >freebsd-questions@freebsd.org mailing list > >http://lists.freebsd.org/mailman/listinfo/freebsd-questions > >To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" > >