[mrtg] Won't work after reboot

Aizad Fauzi redsan at gmail.com
Fri Jun 5 04:58:29 CEST 2015


Hi Steve,

Followed you advise and it works! But there is an additional step that I
took which is restarting snmpd.
1) rm -f mrtg.ok
2) /etc/init.d/snmpd restart
3) mrtg /path/to/mrtg.conf

without any error. are there any workaround on this if the router reboot by
itself? I am sorry as I am kinda newbie with unix.

On Fri, Jun 5, 2015 at 10:43 AM, Steve Shipway <s.shipway at auckland.ac.nz>
wrote:

> When you reboot, the interfaces are being reenumerated – so they get a
> different number.
>
>
>
> When MRTG probes the device, it finds them but under a different number to
> the one given in the cache file, and then does not know which to use (hence
> the ‘dup’).
>
>
>
> So, delete the mrtg.ok file, then run MRTG again.  It will recreate the
> .ok file (this is the interface identifier cache file) using the current
> enumeration, and all should work.
>
>
>
> Steve
>
>
>
> *Steve Shipway*
>
> s.shipway at auckland.ac.nz
>
> (GNU Terry Pratchett)
>
>
>
> *From:* Aizad Fauzi [mailto:redsan at gmail.com]
> *Sent:* Friday, 5 June 2015 2:38 p.m.
> *To:* Steve Shipway
> *Cc:* mrtg at lists.oetiker.ch
> *Subject:* Re: [FORGED] [mrtg] Won't work after reboot
>
>
>
> Hi Steve,
>
>
>
> The /usr/sbin/mrtg is run by crontab.
>
> Even I run it manually after reboot, it will always shows the error.
>
>
>
> This is my mrtg.ok file. This is setup from scratch
>
> public at 192.168.1.1_     Name    br-lan  6
>
> public at 192.168.1.1_     Name    eth0    2
>
> public at 192.168.1.1_     Name    eth1    3
>
> public at 192.168.1.1_     Name    lo      1
>
> public at 192.168.1.1_     Name    pppoe-wan       8
>
> public at 192.168.1.1_     Name    wlan0   15
>
> public at 192.168.1.1_     Name    wlan1   16
>
>
>
> after reboot and run "mrtg mrtg.conf" the OK file with show wlan0 and
> wlan1 as Dup
>
>
>
> Thanks.
>
>
>



-- 
Regards,
Aizad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.oetiker.ch/pipermail/mrtg/attachments/20150605/5b3a9563/attachment-0001.html>


More information about the mrtg mailing list