Community discussions

MikroTik App
 
User avatar
winagain
Member Candidate
Member Candidate
Topic Author
Posts: 254
Joined: Sat Jul 15, 2006 10:18 pm
Location: Botswana
Contact:

help with setting up pppoe users bandwidth graph

Sat Apr 23, 2016 10:55 pm

Hi,

I am able to setup a bandwidth graph for pppoe users, but when user gets new session, the graph no longer works and have to add new data source again.

How can I set it up that when user connects it automatically recognizes the user.

Please help have searched google and the forums and can't find anything on this.
 
lebowski
Forum Guru
Forum Guru
Posts: 1619
Joined: Wed Aug 27, 2008 5:17 pm

Re: help with setting up pppoe users bandwidth graph

Mon Apr 25, 2016 5:04 pm

I am assuming that the interface oid is changing every time the user logs in? When you select the interface in the drop down does it have a slightly different look? More detail would be good like how you configured the existing probe.
 
User avatar
winagain
Member Candidate
Member Candidate
Topic Author
Posts: 254
Joined: Sat Jul 15, 2006 10:18 pm
Location: Botswana
Contact:

Re: help with setting up pppoe users bandwidth graph

Tue May 03, 2016 5:22 pm

Hi Thanks for the reply .

Yes OID changes when client pppoe session is terminated.

I don't know how to get a static oid for the sessions. There was a instruction set somewhere on google, but can't find it now.

What info do you need, it's a standard usermanager + pppoe server setup. I would like dude to graph usage, but as soon as customer disconnects and reconnects for whatever reason the graph is not working cos it get new oid on reconnecting.
 
lebowski
Forum Guru
Forum Guru
Posts: 1619
Joined: Wed Aug 27, 2008 5:17 pm

Re: help with setting up pppoe users bandwidth graph

Mon May 09, 2016 10:51 pm

Changing OIDs is a pain, there is not a good way for the dude to determine what new oid it becomes.
Maybe the oid is always one of a certain group of oids? Could you use part of the oid to make your own rate calculation. or create a link for each oid and just track them all? Just ping the other side? Or do they get a dynamic address? Probably not any good solutions here...
 
krisjanis
MikroTik Support
MikroTik Support
Posts: 432
Joined: Tue Feb 05, 2013 5:00 pm

Re: help with setting up pppoe users bandwidth graph

Wed May 11, 2016 8:34 am

Only by creating static server bindings for those pppoe users you would get them to stick with one and the same oids on each connection time.
 
soamz
Member
Member
Posts: 430
Joined: Thu Mar 19, 2015 7:19 am

Re: help with setting up pppoe users bandwidth graph

Sat Jul 23, 2016 7:32 pm

Only by creating static server bindings for those pppoe users you would get them to stick with one and the same oids on each connection time.
how to do that without diturbing the clients ?
 
krisjanis
MikroTik Support
MikroTik Support
Posts: 432
Joined: Tue Feb 05, 2013 5:00 pm

Re: help with setting up pppoe users bandwidth graph

Mon Jul 25, 2016 10:52 am

You cannot. PPPOE client would start using static interface on next reconnect.
 
soamz
Member
Member
Posts: 430
Joined: Thu Mar 19, 2015 7:19 am

Re: help with setting up pppoe users bandwidth graph

Mon Jul 25, 2016 4:45 pm

You cannot. PPPOE client would start using static interface on next reconnect.
So there is no way to get usage traffic graphs of PPPoE customers ?
 
krisjanis
MikroTik Support
MikroTik Support
Posts: 432
Joined: Tue Feb 05, 2013 5:00 pm

Re: help with setting up pppoe users bandwidth graph

Tue Jul 26, 2016 10:32 am

There is. You just cannot get static oids without interrupting the current the client.

* From current dynamic session you can use those oids that it already has. The problem is that they will change on each client reconnect.
* IF you add static pppoe server interface for that client the oids will remain the same for all later reconnects of this client.
 
soamz
Member
Member
Posts: 430
Joined: Thu Mar 19, 2015 7:19 am

Re: help with setting up pppoe users bandwidth graph

Tue Jul 26, 2016 10:34 am

There is. You just cannot get static oids without interrupting the current the client.

