The WorkDir /var/lib/mrtg did not exist in the file.
In addition, the /var/lib/mrtg is filled with images and html files? These files are being updated. Something is seriously wrong here.
Code: Select all
192.168.5.10_100000-day.png 192.168.5.10_1006-week.png 192.168.5.10_54.log 192.168.5.10_62-day.png
192.168.5.10_100000.html 192.168.5.10_1006-year.png 192.168.5.10_54-month.png 192.168.5.10_62.html
192.168.5.10_100000.log 192.168.5.10_1007-day.png 192.168.5.10_54-week.png 192.168.5.10_62.log
192.168.5.10_100000-month.png 192.168.5.10_1007.html 192.168.5.10_54-year.png 192.168.5.10_62-month.png
192.168.5.10_100000-week.png 192.168.5.10_1007.log 192.168.5.10_55-day.png 192.168.5.10_62-week.png
192.168.5.10_100000-year.png 192.168.5.10_1007-month.png 192.168.5.10_55.html 192.168.5.10_62-year.png
192.168.5.10_1000-day.png 192.168.5.10_1007-week.png 192.168.5.10_55.log 192.168.5.10_63-day.png
192.168.5.10_1000.html 192.168.5.10_1007-year.png 192.168.5.10_55-month.png 192.168.5.10_63.html
I added the workdir directory and tried again....
Code: Select all
LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg –check
2014-01-21 11:43:38: ERROR: Target[192.168.5.10_49][_IN_] ' $target->[0]{$mode} c' (warn): (Missing operator before c?)
2014-01-21 11:43:38: ERROR: Target[192.168.5.10_49][_OUT_] ' $target->[0]{$mode} c' (warn): (Missing operator before c?)
2014-01-21 11:43:38, Rateup WARNING: /usr/bin/rateup Can't remove 192.168.5.10_49.old updating log file
2014-01-21 11:43:38: ERROR: Target[192.168.5.10_50][_IN_] ' $target->[1]{$mode} c' (warn): (Missing operator before c?)
2014-01-21 11:43:38: ERROR: Target[192.168.5.10_50][_OUT_] ' $target->[1]{$mode} c' (warn): (Missing operator before c?)
2014-01-21 11:43:38, Rateup WARNING: /usr/bin/rateup Can't remove 192.168.5.10_50.old updating log file
So I removed everything, scan files, mrtg.cfg, /var/lib/mrtg/files, router wizard and installed a known good wizard and tried again. Now no workdir is added and I get this:
Code: Select all
LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg –check
Use of uninitialized value $dir in concatenation (.) or string at /usr/bin/mrtg line 2531.
Use of uninitialized value $dir in concatenation (.) or string at /usr/bin/mrtg line 2549.
Use of uninitialized value $dir in concatenation (.) or string at /usr/bin/mrtg line 2565.
ERROR: "WorkDir" not specified in mrtg config file
I added the workdir and get this:
Code: Select all
LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg –check
2014-01-21 11:52:12, Rateup WARNING: /usr/bin/rateup could not read the primary log file for 192.168.5.10_49
2014-01-21 11:52:12, Rateup WARNING: /usr/bin/rateup The backup log file for 192.168.5.10_49 was invalid as well
2014-01-21 11:52:12, Rateup WARNING: /usr/bin/rateup Can't remove 192.168.5.10_49.old updating log file
2014-01-21 11:52:12, Rateup WARNING: /usr/bin/rateup Can't rename 192.168.5.10_49.log to 192.168.5.10_49.old updating log file
2014-01-21 11:52:12, Rateup WARNING: /usr/bin/rateup could not read the primary log file for 192.168.5.10_50
2014-01-21 11:52:12, Rateup WARNING: /usr/bin/rateup The backup log file for 192.168.5.10_50 was invalid as well