Re: Won't work after reboot

Steve Shipway <[email protected]> Fri, 5 Jun 2015 02:43:07 +0000
Newsgroups gmane.network.mrtg.user
Message-ID <5820DC553954E44FA1A36C78323AD14859FFC20E@uxcn10-tdc06.UoA.auckland.ac.nz>
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

 <mailto:[email protected]> [email protected]

(GNU Terry Pratchett)

 

From: Aizad Fauzi [mailto:[email protected]] 
Sent: Friday, 5 June 2015 2:38 p.m.
To: Steve Shipway
Cc: [email protected]
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

[email protected]_     Name    br-lan  6

[email protected]_     Name    eth0    2

[email protected]_     Name    eth1    3

[email protected]_     Name    lo      1

[email protected]_     Name    pppoe-wan       8

[email protected]_     Name    wlan0   15

[email protected]_     Name    wlan1   16

 

after reboot and run "mrtg mrtg.conf" the OK file with show wlan0 and wlan1 as Dup

 

Thanks.

_______________________________________________
mrtg mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
smime.p7s (application/pkcs7-signature, 10.1 KB) - not displayed