[mrtg] MRTG Not updating after upgrade
Noob Centos Admin
centos.admin at gmail.com
Sun Jul 12 05:45:01 CEST 2009
I was running MRTG 2.15.2 on Centos 5.2 without problems for a while.
Over the weekend, I updated Centos to 5.3 and somehow it broke MRTG.
I started getting emails from crond with the following errors
2009-07-12 08:45:02: WARNING: Problem with External get
'/var/www/html/mrtg/core/system network eth0':
Expected a Number for 'in' but got 'p'
2009-07-12 08:45:02: ERROR: Target[index][_IN_] ' $target->[0]{$mode}
' did not eval into defined data
The graphs were still updating at this point, however I didn't really
want to see error mails every 5 minutes, nor did I think it would be
smart to simply redirect crond output to null for mrtg.
After searching and reading, I updated mrtg to 2.16.2 as well as added
the parameters ENV LANG=C to the crontab line.
After this, MRTG stopped updating the statistics logs. However, there
are no error messages whatsoever.
I've tried installing net-snmp, tested it was working then enabled
snmpv3 but doesn't seem to help
I've even changed all permissions in /var/html/mrtg to 555 just in
case it was some strange permissions issue.
The file mrtg.ok is updated on every run but zero length.
Config file contents (without comment lines):
WorkDir: /var/www/html/mrtg/core
Logdir: /var/www/html/mrtg
Interval: 5
Options[_]: bits, growright
EnableSnmpV3: yes
crontab line :
*/5 * * * * root env LANG=C /usr/local/mrtg-2/bin/mrtg
/var/www/html/mrtg/core/mrtg.cfg --logging /var/log/mrtg.log
entry in log:
2009-07-12 11:35:02 -- Started mrtg with config
'/var/www/html/mrtg/core/mrtg.cfg'
Every single entry is just that, I'm not sure if there should be a
line that says "Ended mrtg" or something to that effect.
I'll appreciate any help on solving this, thanks in advanced!
More information about the mrtg
mailing list