Hello,
My Mikrotik is PPoE and PPtP concentrator. Is there any way to MRTG pppoe interface constantly.
The problem is, when some customer restart router (client side) PPPoE get different OID and MRTG stop working.
-ifref=nr -ifdescr=name
-ifref=name, -ifdescr=name
cfgmaker -ifref=nr -ifdescr=name
Target[router_<pppoe-user0002>]: 15744109:public@router:
Target[router_15744109]: 15744109:public@router:
Have you done it ?Should not be a problem with the proper MRTG configuration!
Is not a MikroTik issue, it is about knowing how to configure and use MRTG.
I have used MRTG with many different devices and this issue always occurs. You need to find and use the proper interface reference.
Your email address please.I have not done this for that particular application but I faced the same issue in other cases.
Of course you need to write a program/script that adds MRTG config for every new interface (customer in your case).
But that is quite easy as it is only the addition of a fixed section with simple parameter substitution (the name).
Are you sure?I'm working on this today....
Target[username]: \<pppoe-username\@udomain.net>:community@router.domain.net
seems to work.
Target[t000287]: \<pppoe-t000287\@xxxxxx.yy>:community@xxx.yyy.zzz.kkk::5::2:2
Sorry, I just tried for test and deleted.screenshots please.
Target[host_2]: 2:public@192.168.1.1:
Target[host_2]: #eth0:public@192.168.1.1:
Target[localhost_11]: #pppoe_interface:public@192.168.1.1:
SetEnv[localhost_11]: MRTG_INT_IP="192.168.1.1" MRTG_INT_DESCR="PPPoE"
MaxBytes[localhost_11]: 125000000
Title[localhost_11]: Traffic Analysis for PPPoE Interface
PageTop[localhost_11]: <h1>Traffic Analysis for PPPoE Interface</h1>
<div id="sysdetails">
<table>
<tr>
<td>System:</td>
<td>Router</td>
</tr>
<tr>
<td>Maintainer:</td>
<td>Admin <admin@localhost></td>
</tr>
<tr>
<td>Description:</td>
<td>PPPoE Interface </td>
</tr>
<tr>
<td>ifType:</td>
<td>pppoe</td>
</tr>
<tr>
<td>ifName:</td>
<td>pppoe_interface</td>
</tr>
<tr>
<td>Max Speed:</td>
<td>125.0 Mbytes/s</td>
</tr>
<tr>
<td>Ip:</td>
<td>192.168.1.1</td>
</tr>
</table>
</div>