[Suggestions] New Mikrotik Template

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

naven
Posts: 12
Joined: Tue Mar 31, 2015 4:54 pm

Re: [Suggestions] New Mikrotik Template

Post by naven »

Hi,

DJHiP, I've done what you said we should do. It seems to have fixed the zeroes in mac address, however it still does not work (there are no graphs available)

This is debug output of (vervose query):

Code: Select all

+ Running data query [14].
+ Found type = '4' [Script Query].
+ Found data query XML file at '/var/www/cacti/resource/script_server/mikrotik_wireless_interfaces.xml'
+ XML file parsed ok.
+ Executing script for num of indexes 'php -q /var/www/cacti/scripts/mikrotik_wireless_interfaces.php naven.com.pl 192.168.32.1 num_indexes'
+ Found number of indexes: Interfaces:
+ Found number of indexes: SSID:
+ Found number of indexes: 
+ Found number of indexes: CMAC: Array
+ Found number of indexes: (
+ Found number of indexes: [0] => .1.3.6.1.4.1.14988.1.1.1.2.1.3.0.38.130.25.200.12.1
+ Found number of indexes: [1] => .1.3.6.1.4.1.14988.1.1.1.2.1.3.88.18.67.108.166.153.1
+ Found number of indexes: [2] => .1.3.6.1.4.1.14988.1.1.1.2.1.3.132.142.223.34.180.23.1
+ Found number of indexes: )
+ Found number of indexes: 
+ Found number of indexes: Array
+ Found number of indexes: (
+ Found number of indexes: [0] => INTEGER: -38
+ Found number of indexes: [1] => INTEGER: -48
+ Found number of indexes: [2] => INTEGER: -40
+ Found number of indexes: )
+ Found number of indexes: 
+ Found number of indexes: Interface database: Array
+ Found number of indexes: (
+ Found number of indexes: [1] => Array
+ Found number of indexes: (
+ Found number of indexes: [soid] => Array
+ Found number of indexes: (
+ Found number of indexes: [1] => .0.38.130.25.200.12
+ Found number of indexes: [2] => .88.18.67.108.166.153
+ Found number of indexes: [3] => .132.142.223.34.180.23
+ Found number of indexes: )
+ Found number of indexes: 
+ Found number of indexes: [ifIndex] => Array
+ Found number of indexes: (
+ Found number of indexes: [1] => 00:26:81:19:C8:0A
+ Found number of indexes: [2] => 58:12:41:6C:A6:92
+ Found number of indexes: [3] => 84:8E:DA:22:B4:11
+ Found number of indexes: )
+ Found number of indexes: 
+ Found number of indexes: )
+ Found number of indexes: 
+ Found number of indexes: )
+ Executing script for list of indexes 'php -q /var/www/cacti/scripts/mikrotik_wireless_interfaces.php naven.com.pl 192.168.32.1 index' Index Count: 0
+ Executing script query 'php -q /var/www/cacti/scripts/mikrotik_wireless_interfaces.php naven.com.pl 192.168.32.1 query ifName'
+ Executing script query 'php -q /var/www/cacti/scripts/mikrotik_wireless_interfaces.php naven.com.pl 192.168.32.1 query ifIndex'

Code: Select all

	Success [0 Items, 0 Rows]
It looks fine to me. What could be wrong?
qster
Posts: 1
Joined: Sat Apr 25, 2015 10:21 am

Re: [Suggestions] New Mikrotik Template

Post by qster »

Hi, I'm new here. These charts works, but i have one more question. I need charts of CCQ. Could you help me? i don't know PHP. I try to do this chars for few days, but unlucky. Thanks for any directions.
RonPan
Posts: 1
Joined: Sun Apr 26, 2015 6:10 pm

Re: [Suggestions] New Mikrotik Template

Post by RonPan »

Did anybody ever get a copy of the Alpha version, or newer, of these?
naven
Posts: 12
Joined: Tue Mar 31, 2015 4:54 pm

Re: [Suggestions] New Mikrotik Template

