Page 1 of 1
Dude and SNMP
Posted: Mon Sep 20, 2010 5:02 pm
by ferdinandbabst
Hi
Can I use Dude to display connected PPPoE clients on a specific Mikrotik on a network map using SNMP?
The reason is I want to see when connected users's pppoe drops. I want to display all connected users on a map so that its easy to see on our Helpdesk which users are no longer connected
Re: Dude and SNMP
Posted: Mon Sep 27, 2010 5:56 pm
by lebowski
I don't have a system to test but while users are connected, SNMPwalk your device, wait for it to finish then search for a PPP username that should be connected. If that data is in snmp you could make a probe. I don't know if it is there.
Re: Dude and SNMP
Posted: Mon Oct 11, 2010 12:20 pm
by ferdinandbabst
Thanks for advice
Its working ok. the only issue is that with every connected pppoe session, the session gets a variable session ID. If you setup a probe to listen via SNMP and the user disconnects, when that specific user reconnects it will get a new session ID for pppoe (even though the username is the same). The dude will flag the user offline due to the username and session ID having a mismatch. He actually isnt offline, its just his session ID is different
Re: Dude and SNMP
Posted: Mon Oct 11, 2010 8:40 pm
by lebowski
Can you post your probe(s), maybe there is a way to only pay attention to the user id?
Re: Dude and SNMP
Posted: Mon Oct 18, 2010 5:46 pm
by chrisd13
If the username is listed in the snmpwalk as a oid value, I am sure you would be able to manipulate the "Check if service is running" Probe to look for the username like below...
if(array_find(oid_column("<oid for ppoe sessions>"), "<username>")>0, 1, ")
This way it should pick up the username when it comes back online no matter which sessionid it is listed against. But this does all depend on whether the pppoe sesions can be listed by a single oid. (like Lebowski, I do not have any systems that I can check this on though. A screenshot of the pppoe sessions in a snmpwalk would help.)
Hope it can help you though.