Total registration + MRTG

Hi all,

Does anyone know how to do a MRTG graphic of the amount of registrations in a mikrotik AP?

s

Fabrício

Anyone can help me???

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.

but how can I do this with snmp???

Remember, that you can browse SNMP tree in a router by issuing a command:

print oid

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. :slight_smile:

I thought I read a post on this forum abuot someone doing this with cacti, try searching the forums.

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. :slight_smile:
But, unfortunately if MT does not provide you with desired OID, you can’t collect this info neither with MRTG, nor with Cacti.

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…

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

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