How to Mikrotik Monitoring With Cacti
Any interface in the Mikrotik, CPU memory, or queues of the oid to get the settings to verify the SNMP settings, cacti to add Mikrotik template cacti to SNMP v3 with the Mikrotik data will take.
This guide will step you through the process of installing Cacti on an existing VPS (we are using Ubuntu 16.04.2 LTS) and getting a single graph setup for your environment. This is going to assume that the VPS you are installing on has access (both via firewall and via VPN of some kind) to poll devices via SNMP.
Step 1-Fire up an ssh session to your VPS and start with
1 | ~$ sudo apt-get upgrade && sudo apt-get install apache2 php libapache2-mod-php php-mcrypt php-mysql mysql-server snmp snmpd rrdtool cacti cacti-spine |
Step 2-Secure the MySQL server installation with
1 | ~$ sudo mysql_secure_installation |
Step 3-Ensure we have snmpd running and apache2 as well with the MySQL backend we have just secured
1 | ~$ sudo service snmpd restart && sudo service mysql restart && sudo service apache2 restart |
Step 4-By default your installation would have created an alias in Apache to point /cacti to your installation. So head over to HTTP://<your_hostname>/cacti/
Step 5-Default user/pass is admin/admin and Cacti will force you to change the password on the first login. If it doesn’t, something’s not right…
Step 6-Login to your MikroTik Router and ensure that SNMP is enabled. Lock it down to the IP address of your Cacti server.
1 2 | /snmp set enabled yes /snmp community set [ find default=yes ] addresses=IP.OF.CACTI.SERVER |
Step 7-The welcome screen of Cacti will now step us through the three basic main steps we are going to follow, the first of which is going to be creating devices for the network. Head to Devices and then Add
Step 8-Type in the IP/Hostname of your router and give it a description. We are going to choose SNMP version 2 here as well to give us some more recent tools. We are also going to use a host template of a Generic SMTP-enabled Host.
Step 9-Once you hit ‘Create’ it will poll the device and grab some basic info. Go and head and “Create Graphs for this Host”
Step 10-Tick the interfaces you wish to create graphs for, select a graph type (I typically use In/Out Bits with Total Bandwidth) and then hit “Create”
Step 11-After this is done you can add the graphs to a ‘Graph Tree’ on the left-hand management menu or you can view them in the ‘Default Tree’
And that’s all there is to a really basic Cacti installation on Ubuntu 16.04.2 LTS
HI! Did you have the same success using Mikrotik and swOS? I have a 317 and cacti can talk to it and grab the basic header, but no interface graphs show up.
Hi ,
I used Cacti for trial purposes. I did not use it for a long time. But I can recommend zabbix for your network.