Solved MRTG broken

For years I have been using MRTG to create a graph that shows how much bandwidth I am using through my ADSL router. On the 30 December at 17:40 it stopped working. I assume it has something to do with me updating my ports at that time. I had a look in the /var/log/mrtg/mrtg.log logfile and this is what it says:

Code:
2014-12-30 17:40:00 -- Started mrtg with config '/usr/local/etc/mrtg/mrtg.cfg'
2014-12-30 17:45:00 -- Started mrtg with config '/usr/local/etc/mrtg/mrtg.cfg'
2014-12-30 17:45:00 -- 2014-12-30 17:45:00: ERROR: Skipping webupdates because rateup did not return anything sensible
2014-12-30 17:45:00 -- 2014-12-30 17:45:00: WARNING: rateup died from Signal 0
 with Exit Value 1 when doing router 'vigor2820vn_wan'
 Signal was 0, Returncode was 1
2014-12-30 17:50:00 -- Started mrtg with config '/usr/local/etc/mrtg/mrtg.cfg'
2014-12-30 17:50:00 -- 2014-12-30 17:50:00: ERROR: Skipping webupdates because rateup did not return anything sensible
2014-12-30 17:50:00 -- 2014-12-30 17:50:00: WARNING: rateup died from Signal 0
 with Exit Value 1 when doing router 'vigor2820vn_wan'
 Signal was 0, Returncode was 1

Nothing has changed on the router (except for rebooting it) and I have not changed anything in MRTG. I did notice this in /usr/ports/UPDATING:

Code:
20141225:
  AFFECTS: users of graphics/png
  AUTHOR: antoine@FreeBSD.org

  The PNG library has been updated to version 1.6.16.  Please rebuild all
  ports that depend on it.

  If you use portmaster:
  portmaster -r png
  If you use portupgrade:
  portupgrade -fr graphics/png

So I ran portmaster -r png but my graph is still not updating.

Any ideas? The log error isn't very helpful!
 
MRTG depends on lots of things, including Perl, which was updated recently. Have you been following updates in /usr/ports/UPDATING?

As a first step, install sysutils/bsdadminscripts and run pkg_libchk -qo. If it lists any ports, rebuild them by giving the whole list to portmaster: portmaster `pkg_libchk -qo`.

It will not hurt to rebuild and reinstall MRTG: portmaster net-mgmt/mrtg.
 
MRTG depends on lots of things, including Perl, which was updated recently. Have you been following updates in /usr/ports/UPDATING?

As a first step, install sysutils/bsdadminscripts and run pkg_libchk -qo. If it lists any ports, rebuild them by giving the whole list to portmaster: portmaster `pkg_libchk -qo`.

It will not hurt to rebuild and reinstall MRTG: portmaster net-mgmt/mrtg.

I ended up running pkg_libchk -qo and the output was:
Code:
net-mgmt/nagios4
net-mgmt/mrtg
so I just ran:
Code:
portmaster net-mgmt/nagios4
portmaster net-mgmt/mrtg
and my graph is now updating again! :)

Thank you wblock@!
 
Back
Top