From owner-freebsd-questions@FreeBSD.ORG Sun Nov 27 02:57:06 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 8DD3716A440 for ; Sun, 27 Nov 2005 02:57:06 +0000 (GMT) (envelope-from glenn@antimatter.net) Received: from cobalt.antimatter.net (cobalt.antimatter.net [69.55.224.239]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3E71943D4C for ; Sun, 27 Nov 2005 02:57:04 +0000 (GMT) (envelope-from glenn@antimatter.net) Received: from glenn-mobile.antimatter.net (cpe-66-91-226-109.san.res.rr.com [66.91.226.109]) (authenticated bits=0) by cobalt.antimatter.net (8.13.4/8.13.4) with ESMTP id jAR3QZQK021503 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 26 Nov 2005 19:26:35 -0800 X-MailKey: purple frogs are falling from the sky Message-Id: <6.2.3.4.2.20051126184743.02a2f960@cobalt.antimatter.net> X-Mailer: QUALCOMM Windows Eudora Version 6.2.3.4 Date: Sat, 26 Nov 2005 18:52:19 -0800 To: "matt ." , freebsd-questions@freebsd.org From: Glenn Dawson In-Reply-To: References: <6.2.3.4.2.20051126154801.023a3ac0@cobalt.antimatter.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Cc: 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 02:57:07 -0000 At 05:24 PM 11/26/2005, matt . wrote: >I created a symlink pointing /rateup to /usr/local/bin/rateup. MRTG is now >working, however there I see these warnings in the log: > >2005-11-26 20:20:00 -- Started mrtg with config >'/usr/local/etc/mrtg/mrtg.cfg' >2005-11-26 20:20:00 -- Use of uninitialized value in concatenation (.) or >string at /usr/local/bin/mrtg line 720. >2005-11-26 20:20:00 -- Use of uninitialized value in concatenation (.) or >string at /usr/local/bin/mrtg line 744. > >So, in summary so far, if I run the cron job as root, it works nicely with >no complaints. > >If I run it out of the box as mrtg (meaning after installing from ports and >not makeing any funky symlinks for "rateup") it complains it can't fine >'/rateup', which makes sense because it's not there. If I add the symlink, >the cron job will run but with the above complaints. > >Is there possibly a bug in the latest MRTG port? 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. -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=cfg,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 = > > 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"