Community discussions

MikroTik App
 
conchalnet
Member Candidate
Member Candidate
Topic Author
Posts: 274
Joined: Thu Nov 03, 2005 1:44 pm
Location: Brazil

Total registration + MRTG

Thu Mar 02, 2006 4:55 am

Hi all,

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

[]s

Fabrício
 
conchalnet
Member Candidate
Member Candidate
Topic Author
Posts: 274
Joined: Thu Nov 03, 2005 1:44 pm
Location: Brazil

Wed Mar 08, 2006 1:38 am

Anyone can help me???
 
jarosoup
Long time Member
Long time Member
Posts: 596
Joined: Sun Aug 22, 2004 9:02 am

Wed Mar 08, 2006 2:13 am

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.
 
conchalnet
Member Candidate
Member Candidate
Topic Author
Posts: 274
Joined: Thu Nov 03, 2005 1:44 pm
Location: Brazil

Thu Mar 09, 2006 1:21 pm

but how can I do this with snmp???
Last edited by conchalnet on Fri Mar 10, 2006 12:16 am, edited 1 time in total.
 
vklimovs
Frequent Visitor
Frequent Visitor
Posts: 57
Joined: Fri Dec 16, 2005 5:37 pm

Thu Mar 09, 2006 10:37 pm

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. :)
 
wildbill442
Forum Guru
Forum Guru
Posts: 1055
Joined: Wed Dec 08, 2004 7:29 am
Location: Sacramento, CA

Thu Mar 09, 2006 10:48 pm

I thought I read a post on this forum abuot someone doing this with cacti, try searching the forums.
 
vklimovs
Frequent Visitor
Frequent Visitor
Posts: 57
Joined: Fri Dec 16, 2005 5:37 pm

Fri Mar 10, 2006 9:28 am

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.
 
fivenetwork
newbie
Posts: 45
Joined: Thu Jul 08, 2004 4:39 am

Mon Mar 13, 2006 2:27 pm

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........
 
conchalnet
Member Candidate
Member Candidate
Topic Author
Posts: 274
Joined: Thu Nov 03, 2005 1:44 pm
Location: Brazil

Mon Mar 13, 2006 4:07 pm

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
 
fivenetwork
newbie
Posts: 45
Joined: Thu Jul 08, 2004 4:39 am

Tue Mar 14, 2006 3:54 am

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....
 
conchalnet
Member Candidate
Member Candidate
Topic Author
Posts: 274
Joined: Thu Nov 03, 2005 1:44 pm
Location: Brazil

Tue Mar 14, 2006 1:16 pm

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

Who is online

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