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, <[email protected]> wrote: > Send mrtg mailing list submissions to > [email protected] > > 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 > [email protected] > > You can reach the person managing the list at > [email protected] > > 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" <[email protected]> > To: [email protected] > Subject: Re: [mrtg] I still couldn't execute mrtg using cron. > Message-ID: <[email protected]> > 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 > > <[email protected]> on > > behalf of thomaz portella <[email protected]> > > *Date: *Thursday, July 14, 2016 at 12:40 PM > > *To: *"[email protected]" <[email protected]> > > *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 > > [email protected] > > 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 > [email protected] > https://lists.oetiker.ch/cgi-bin/listinfo/mrtg > > > ------------------------------ > > End of mrtg Digest, Vol 112, Issue 29 > ************************************* >
_______________________________________________ mrtg mailing list [email protected] https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