* From current dynamic session you can use those oids that it already has. The problem is that they will change on each client reconnect.
* IF you add static pppoe server interface for that client the oids will remain the same for all later reconnects of this client.
My PPPoE ether is ether3. 
And my PPPOE service name is one single service name. 
What else to do ?
 
krisjanis
MikroTik Support
MikroTik Support
Posts: 432
Joined: Tue Feb 05, 2013 5:00 pm

Re: help with setting up pppoe users bandwidth graph

Tue Jul 26, 2016 1:18 pm

My bad I used incorrect term. I meant that you need to create static PPPOE server bindings for those users that you want to monitor. On next reconnect the dynamic server bindings will no longer appear and this user will now be tied to this static server binding. Then from this entry use oids for monitoring.
 
soamz
Member
Member
Posts: 430
Joined: Thu Mar 19, 2015 7:19 am

Re: help with setting up pppoe users bandwidth graph

Tue Jul 26, 2016 2:17 pm

My bad I used incorrect term. I meant that you need to create static PPPOE server bindings for those users that you want to monitor. On next reconnect the dynamic server bindings will no longer appear and this user will now be tied to this static server binding. Then from this entry use oids for monitoring.
yes, I mean, how do we create static PPPoE server binding for those customers ?
 
krisjanis
MikroTik Support
MikroTik Support
Posts: 432
Joined: Tue Feb 05, 2013 5:00 pm

Re: help with setting up pppoe users bandwidth graph

Tue Jul 26, 2016 2:23 pm

In Interface configuration enter User and Service field if present in your configuration.
pppoe-binding.png
Very similar in CLI side: "/interface pppoe-server add service=example user=example"
You do not have the required permissions to view the files attached to this post.
 
soamz
Member
Member
Posts: 430
Joined: Thu Mar 19, 2015 7:19 am

Re: help with setting up pppoe users bandwidth graph

Tue Jul 26, 2016 2:30 pm

For example, I took a customer who is live and using. 
And simply entered his PPPoE username is username and in service name, placed my service name. 

I see, his normal PPPOE doesnt show and only the binding one shows, but his account shows logged in and 0 usage. 

How do we know if its done ?

And you said, the customer will disconnect and reconnect, but that did not happen ?
Or do I need to manually disconnect him ? 
 
krisjanis
MikroTik Support
MikroTik Support
Posts: 432
Joined: Tue Feb 05, 2013 5:00 pm

Re: help with setting up pppoe users bandwidth graph

Tue Jul 26, 2016 2:39 pm

Yes, Dynamic entry wont be shown anymore. Only the static static server binding will be in interface list. And what do you mean by "0 usage"? If you mean traffic, then possibly new connections haven't yet been made from client side.

I mentioned that, before this new binding will become active reconnect of this user is needed. I did not say that it will happen automatically. 
 
soamz
Member
Member
Posts: 430
Joined: Thu Mar 19, 2015 7:19 am

Re: help with setting up pppoe users bandwidth graph

Tue Jul 26, 2016 2:41 pm

Okay fine. 
I logged him out and then it auto logged in again. So, I guess login is working fine. 
Now what do I copy from this mcirotik user to monitor his graph in cacti or MRTG ?
His MAC ID ?
 
krisjanis
MikroTik Support
MikroTik Support
Posts: 432
Joined: Tue Feb 05, 2013 5:00 pm

Re: help with setting up pppoe users bandwidth graph

Tue Jul 26, 2016 2:55 pm

Now find the OIDs that you need from that interface and use them where you intended. 

[admin@MikroTik] > interface print oid where name~"pppoe-user-test"         
Flags: D - dynamic, X - disabled, R - running, S - slave 
 0  R  name=.1.3.6.1.2.1.2.2.1.2.19 actual-mtu=.1.3.6.1.2.1.2.2.1.4.19 mac-address=.1.3.6.1.2.1.2.2.1.6.19 
       admin-status=.1.3.6.1.2.1.2.2.1.7.19 oper-status=.1.3.6.1.2.1.2.2.1.8.19 
       bytes-in=.1.3.6.1.2.1.31.1.1.1.6.19 packets-in=.1.3.6.1.2.1.31.1.1.1.7.19 
       discards-in=.1.3.6.1.2.1.2.2.1.13.19 errors-in=.1.3.6.1.2.1.2.2.1.14.19 
       bytes-out=.1.3.6.1.2.1.31.1.1.1.10.19 packets-out=.1.3.6.1.2.1.31.1.1.1.11.19 
       discards-out=.1.3.6.1.2.1.2.2.1.19.19 errors-out=.1.3.6.1.2.1.2.2.1.20.19 

