defmodule ToweropsWeb.HelpLive.Sections.Mikrotik do @moduledoc false use ToweropsWeb, :html import ToweropsWeb.HelpLive.Sections.Helpers def render(assigns) do ~H"""
Towerops supports read-only monitoring of MikroTik RouterOS devices via SSH. In addition to SNMP polling, SSH access allows Towerops to retrieve detailed system information and create configuration backups of your MikroTik devices for disaster recovery and audit purposes.
Towerops currently operates in read-only mode for MikroTik devices. Configuration changes, reboots, and other administrative actions are not supported. This ensures your device configurations remain unchanged by monitoring operations.
Both SNMP polling and SSH connections to MikroTik devices can be performed from either Towerops cloud infrastructure or your remote poller (agent). For publicly accessible devices, cloud polling is the simplest option. For devices on private networks or when you prefer to keep SSH credentials on your local network, deploy a remote poller. The device assignment determines which poller handles both SNMP and SSH operations.
For security purposes, it is strongly recommended to create a dedicated read-only user account for Towerops rather than using an administrator account. This follows the principle of least privilege and minimizes potential security risks. Even though Towerops only performs read-only operations, limiting the account permissions provides defense in depth.
Connect to your MikroTik device via SSH or terminal and execute the following commands to create a read-only user named <.code>towerops:
Step 1: Create a new user group with read-only permissions
/user group add name=readonly policy=ssh,read,test,api
Step 2: Create the monitoring user with a strong password
/user add name=towerops password={if @generated_password,
do: @generated_password,
else: "YOUR_STRONG_PASSWORD"} group=readonly
<%= if @generated_password do %>
<% end %>
⚠️ This truly random password from random.org will only be shown once!
<% end %>Step 3: Verify the user was created successfully
/user print detail where name=towerops
The <.code>readonly group includes the following permissions. Note that while these permissions are granted to the user account, Towerops only performs read operations and does not make any configuration changes:
| Permission | Description |
|---|---|
| ssh | Allow SSH access to the device |
| read | Allow viewing configuration and status (read-only) |
| test | Allow executing diagnostic commands (ping, traceroute, etc.) |
| api | Allow API access for automated monitoring |
After creating the read-only user, configure SSH credentials in Towerops:
Navigate to <.code>Organization Settings → <.code>MikroTik tab to set default SSH credentials for all MikroTik devices in your organization.
Navigate to <.code>Sites → select a site → <.code>Edit to override credentials for all devices at a specific location.
When editing a MikroTik device, you can specify unique SSH credentials that override organization and site defaults.