Cacti / plugin_mikrotik

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

Not sure how to use "import_package.php" to import MikroTik package #29

Closed panha-nhen closed 6 years ago

panha-nhen commented 6 years ago

Hi team,

could you tell me detail how to "import_package.php" to use Mikrotik plugin?

netniV commented 6 years ago

If you are talking about Import Package under the Console -> Import/Export of Cacti, that isn't for plugins. That is purely for templates/data queries.

panha-nhen commented 6 years ago

Here is my problem:

on the installation guide, I am not clear about how to use import_package.php CLI.

" With this version of mikrotik, we are also including a Device Template Cacti Package that includes everything you need to create all the included Cacti Graphs for this device type. To import that package, you must use the Cacti '### import_package.php' CLI script. The MikroTik package is included in the 'templates' sub-directory of the MikroTik plugin."

netniV commented 6 years ago

Oh, OK. Sorry, forgot about that. To do that you must use the following:

php -q <cactidir>/cli/import_package.php --filename=<template package>

Replace with the path to the cacti root folder and with a full path to the template to be imported.

kaamil1984 commented 1 year ago

Oh, OK. Sorry, forgot about that. To do that you must use the following:

php -q <cactidir>/cli/import_package.php --filename=<template package>

Replace with the path to the cacti root folder and with a full path to the template to be imported.

I think that information should be in README. CLI term may have more than 1 meaning in Cacti.