Presuming that your NMS is prepared for MikroTik device monitoring. Template or mib imported, etc.
 
soamz
Member
Member
Posts: 430
Joined: Thu Mar 19, 2015 7:19 am

Re: help with setting up pppoe users bandwidth graph

Tue Jul 26, 2016 3:04 pm

Okay let me try. 

BTW, is it okay to convert all customers to this static bind, or is there any down side of this ?

Why do everyone uses the moral dynamic PPPOE then ?
 
soamz
Member
Member
Posts: 430
Joined: Thu Mar 19, 2015 7:19 am

Re: help with setting up pppoe users bandwidth graph

Tue Jul 26, 2016 3:07 pm

Okay it works. 
But what do I use from it ? 

I got this, 

[soamxxx@xxxx] > interface print oid where name~"JS080-monitoring1"
Flags: D - dynamic, X - disabled, R - running, S - slave 
 0  R  name=.1.3.6.1.2.1.2.2.1.2.28 actual-mtu=.1.3.6.1.2.1.2.2.1.4.28 mac-address=.1.3.6.1.2.1.2.2.1.6.28 
       admin-status=.1.3.6.1.2.1.2.2.1.7.28 oper-status=.1.3.6.1.2.1.2.2.1.8.28 bytes-in=.1.3.6.1.2.1.31.1.1.1.6.28 
       packets-in=.1.3.6.1.2.1.31.1.1.1.7.28 discards-in=.1.3.6.1.2.1.2.2.1.13.28 errors-in=.1.3.6.1.2.1.2.2.1.14.28 
       bytes-out=.1.3.6.1.2.1.31.1.1.1.10.28 packets-out=.1.3.6.1.2.1.31.1.1.1.11.28 discards-out=.1.3.6.1.2.1.2.2.1.19.28 
       errors-out=.1.3.6.1.2.1.2.2.1.20.28 
 
soamz
Member
Member
Posts: 430
Joined: Thu Mar 19, 2015 7:19 am

Re: help with setting up pppoe users bandwidth graph

Tue Jul 26, 2016 7:18 pm

It shows blank. 
You do not have the required permissions to view the files attached to this post.
 
krisjanis
MikroTik Support
MikroTik Support
Posts: 432
Joined: Tue Feb 05, 2013 5:00 pm

Re: help with setting up pppoe users bandwidth graph

Wed Jul 27, 2016 2:40 pm

Is snmp configuration correct both on device and NMS sides?
 
soamz
Member
Member
Posts: 430
Joined: Thu Mar 19, 2015 7:19 am

Re: help with setting up pppoe users bandwidth graph

Wed Jul 27, 2016 2:46 pm

Is snmp configuration correct both on device and NMS sides?
yes perfect, as its listing the ether traffic fine, as Im monitoring each ether traffic from same cacti too. 
 
krisjanis
MikroTik Support
MikroTik Support
Posts: 432
Joined: Tue Feb 05, 2013 5:00 pm

Re: help with setting up pppoe users bandwidth graph

Wed Jul 27, 2016 3:07 pm

Then only option I guess is to recheck if that specific monitoring section is added correctly in cacti side. I haven't used cacti that much to be able to give you some more specific details on problem debugging in that NMS.
 
soamz
Member
Member
Posts: 430
Joined: Thu Mar 19, 2015 7:19 am

Re: help with setting up pppoe users bandwidth graph

Wed Jul 27, 2016 3:10 pm

Then only option I guess is to recheck if that specific monitoring section is added correctly in cacti side. I haven't used cacti that much to be able to give you some more specific details on problem debugging in that NMS.
Did you try in MRTG ?
I can do it then, just I did not know the format for a PPPOE interface to check in MRTG

Who is online

Users browsing this forum: Google [Bot] and 18 guests