From owner-freebsd-questions@FreeBSD.ORG Sun Nov 27 00:14:42 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 646B416A41F for ; Sun, 27 Nov 2005 00:14:42 +0000 (GMT) (envelope-from fasterdisco@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id 11EA443D60 for ; Sun, 27 Nov 2005 00:14:41 +0000 (GMT) (envelope-from fasterdisco@gmail.com) Received: by zproxy.gmail.com with SMTP id z31so733313nzd for ; Sat, 26 Nov 2005 16:14:40 -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=nGR4RH8E2Op/QmjVlm5r4bE+Zl+SXPMxK1qvyYZiYGztwc/qmBJUSQVcMeCidMBjIuqImkwCgl6l5BxvatHvxEdgoaOc6qHUVUiRfRxW3314egJnWUxbkM+PRbJq+HLoTBKKIzL3ZnM07E//lqbMLQwGH77EIK2orVmtaP7Wu/Q= Received: by 10.64.201.14 with SMTP id y14mr9737210qbf; Sat, 26 Nov 2005 16:14:39 -0800 (PST) Received: by 10.65.43.6 with HTTP; Sat, 26 Nov 2005 16:14:39 -0800 (PST) Message-ID: Date: Sat, 26 Nov 2005 19:14:39 -0500 From: "matt ." To: freebsd-questions@freebsd.org In-Reply-To: <6.2.3.4.2.20051126154801.023a3ac0@cobalt.antimatter.net> 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 00:14:42 -0000 On 11/26/05, Glenn Dawson wrote: > > At 03:33 PM 11/26/2005, matt . wrote: > > > > >2005-11-24 17:55:00 -- Started mrtg with config > >'/usr/local/etc/mrtg/mrtg.cfg' > >2005-11-24 17:55:00 -- Use of uninitialized value in concatenation (.) o= r > >string at /usr/local/bin/mrtg line 720. > >2005-11-24 17:55:00 -- Use of uninitialized value in concatenation (.) o= r > >string at /usr/local/bin/mrtg line 720. > >2005-11-24 17:55:00 -- ERROR: Can't Execute '/rateup' > > The line above indicates your problem. mrtg is looking for rateup in > / instead of /usr/local/bin which is where it would normally be. This is curious to me, since when run as root it works. Why would it know rateup was in /usr/local/bin as root but not as mrtg? Did you install mrtg from ports? Yes I did. You might want to try running mrtg with --debug=3Dcfg,dir and see if > that gives an indication of why it can't find the rateup binary. Trying this now...I'll letcha now. Thanks! -Glenn > > > >If I run the same cron job as root, it works just dandy. Even O'Reilly'= s > >"Essential SNMP" states it's not necessary to run mrtg as root: > > > >Quote from section 13.1: > > > >"The next step is to make sure MRTG runs every five minutes. There's no > need > >for MRTG to be run by root; any user will do. Add a line like the > following > >to the *crontab* entry for the appropriate user." > > > >I've experienced this problem on 4.11 and 6.0. I have seen it working o= n > >another 4.11 box, however I can't figure out how they did it :-/ > > > >Is there perhaps something FreeBSD-specific I'm overlooking? thanks! > > > >kind regards, > > > >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" > >