Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
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'
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
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.
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
~# 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".