Page 1 of 1
Total registration + MRTG
Posted: Thu Mar 02, 2006 4:55 am
by conchalnet
Hi all,
Does anyone know how to do a MRTG graphic of the amount of registrations in a mikrotik AP?
[]s
FabrÃcio
Posted: Wed Mar 08, 2006 1:38 am
by conchalnet
Anyone can help me???
Posted: Wed Mar 08, 2006 2:13 am
by jarosoup
I think you'd need to do a script that runs a command like "/interface wireless registration print count-only" which will return the number of clients registered. There is some info on some linux methods (like using expect) in the scripting forum.
Posted: Thu Mar 09, 2006 1:21 pm
by conchalnet
but how can I do this with snmp???
Posted: Thu Mar 09, 2006 10:37 pm
by vklimovs
Remember, that you can browse SNMP tree in a router by issuing a command:
where applicable.
I just did it. It seems there is no way if monitoring AP registration count via SNPM. But still you may use some weird solutions, like sending an e-mail with desired data every minute, etc.

Posted: Thu Mar 09, 2006 10:48 pm
by wildbill442
I thought I read a post on this forum abuot someone doing this with cacti, try searching the forums.
Posted: Fri Mar 10, 2006 9:28 am
by vklimovs
Cacti is just the same as MRTG, i just uses its own polling system and stores all data in RRDTOOL databases (RRDTOOL was made by creator of MRTG). IMO, Cacti is a lot better then MRTG, because it is more easy to configure, you do not have to run over dozens of text files and searching some stupid typos, like it was in MRTG.
But, unfortunately if MT does not provide you with desired OID, you can't collect this info neither with MRTG, nor with Cacti.
Posted: Mon Mar 13, 2006 2:27 pm
by fivenetwork
I too wanted to do this.
I am stuck at the following step.
Using Getif and the second last option MBrowser I obtained this entry
' enterprises.9.9.150.1.1.1.0 ' and on selecting this entry (amongst the many such obtained) i got this OID as the associated one
.1.3.6.1.4.1.9.9.150.1.1.1.0
I added this entry using the "Add to Graph" button on this page. Now on the last option Graph page, i am getting a graph listing the number of users connected in 5 sec intervals.
Now if someone can convert this info into some more meaningful graph and also with a history........
Posted: Mon Mar 13, 2006 4:07 pm
by conchalnet
I think that I was able to get the registrations of the mikrotik using a shell script and doing the input on mrtg with this script.
I did as below:
#Start of the script
reg=`snmpwalk -Os -c public -v 1 192.168.0.1 .1.3.6.1.4.1.14988.1.1.1.2.1.3.0 | wc -l`;
if [ ! -n "$reg" ]
then
reg="0"
fi
echo $reg
echo 0
echo " "
echo "Registrations"
#End of the script
The OID .1.3.6.1.4.1.14988.1.1.1.2.1.3.0 is the base of the signal strengh of the registred clients. Than I get all signal strengh with the snmpwalk and use the wc -l to count the amount of lines that's the same of the amount of registrations on my Mikrotik.
With this script I return the parameter for MRTG and I can do the graphs.
Thanks for all
Posted: Tue Mar 14, 2006 3:54 am
by fivenetwork
Conch
What you did is fine for Wireless Reg Users. How do I go about doing this for a simple Ethernet PPPoE server whereby I just wanna know how many Users are online....
Posted: Tue Mar 14, 2006 1:16 pm
by conchalnet
Conch
What you did is fine for Wireless Reg Users. How do I go about doing this for a simple Ethernet PPPoE server whereby I just wanna know how many Users are online....
Hi firenetwork,
I never use Mikrotik for PPPoE users... but if you've a form to list something of all users that are connected you can use a similar script to count the result.
[]s