Mikrotik RouterOS Registration Tables (Update 11/21/2006)

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

Moderators: Developers, Moderators

EA
Posts: 1
Joined: Thu Aug 23, 2007 4:03 am

Post by EA »

I have faced the same problem that faced yogid ...did somebody found any solution?
Does this script work with cacti j?
Data Query Debug Information
+ Running data query [11].
+ Found type = '4 '[script query].
+ Found data query XML file at '/var/www/html/cacti/resource/script_server/mikrotik_wirelless_interfaces.xml'
+ XML file parsed ok.
+ Executing script for list of indexes '/mnt/hd01/php/bin/php -q /var/www/html/cacti/scripts/mikrotik_wireless_interfaces.php 10.255.10.2 index'
+ Executing script query '/mnt/hd01/php/bin/php -q /var/www/html/cacti/scripts/mikrotik_wireless_interfaces.php 10.255.10.2 query index'
+ Executing script query '/mnt/hd01/php/bin/php -q /var/www/html/cacti/scripts/mikrotik_wireless_interfaces.php 10.255.10.2 query name'
+ Executing script query '/mnt/hd01/php/bin/php -q /var/www/html/cacti/scripts/mikrotik_wireless_interfaces.php 10.255.10.2 query cmac'
+ Found data query XML file at '/var/www/html/cacti/resource/script_server/mikrotik_wirelless_interfaces.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/script_server/mikrotik_wirelless_interfaces.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/script_server/mikrotik_wirelless_interfaces.xml'
marlow
Posts: 11
Joined: Tue Nov 06, 2007 12:04 pm
Location: Rahara, Co. Roscommon, Ireland
Contact:

Cacti graphing, now with multiple clients

Post by marlow »

Hi,

I've been working at scripts based on the ones Mojiro did, however I didn't like the attempt using SSH to query the data. So my scripts use SNMP only.

The result can be found at http://doc.thewan.net/wiki/index.php/Development

The templates and scripts query the host based on BSSID, so changing OID's should not be a problem. The script supports client mode and ap-mode (one or multiple associations). The only limitation is, that at the time, where you create the graph, the client has to be associated and you'll have to create the graphs individually for each BSSID/client.

There will be more features added over the next month or so, that allow graphing of packet/byte count and various other things.

/Martin
Communication is the beginning of understanding
-- AT&T
skysurfer
Posts: 15
Joined: Tue Aug 07, 2007 7:26 am

Re: Cacti graphing, now with multiple clients

Post by skysurfer »

marlow wrote:Hi,

I've been working at scripts based on the ones Mojiro did, however I didn't like the attempt using SSH to query the data. So my scripts use SNMP only.

The result can be found at http://doc.thewan.net/wiki/index.php/Development

The templates and scripts query the host based on BSSID, so changing OID's should not be a problem. The script supports client mode and ap-mode (one or multiple associations). The only limitation is, that at the time, where you create the graph, the client has to be associated and you'll have to create the graphs individually for each BSSID/client.

There will be more features added over the next month or so, that allow graphing of packet/byte count and various other things.

/Martin
Nice job!

I tried your templates but there seems to be a problem. I attached the relative screenshots. Any idea?

ps: in order to get any results, i had to edit mikrotik_wireless_interfaces.xml and change the path to php according to my box.
Attachments
wireless_ifaces.PNG
wireless_ifaces.PNG (6.87 KiB) Viewed 6258 times
verbose.PNG
verbose.PNG (57.57 KiB) Viewed 6258 times
rado3105
Posts: 5
Joined: Wed Apr 01, 2009 2:18 pm

Re: Mikrotik RouterOS Registration Tables (Update 11/21/2006

Post by rado3105 »

I dont understand this step, can anybody help?

Login to your Linux System as the "web server" user, usually, apache or quest.
Code:
~# login <username>
Password: <password>


Create the home directory if it doesn't exist.
Code:
~# mkdir /home/<username>
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: Mikrotik RouterOS Registration Tables (Update 11/21/2006

Post by noname »

rado3105 wrote:I dont understand this step, can anybody help?

Login to your Linux System as the "web server" user, usually, apache or quest.
Code:
~# login <username>
Password: <password>


Create the home directory if it doesn't exist.
Code:
~# mkdir /home/<username>
Because this script will access to MikroTik device via SSH.

In preparation for polling from Cacti, first you have to add RSA/DSA fingerprint of the device to known hosts list under <username>'s home directory (~<username>/.ssh/known_hosts).
So it needs this step:
mojiro wrote:Try to Login at your Router's Ssh Console from here

Code: Select all

~# ssh <Router IP>
The authenticity of host '<Router IP> (<Router IP>)' can't be established.
DSA key fingerprint is 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'mtik.kapa.awmn' (DSA) to the list of known hosts.
Strictly speaking, <username> should be "user for poller of Cacti"(such like 'cactiuser') instead of "web server user".
sylwekleszczynski
Posts: 2
Joined: Wed Dec 28, 2011 5:15 am

Re: Mikrotik RouterOS Registration Tables (Update 11/21/2006

Post by sylwekleszczynski »

Hello.

Please tell me have I put password for cactiuser on the mikrotik ?
User avatar
mojiro
Cacti User
Posts: 121
Joined: Sun Jul 24, 2005 12:20 pm
Location: Ireland, Dublin

Re: Mikrotik RouterOS Registration Tables (Update 11/21/2006

Post by mojiro »

[i]Born to be online![/i]
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests