Cacti / plugin_mikrotik

Mikrotik Plugin for Cacti
GNU General Public License v2.0
60 stars 24 forks source link

Error on log when enable plugin #52

Closed sijiq closed 3 years ago

sijiq commented 3 years ago

I got error on log when enable plugin

2021/05/29 05:53:39 - CMDPHP SQL Backtrace: (/plugins.php[74]:api_plugin_install(), /lib/plugins.php[675]:plugin_mikrotik_install(), /plugins/mikrotik/setup.php[41]:mikrotik_setup_table(), /plugins/mikrotik/setup.php[312]:db_execute(), /lib/database.php[238]:db_execute_prepared())

2021/05/29 05:53:39 - CMDPHP ERROR: A DB Exec Failed!, Error: Index column size too large. The maximum column size is 767 bytes.

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Plugin (please complete the following information):

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

netniV commented 3 years ago

You need to enable large prefixes on your MySQL installation. Cacti itself should warn you about that whenever you upgrade.