From owner-freebsd-questions@FreeBSD.ORG Sun Nov 27 01:24: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 1972B16A41F for ; Sun, 27 Nov 2005 01:24:27 +0000 (GMT) (envelope-from fasterdisco@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id B434543D64 for ; Sun, 27 Nov 2005 01:24:24 +0000 (GMT) (envelope-from fasterdisco@gmail.com) Received: by zproxy.gmail.com with SMTP id z31so739660nzd for ; Sat, 26 Nov 2005 17:24:24 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=I9asE0j0bAqwbXx7AXwqxrwwcuk4HyiHImLPME9WdvOK2LC08KMsEpRkydfSPYFWYDQAINWVXfjLBxtsb5nrxTmWGtoZl7+N0DrD1lcSx1gBkusOWxMDgbTiTlEpOGrZo8Q8gEI08u+NbVIdfeo6YI4lIbF6A345iFKxWT5VJg4= Received: by 10.65.61.11 with SMTP id o11mr2872423qbk; Sat, 26 Nov 2005 17:24:24 -0800 (PST) Received: by 10.65.43.6 with HTTP; Sat, 26 Nov 2005 17:24:23 -0800 (PST) Message-ID: Date: Sat, 26 Nov 2005 20:24:23 -0500 From: "matt ." To: freebsd-questions@freebsd.org In-Reply-To: MIME-Version: 1.0 References: <6.2.3.4.2.20051126154801.023a3ac0@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 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 01:24:27 -0000 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? 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 > >