Mikrotik RouterOS Statistics (Update 02/10/2009)
http://forums.cacti.net/viewtopic.php?t=25349
mikrotik-20090210.zip (36.4 KB)
Mikrotik RouterOS Statistics (Update 02/10/2009)
http://forums.cacti.net/viewtopic.php?t=25349
mikrotik-20090210.zip (36.4 KB)
I am using an your old script.
Do you support the turbo wireless rate of 96 and 108?
Regards
Ros
where are that ?
I have seen no option like that until now!
What kind of hardware/software do you have ?
Is it possible to provide me read access to your mikrotik router that has 96 & 108 mbps data rate ?
Hi
I have installed package on my cacti but it doesn’t want to cooperate ![]()
When i have added a host, Cacti displayed:

Nothing but SNMP Interface Statistics. Of course on MT there are some Queues (simple and tree) and some wireless clients so anything should be displayyed in Cacti.
When i tryed to create a Data Sources for the same host:

Any ideas what’s wrong?
Cacti Version 0.8.7a
please click “verbose query” at device’s page and paste here the debug output
The problem was one missing file from template. Now queues and wireless client are OK, but registration table still not. When i run the querry manually it returns nothing, but snmpwalk -c cacti -v 1 1.2.3.4 .1.3.6.1.4.1.14988.1.1.1.2.1 returned correct data:
SNMPv2-SMI::enterprises.14988.1.1.1.2.1.3.0.14.142.18.92.237.4 = INTEGER: -75
SNMPv2-SMI::enterprises.14988.1.1.1.2.1.4.0.14.142.18.92.237.4 = Counter32: 240537599
SNMPv2-SMI::enterprises.14988.1.1.1.2.1.5.0.14.142.18.92.237.4 = Counter32: 643650557
SNMPv2-SMI::enterprises.14988.1.1.1.2.1.6.0.14.142.18.92.237.4 = Counter32: 2561441824
SNMPv2-SMI::enterprises.14988.1.1.1.2.1.7.0.14.142.18.92.237.4 = Counter32: 2271450573
SNMPv2-SMI::enterprises.14988.1.1.1.2.1.8.0.14.142.18.92.237.4 = Gauge32: 36000000
SNMPv2-SMI::enterprises.14988.1.1.1.2.1.9.0.14.142.18.92.237.4 = Gauge32: 36000000
Data Query Debug Information
- Running data query [10].
- Found type = '4 '[script query].
- Found data query XML file at ‘/usr/share/cacti/site/resource/script_server/mikrotik_wireless_interfaces.xml’
- XML file parsed ok.
- Executing script for list of indexes ‘php -q /usr/share/cacti/site/scripts/mikrotik_wireless_interfaces.php cacti 1.2.3.4 index’
- Executing script query ‘php -q /usr/share/cacti/site/scripts/mikrotik_wireless_interfaces.php cacti 1.2.3.4 query ifName’
- Executing script query ‘php -q /usr/share/cacti/site/scripts/mikrotik_wireless_interfaces.php cacti 1.2.3.4 query ifIndex’
- Found data query XML file at ‘/usr/share/cacti/site/resource/script_server/mikrotik_wireless_interfaces.xml’
- Found data query XML file at ‘/usr/share/cacti/site/resource/script_server/mikrotik_wireless_interfaces.xml’
- Found data query XML file at ‘/usr/share/cacti/site/resource/script_server/mikrotik_wireless_interfaces.xml’
- Mikrotik - Wireless - Registration Table (Verbose Query) Uptime Goes Backwards Success [0 Items, 0 Rows]
Replace the mikrotik_wireless_interfaces.php with the attached… and tell me if you saw any difference.
I have found some problems with old versions of Mikrotik. What version do you have ?
mikrotik_wireless_interfaces.rar (1.31 KB)
Hi
I have replaced the file but it made no differences. ![]()
I can give You access to my Cacti and server, please contact me for details.
MikroTik versions: 2.9.29, 2.9.49, 3.0 (x86 and mips)
you have mail
Hello,
Have You managed to find the source of problem with template?
Regards
hi,
thanks a lot for this great job, i was using your old version templates and i switched to these new ones because of the registration table and ppp active templates. It seems to work properly but i was expecting something else with the registration table, a template which could graph the number of stations connected to the AP ( or could be sorted by wlan interfaces) . Is there any way to do that? I don’t see any oid which could give the number of stations registered.
regards
Thanks for this, looks good, but does anyone have the template for versoin 0.8.6j?
I have the same problem on MikroTik RouterOS 3.6 + RouterBOARD 333 with exact symptoms. Is there any solution?
Try switching from “Ping and SNMP” to “SNMP” in “Downed Device Detection” in Devices section.
Solution is simple. PHP was built without SNMP support. That’s why “/usr/share/cacti/site/scripts/mikrotik_wireless_interfaces.php” didn’t work.
Data Query Debug Information
+ Running data query [10].
+ Found type = '4 '[script query].
+ Found data query XML file at '/usr/local/cacti/resource/script_server/mikrotik_wireless_interfaces.xml'
+ XML file parsed ok.
+ Executing script for list of indexes '/usr/bin/php -q /usr/local/cacti/scripts/mikrotik_wireless_interfaces.php cacti 10.1.0.2 index'
+ Executing script query '/usr/bin/php -q /usr/local/cacti/scripts/mikrotik_wireless_interfaces.php cacti 10.1.0.2 query ifName'
+ Found item [ifName='wlan1:1'] index: 00:0B:6B:57:47:61
+ Found item [ifName='wlan1:2'] index: 00:0B:6B:57:47:12
+ Found item [ifName='wlan1:4'] index: 00:0B:6B:57:43:EB
+ Executing script query '/usr/bin/php -q /usr/local/cacti/scripts/mikrotik_wireless_interfaces.php cacti 10.1.0.2 query ifIndex'
+ Found item [ifIndex='00:0B:6B:57:47:61'] index: 00:0B:6B:57:47:61
+ Found item [ifIndex='00:0B:6B:57:47:12'] index: 00:0B:6B:57:47:12
+ Found item [ifIndex='00:0B:6B:57:43:EB'] index: 00:0B:6B:57:43:EB
+ Found data query XML file at '/usr/local/cacti/resource/script_server/mikrotik_wireless_interfaces.xml'
+ Found data query XML file at '/usr/local/cacti/resource/script_server/mikrotik_wireless_interfaces.xml'
+ Found data query XML file at '/usr/local/cacti/resource/script_server/mikrotik_wireless_interfaces.xml'
+ Found data query XML file at '/usr/local/cacti/resource/script_server/mikrotik_wireless_interfaces.xml'
+ Found data query XML file at '/usr/local/cacti/resource/script_server/mikrotik_wireless_interfaces.xml'
+ Found data query XML file at '/usr/local/cacti/resource/script_server/mikrotik_wireless_interfaces.xml'
+ Found data query XML file at '/usr/local/cacti/resource/script_server/mikrotik_wireless_interfaces.xml'
+ Found data query XML file at '/usr/local/cacti/resource/script_server/mikrotik_wireless_interfaces.xml'
+ Found data query XML file at '/usr/local/cacti/resource/script_server/mikrotik_wireless_interfaces.xml'
+ Found data query XML file at '/usr/local/cacti/resource/script_server/mikrotik_wireless_interfaces.xml'
+ Found data query XML file at '/usr/local/cacti/resource/script_server/mikrotik_wireless_interfaces.xml'
+ Found data query XML file at '/usr/local/cacti/resource/script_server/mikrotik_wireless_interfaces.xml'
Mikrotik - Wireless - Registration Table (Verbose Query) Uptime Goes Backwards Success [6 Items, 3 Rows]
Hi, this thread is alive ?
Even after i install the extensions for SNMP to PHP, i cant gather information from registration table.
But, what i’m really looking for, is to show in graphs the number of registered clients.
Anyone know anything about this?
if anyone wants to talk about this:
email: rsferreira@vipway.com.br
msn: zoga_08@hotmail.com
Unfortunately no.
![]()
I’m needing too.
Hey. Uhm, I was fiddling, and I set SNMP to vversion 1, and It suddenly worked… Dunno if it will work for you guys.
Regards
Your EvilUncleEdd
Hi Mojiro:
Are these scripts the most current available? What version of Cacti do you recommend for running these scripts on? Will 0.8.7b work correctly?
Thanks,
Ken
Hi Mojiro:
Are these scripts the most current available? What version of Cacti do you recommend for running these scripts on? Will 0.8.7b work correctly?
Thanks,
Ken
Yes, it will run just fine! Let me know if you notice any problems.