Post by naven »

I've spoken to mojiro recently. I don't think he is going to continue the template development any longer.
SheldonV
Posts: 3
Joined: Thu Jan 23, 2014 2:06 am

Re: [Suggestions] New Mikrotik Template

Post by SheldonV »

Aaah o.0 would have been nice, Thanks for the update!
GuJack20
Posts: 4
Joined: Wed Jul 29, 2015 3:38 am

Re: [Suggestions] New Mikrotik Template

Post by GuJack20 »

An updated archive is uploaded at
http://docs.cacti.net/usertemplate:host:mikrotik
rubence1975
Posts: 3
Joined: Tue Feb 02, 2016 6:09 am

Re: [Suggestions] New Mikrotik Template

Post by rubence1975 »

I m trying to configure Mikrotik simple queue on my cacti as per mojiro's tutorial :

when trying with simple queue i am getting error the RRD files does not exist. but i m getting the ether graphs perfectly !

RRDTool Says:
ERROR: opening '/usr/share/cacti/rra/server_traffic_in_29.rrd': No such file or directory

I am using

Cacti Version cacti-0.8.8b-7.el6
Mikrotik CCR1036-12G-4S Firmware Version 3.27

Surprisingly, From another mikrotik router with same firmeware version, simple queue graph is perfectly working. so i assume its mikrotik routerboard issue. but traffic graph for mikrotik ether porst are working on both routerboards.

any idea ?
Igo
Posts: 4
Joined: Thu Jan 28, 2016 1:02 pm
Location: Brazil

Re: [Suggestions] New Mikrotik Template

Post by Igo »

I'm also not getting monitor BGP sessions in my Mikrotik, I can see the overall graph of BGP asdatatechuk posted the print Annex. However wanted to separately monitor the sessions like the graph thatmojiro posted status.

I have a switch that can monitor the BGP session by status, however in Mikrotik I have several sessions not with this monitoring. Does anyone have a template or know how can I do ??
digitalcloud
Posts: 1
Joined: Sat Jul 30, 2016 3:49 am

Re: [Suggestions] New Mikrotik Template

Post by digitalcloud »

Hi Guys

I'm currently running CACTI 0.8.8.h trying to monitor a bunch of MikroTik devices running 6.36, but seem to be having an issue with getting signal strengths from the 'RegTable Signal Strengths' section. Signal strengths seem to be fine when selecting Wireless Client though...

All signals just come up with 0.0 - anyone with bright ideas? :)

Thanks
Adam
jlazkano
Cacti User
Posts: 52
Joined: Wed Mar 25, 2009 5:39 pm

Re: [Suggestions] New Mikrotik Template

Post by jlazkano »

Hello,

Where could I download this template?

Best regards.
tudor2k3
Posts: 5
Joined: Mon Jul 18, 2011 3:57 am

Re: [Suggestions] New Mikrotik Template

Post by tudor2k3 »

The newest version i could find (works for me for 6.35) is for Cacti 0.8.8f (and 0.8.8a) from here:

Code: Select all

http://docs.cacti.net/usertemplate:host:mikrotik
Also, the wireless signal strength doesn't seem to work...
crushkov
Posts: 5
Joined: Mon Jun 15, 2015 4:12 am

Re: [Suggestions] New Mikrotik Template

Post by crushkov »

Hi could you help.
ARP graph show 0
debug shows:
Log File [Total Lines: 1 - All Items Shown]
11/23/2016 08:00:14 PM - CMDPHP: Poller[0] Host[18] DS[1018] CMD: /usr/bin/snmpwalk 192.168.18.1 -v 2c -c 123 1.3.6.1.2.1.4.22.1.2 | /usr/bin/wc -l | /usr/bin/awk \\\'{printf$0}\\\', output: U
I don't understand where is error

My cacti Version 0.8.8b
template ver 0.8.8a
User avatar
mac86
Posts: 9
Joined: Wed Jul 09, 2008 9:19 am
Location: Argentina - Bahia Blanca
Contact:

Re: [Suggestions] New Mikrotik Template

Post by mac86 »

GuJack20 wrote: Thu Aug 06, 2015 2:08 am An updated archive is uploaded at
http://docs.cacti.net/usertemplate:host:mikrotik
Thank you Erion Demiri !!! 8) 8) 8)
Mikrotik & Ubiquiti & Mimosa - Consultant from 1999
www.netpro-ar.com
Bahia Blanca - Argentina
usernews
Posts: 9
Joined: Tue Dec 08, 2020 3:00 am

Re: [Suggestions] New Mikrotik Template

Post by usernews »

Will this template work with the new version cacti 1.2.16? And where can I get a worker?
kermu
Posts: 5
Joined: Sun Mar 06, 2016 3:09 pm

Re: [Suggestions] New Mikrotik Template

Post by kermu »

I found a problem with interface index translation in mikrotik_wireless_interfaces.php script on php above 5.3
Especially variable $int_id (ifIndex) is empty and OID is not expand properly.
Consequence of this is that snmpget show null value eg in ifInSignal

/usr/bin/php71 -q /usr/share/cacti/scripts/mikrotik_wireless_interfaces.php public 10.0.21.19 get ifInSignal D4:CA:6D:12:6B:87 debug
.1.3.6.1.4.1.14988.1.1.1.2.1.3.212.202.109.18.107.135. 0
/usr/bin/php53 -q /usr/share/cacti/scripts/mikrotik_wireless_interfaces.php public 10.0.21.19 get ifInSignal D4:CA:6D:12:6B:87 debug
.1.3.6.1.4.1.14988.1.1.1.2.1.3.212.202.109.18.107.135.29 -57

Problem does NOT exist with MAC beginning at "00:"

/usr/bin/php71 -q /usr/share/cacti/scripts/mikrotik_wireless_interfaces.php public 10.0.21.19 get ifInSignal 00:80:48:76:AE:88 debug
.1.3.6.1.4.1.14988.1.1.1.2.1.3.0.128.72.118.174.136.29 -57
/usr/bin/php53 -q /usr/share/cacti/scripts/mikrotik_wireless_interfaces.php public 10.0.21.19 get ifInSignal 00:80:48:76:AE:88 debug
.1.3.6.1.4.1.14988.1.1.1.2.1.3.0.128.72.118.174.136.29 -57

I also noticed that first octet MAC begins other than "00:" is not decoded properly on php above 5.3

Correct results:
/usr/bin/php53 -q /usr/share/cacti/scripts/mikrotik_wireless_interfaces.php public 10.0.21.19 query ifName
00:15:6D:65:7E:F3!wlan1
64:D1:54:8D:5D:B7!wlan2
00:0E:8E:30:A1:F9!wlan3
00:80:48:76:AE:88!wlan3
00:80:48:77:E5:7A!wlan3
00:80:48:7A:2A:27!wlan3
04:F0:21:16:79:71!wlan3
04:F0:21:16:79:8C!wlan3
D4:CA:6D:12:6B:87!wlan3
D4:CA:6D:13:45:09!wlan3
D4:CA:6D:14:C6:91!wlan3
E4:8D:8C:22:93:F5!wlan3

Wrong results (partially):
/usr/bin/php71 -q /usr/share/cacti/scripts/mikrotik_wireless_interfaces.php public 10.0.21.19 query ifName
00:15:6D:65:7E:F3!wlan1
00:D1:54:8D:5D:B7!wlan2
00:0E:8E:30:A1:F9!wlan3
00:80:48:76:AE:88!wlan3
00:80:48:77:E5:7A!wlan3
00:80:48:7A:2A:27!wlan3
00:F0:21:16:79:71!wlan3
00:F0:21:16:79:8C!wlan3
0C:CA:6D:12:6B:87!wlan3
0C:CA:6D:13:45:09!wlan3
0C:CA:6D:14:C6:91!wlan3
1C:8D:8C:22:93:F5!wlan3

Maybe anyone has solution for this issue ?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests