All works fine but I cant install latest Mikrotik plugin https://github.com/Cacti/plugin_mikrotik
I tried:
Copied the mikrotik plugin folder to plugins folder and renamed to mikrotik
execute this command: php import_package.php --filename='/usr/share/cacti/site/plugins/mikrotik/templates/MikroTik_Device.xml.gz'
And got this error:
Code: Select all
19/02/2021 20:23:21 - IMPORT NOTE: File is Signed Correctly
19/02/2021 20:23:21 - IMPORT Importing XML Data for MikroTik_Device.xml
19/02/2021 20:23:21 - ERROR PHP NOTICE: Undefined index: in file: /usr/share/cacti/site/lib/import.php on line: 164
19/02/2021 20:23:21 - CMDPHP PHP ERROR NOTICE Backtrace: (/usr/share/cacti/cli/import_package.php[133]:import_package(), /lib/import.php[371]:import_xml_data(), /lib/import.php[164]:CactiErrorHandler())
19/02/2021 20:23:21 - ERROR PHP NOTICE: Undefined index: in file: /usr/share/cacti/site/lib/import.php on line: 167
19/02/2021 20:23:21 - CMDPHP PHP ERROR NOTICE Backtrace: (/usr/share/cacti/cli/import_package.php[133]:import_package(), /lib/import.php[371]:import_xml_data(), /lib/import.php[167]:CactiErrorHandler())
Edit file include/global_arrays.php and include cacti versions 1.2.3 and 1.2.4 (I know this not affect in my case)
Code: Select all
'1.2.1' => '0101',
'1.2.2' => '0101',
'1.2.3' => '0102',
'1.2.4' => '0102',
);
Thanks!!