Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Nov 2005 19:14:39 -0500
From:      "matt ." <fasterdisco@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Running mrtg on FreeBSD
Message-ID:  <a97e11c20511261614r4a85d5e6l87550ad28d6a5243@mail.gmail.com>
In-Reply-To: <6.2.3.4.2.20051126154801.023a3ac0@cobalt.antimatter.net>
References:  <a97e11c20511261533i7f48d1fk4c5a9b46ea575f5@mail.gmail.com> <6.2.3.4.2.20051126154801.023a3ac0@cobalt.antimatter.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 11/26/05, Glenn Dawson <glenn@antimatter.net> 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"
>
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a97e11c20511261614r4a85d5e6l87550ad28d6a5243>