Bug 167530 - mrtg cron job not working in UTF-8 enabled environment
Summary: mrtg cron job not working in UTF-8 enabled environment
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: mrtg
Version: 4
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Miloslav Trmač
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-09-04 08:06 UTC by Peter Bieringer
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version: 2.12.2-2
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-09-12 00:43:59 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Peter Bieringer 2005-09-04 08:06:43 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; de-DE; rv:1.7.10) Gecko/20050720 Fedora/1.0.6-1.1.fc4 Firefox/1.0.6

Description of problem:
mrtg claim about UTF-8 environment and cronjob won't run

Version-Release number of selected component (if applicable):
mrtg-2.11.1-3

How reproducible:
Always

Steps to Reproduce:
1. install mrtg
2. configure mrtg
3. run cron script manually for tests
  

Actual Results:  # /usr/bin/mrtg /etc/mrtg/mrtg.cfg --lock-file /var/lock/mrtg/mrtg_l --confcache-file /var/lib/mrtg/mrtg.ok
-----------------------------------------------------------------------
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 /etc/mrtg/mrtg.cfg --lock-file /var/lock/mrtg/mrtg_l --confcache-file /var/lib/mrtg/mrtg.ok
-----------------------------------------------------------------------


Expected Results:  Working

Additional info:

Note that applying the hint "env LANG=C" to /etc/cron.d/mrtg will solve this issue.

BTW: looks like the distributed version is not IPv6-enabled:
   WARNING: IPv6 libraries not found, IPv6 disabled.

Comment 1 Miloslav Trmač 2005-09-12 00:43:59 UTC
Yes, it is quite obvious what to do; nevertheless I have added the necessary
environment variable settings to rawhide /etc/cron.d/mrtg for convenience.

mrtg is currently as IPv6 enabled as the upstream is; the problem is that the
necessary Perl modules for IPv6 support are not included in Fedora Core.

Thanks for your report.


Note You need to log in before you can comment on or make changes to this bug.