[mrtg] mrtg Digest, Vol 112, Issue 29

thomaz portella thomazp at gmail.com
Fri Jul 15 22:39:13 CEST 2016


It was running by root user.
The problem was solved doing:
Instead of writing the command in cron, I made a script, changed to be
executable, and this script was executed by the cron.
Now it's running each 5 minutes to analyze my routers.
Thanks everybody. ;-))

On Jul 15, 2016 7:00 AM, <mrtg-request at lists.oetiker.ch> wrote:

> Send mrtg mailing list submissions to
>         mrtg at lists.oetiker.ch
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
> or, via email, send a message with subject or body 'help' to
>         mrtg-request at lists.oetiker.ch
>
> You can reach the person managing the list at
>         mrtg-owner at lists.oetiker.ch
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of mrtg digest..."
>
>
> Today's Topics:
>
>    1. Re: I still couldn't execute mrtg using cron. (Wm. Josiah Erikson)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 14 Jul 2016 23:07:19 -0400
> From: "Wm. Josiah Erikson" <wjerikson at hampshire.edu>
> To: mrtg at lists.oetiker.ch
> Subject: Re: [mrtg] I still couldn't execute mrtg using cron.
> Message-ID: <57885367.4050509 at hampshire.edu>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Put it in /etc/crontab not your own crontab, so it's running as root.
>     -Josiah
>
> On 7/14/16, 3:53 PM, McDonald, Daniel (Dan) wrote:
> >
> > More than likely, you are running from the command line with a
> > different user than cron, so the cron user doesn't have the same
> > permissions as the logged in user.
> >
> >
> >
> > *From: *mrtg
> > <mrtg-bounces+dan.mcdonald=austinenergy.com at lists.oetiker.ch> on
> > behalf of thomaz portella <thomazp at gmail.com>
> > *Date: *Thursday, July 14, 2016 at 12:40 PM
> > *To: *"mrtg at lists.oetiker.ch" <mrtg at lists.oetiker.ch>
> > *Subject: *[mrtg] I still couldn't execute mrtg using cron.
> >
> >
> >
> > I still couldn't executing mrtg using machine cron.
> > I supposed cron wasn't running, but I put a simple script and worked.
> > I didn't put the mrtg command itself, but instead I made a script with
> > the command, changed the file to be executable, and put the name of
> > this file in the crontab.
> > But doesn't run .
> > To ensure the script was right, tiping by cmd line, it works.
> > Anyone knows what is wrong?
> > Thanks
> >
> >
> >
> > _______________________________________________
> > mrtg mailing list
> > mrtg at lists.oetiker.ch
> > https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
>
> --
> -----
> Wm. Josiah Erikson
> Head, Systems and Networking
> Hampshire College
> Amherst, MA 01002
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.oetiker.ch/pipermail/mrtg/attachments/20160714/4bd84a90/attachment-0001.html
> >
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> mrtg mailing list
> mrtg at lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
>
>
> ------------------------------
>
> End of mrtg Digest, Vol 112, Issue 29
> *************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.oetiker.ch/pipermail/mrtg/attachments/20160715/4c2bf5b8/attachment.html>


More information about the mrtg mailing list