Community discussions

MikroTik App
User avatar
just joined
Topic Author
Posts: 11
Joined: Fri Nov 27, 2009 1:11 am
Location: Germany

collectd plugin "RouterOS" on the horizon

Mon Nov 30, 2009 5:59 pm

Hi everybody,

I've used librouteros (→wiki, →thread), the library I wrote last week, to implement a plugin called “RouterOS” for collectd, a performance measurement daemon. Because my focus is towards point-to-point wireless LAN connections, that is exactly what is currently supported. Of course, other statistics may be added in the future.

Currently collected interface statistics are:
  • Packets sent / received
  • Bytes sent / received
  • Errors
  • Dropped packets
Currently collected wireless registration statistics are:
  • RX / TX bitrate
  • Bytes sent / received
  • RX / TX signal strength
  • Signal to noise ratio
  • RX / TX CCQ
To showcase the detail achieved by this plugin and collectd, here is a graph of the TX CCQ showing about 90 minutes worth of data:

The code is currently living in the ff/routeros branch of my collectd Git repository. If you want to give the plugin a try, check out the repository from git://

Of course, feedback is very welcome :)

just joined
Posts: 6
Joined: Fri Feb 18, 2011 2:17 pm

Re: collectd plugin "RouterOS" on the horizon

Wed Jul 24, 2013 11:49 am


I am excited to have found your plugin and would love to use it. Unfortunately the compilation process fails at the 'make' step, when compiling on Ubuntu 12.04LTS. Here is the make output:

$ /etc/collectd/librouteros-1.1.2# make
root@moa:/etc/collectd/librouteros-1.1.2# make
Making all in src
make[1]: Entering directory `/etc/collectd/librouteros-1.1.2/src'
make all-am
make[2]: Entering directory `/etc/collectd/librouteros-1.1.2/src'
gcc -DHAVE_CONFIG_H -I. -Wall -Werror -g -O2 -c ros.c
ros.c: In function 'main':
ros.c:296:14: error: variable 'host' set but not used [-Werror=unused-but-set-variable]
ros.c: In function 'read_password':
ros.c:246:8: error: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Werror=unused-result]
cc1: all warnings being treated as errors
make[2]: *** [ros.o] Error 1
make[2]: Leaving directory `/etc/collectd/librouteros-1.1.2/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/etc/collectd/librouteros-1.1.2/src'
make: *** [all-recursive] Error 1

Could you please correct you code and provide a patch? That would be awesome!
just joined
Posts: 6
Joined: Fri Feb 18, 2011 2:17 pm

Re: collectd plugin "RouterOS" on the horizon

Wed Jul 24, 2013 1:01 pm

And when removing the -Werror compilation directive the compilation ignoes the warnigns and goes through, but another error occurs whe startinf collectd:

$ /etc/init.d/collectd restart
Restarting statistics collection and monitoring daemon: collectd[2013-07-24 09:58:11] Couldn't find symbol `module_register' in `/usr/lib/collectd/': /usr/lib/collectd/ undefined symbol: module_register
Unable to load plugin librouteros.
Frequent Visitor
Frequent Visitor
Posts: 50
Joined: Fri Dec 26, 2008 3:35 am

Re: collectd plugin "RouterOS" on the horizon

Tue Nov 26, 2013 12:49 am

Works incorrectly with CCR + ROS 6.x
SFP interfaces are not graphed at all.
DfComplex and Memory have strange values (3.5T free, 360G used)
All other graphs are empty.
Mey be related to ?

Who is online

Users browsing this forum: Bing [Bot], joegoldman and 27 guests