FW: MRTG not running by default after reboot

Joel Roberts <[email protected]>
Newsgroups gmane.network.mrtg.user
Message-ID <2F01CFA24B5CA043A825D93CC015A7881F62D1F0@LWMAILSERVER1.pinkard.com>
I’ve removed the if statements, have just:

0/55/5 * * * * root env LANG=C /usr/bin/mrtg /etc/mrtg.cfg

In the file now, and get the following error:

Mrtg will most likely not work properly when the environment variable LANG is set to UTF-8. Please run mrtg in an environment where this is not the case. Try the following command to start:

env LANG=C /usr/bin/mrtg

Which is what I have in the mrtg file?

Thank you,

Joel

From: Simon Westlake [mailto:[email protected]]
Sent: Wednesday, May 15, 2013 3:04 PM
To: Joel Roberts
Subject: Re: [mrtg] MRTG not running by default after reboot

Do the if statements in the cron evaluate to true?
Is there anything in mrtg.log?

On Wed, May 15, 2013 at 3:52 PM, Joel Roberts <[email protected]<mailto:[email protected]>> wrote:
Just did a new install of mrtg, been a while since I’d done one so jumped through some hoops to get the index pages just the way I wanted them, but now when rebooting the server (Debian Linux 6), mrtg doesn’t run on its own, I have to execute:

env LANG=C /usr/bin/mrtg /etc/mrtg.cfg

from the terminal to get it to start graphing again. I checked in /etc/cron.d, the mrtg file is there with the following entry:

0-55/5 * * * * root if [ -x /usr/bin/mrtg ] && [ -r /etc/mrtg.cfg ]; then env LANG=C /usr/bin/mrtg /etc/mrtg.cfg >> /var/log/mrtg/mrtg.log 2>&1; fi

The log file listed in the cron job hasn’t been updated in 2 days either, even after manually starting mrtg. Any help in getting it to run automatically would be greatly appreciated.

Thanks in advance,

Joel


_______________________________________________
mrtg mailing list
[email protected]<mailto:[email protected]>
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg



--
- Simon Westlake
[ digitalgunfire.com<http://digitalgunfire.com> ]
AIM: ShirowDG
ICQ: 2227213
Voice: (414) 810-6392

_______________________________________________
mrtg mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.