Hello, new version of cacti here 1.1.x, trying to run the cli import_package.php or import_template.php get error.
root@cacti-new:/usr/share/cacti/cli# php ./import_template.php --filename=MikroTik_Device.xml.gz
PHP Warning: include(/usr/share/cacti/cli/../include/global.php): failed to open stream: No such file or directory in /usr/share/cacti/cli/import_template.php on line 34
PHP Warning: include(): Failed opening '/usr/share/cacti/cli/../include/global.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /usr/share/cacti/cli/import_template.php on line 34
PHP Notice: Undefined variable: config in /usr/share/cacti/cli/import_template.php on line 35
PHP Warning: include_once(/lib/import.php): failed to open stream: No such file or directory in /usr/share/cacti/cli/import_template.php on line 35
PHP Warning: include_once(): Failed opening '/lib/import.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /usr/share/cacti/cli/import_template.php on line 35
PHP Notice: Undefined variable: config in /usr/share/cacti/cli/import_template.php on line 36
PHP Warning: include_once(/lib/utility.php): failed to open stream: No such file or directory in /usr/share/cacti/cli/import_template.php on line 36
PHP Warning: include_once(): Failed opening '/lib/utility.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /usr/share/cacti/cli/import_template.php on line 36
PHP Fatal error: Call to undefined function db_fetch_cell_prepared() in /usr/share/cacti/cli/import_template.php on line 108
root@cacti-new:/usr/share/cacti/cli#
root@cacti-new:/usr/share/cacti/cli# /usr/share/cacti/cli/import_package.php --filename=/usr/share/cacti/plugins/mikrotik/templates/MikroTik_Device.xml.gz
-su: /usr/share/cacti/cli/import_package.php: Permission denied
root@cacti-new:/usr/share/cacti/cli#
Mikrotik Template Import
Moderators: Developers, Moderators
Re: Mikrotik Template Import
php /usr/share/cacti/cli/import_package.php --filename=/usr/share/cacti/plugins/mikrotik/templates/MikroTik_Device.xml.gz
Cacti Developer & Release Manager
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Re: Mikrotik Template Import
Tried that, same thing.
root@cacti-new:/# php /usr/share/cacti/cli/import_package.php --filename=/usr/share/cacti/plugins/mikrotik/templates/MikroTik_Device.xml.gz
PHP Warning: include(/usr/share/cacti/cli/../include/global.php): failed to open stream: No such file or directory in /usr/share/cacti/cli/import_package.php on line 36
PHP Warning: include(): Failed opening '/usr/share/cacti/cli/../include/global.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /usr/share/cacti/cli/import_package.php on line 36
PHP Notice: Undefined variable: config in /usr/share/cacti/cli/import_package.php on line 37
PHP Warning: include_once(/lib/import.php): failed to open stream: No such file or directory in /usr/share/cacti/cli/import_package.php on line 37
PHP Warning: include_once(): Failed opening '/lib/import.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /usr/share/cacti/cli/import_package.php on line 37
PHP Notice: Undefined variable: config in /usr/share/cacti/cli/import_package.php on line 38
PHP Warning: include_once(/lib/utility.php): failed to open stream: No such file or directory in /usr/share/cacti/cli/import_package.php on line 38
PHP Warning: include_once(): Failed opening '/lib/utility.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /usr/share/cacti/cli/import_package.php on line 38
PHP Notice: Undefined variable: config in /usr/share/cacti/cli/import_package.php on line 39
PHP Warning: include_once(/lib/template.php): failed to open stream: No such file or directory in /usr/share/cacti/cli/import_package.php on line 39
PHP Warning: include_once(): Failed opening '/lib/template.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /usr/share/cacti/cli/import_package.php on line 39
PHP Fatal error: Call to undefined function db_fetch_cell() in /usr/share/cacti/cli/import_package.php on line 110
root@cacti-new:/#
root@cacti-new:/# php /usr/share/cacti/cli/import_package.php --filename=/usr/share/cacti/site/plugins/mikrotik/templates/MikroTik_Device.xml.gz
PHP Warning: include(/usr/share/cacti/cli/../include/global.php): failed to open stream: No such file or directory in /usr/share/cacti/cli/import_package.php on line 36
PHP Warning: include(): Failed opening '/usr/share/cacti/cli/../include/global.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /usr/share/cacti/cli/import_package.php on line 36
PHP Notice: Undefined variable: config in /usr/share/cacti/cli/import_package.php on line 37
PHP Warning: include_once(/lib/import.php): failed to open stream: No such file or directory in /usr/share/cacti/cli/import_package.php on line 37
PHP Warning: include_once(): Failed opening '/lib/import.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /usr/share/cacti/cli/import_package.php on line 37
PHP Notice: Undefined variable: config in /usr/share/cacti/cli/import_package.php on line 38
PHP Warning: include_once(/lib/utility.php): failed to open stream: No such file or directory in /usr/share/cacti/cli/import_package.php on line 38
PHP Warning: include_once(): Failed opening '/lib/utility.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /usr/share/cacti/cli/import_package.php on line 38
PHP Notice: Undefined variable: config in /usr/share/cacti/cli/import_package.php on line 39
PHP Warning: include_once(/lib/template.php): failed to open stream: No such file or directory in /usr/share/cacti/cli/import_package.php on line 39
PHP Warning: include_once(): Failed opening '/lib/template.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /usr/share/cacti/cli/import_package.php on line 39
PHP Fatal error: Call to undefined function db_fetch_cell() in /usr/share/cacti/cli/import_package.php on line 110
root@cacti-new:/#
root@cacti-new:/# php /usr/share/cacti/cli/import_package.php --filename=/usr/share/cacti/plugins/mikrotik/templates/MikroTik_Device.xml.gz
PHP Warning: include(/usr/share/cacti/cli/../include/global.php): failed to open stream: No such file or directory in /usr/share/cacti/cli/import_package.php on line 36
PHP Warning: include(): Failed opening '/usr/share/cacti/cli/../include/global.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /usr/share/cacti/cli/import_package.php on line 36
PHP Notice: Undefined variable: config in /usr/share/cacti/cli/import_package.php on line 37
PHP Warning: include_once(/lib/import.php): failed to open stream: No such file or directory in /usr/share/cacti/cli/import_package.php on line 37
PHP Warning: include_once(): Failed opening '/lib/import.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /usr/share/cacti/cli/import_package.php on line 37
PHP Notice: Undefined variable: config in /usr/share/cacti/cli/import_package.php on line 38
PHP Warning: include_once(/lib/utility.php): failed to open stream: No such file or directory in /usr/share/cacti/cli/import_package.php on line 38
PHP Warning: include_once(): Failed opening '/lib/utility.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /usr/share/cacti/cli/import_package.php on line 38
PHP Notice: Undefined variable: config in /usr/share/cacti/cli/import_package.php on line 39
PHP Warning: include_once(/lib/template.php): failed to open stream: No such file or directory in /usr/share/cacti/cli/import_package.php on line 39
PHP Warning: include_once(): Failed opening '/lib/template.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /usr/share/cacti/cli/import_package.php on line 39
PHP Fatal error: Call to undefined function db_fetch_cell() in /usr/share/cacti/cli/import_package.php on line 110
root@cacti-new:/#
root@cacti-new:/# php /usr/share/cacti/cli/import_package.php --filename=/usr/share/cacti/site/plugins/mikrotik/templates/MikroTik_Device.xml.gz
PHP Warning: include(/usr/share/cacti/cli/../include/global.php): failed to open stream: No such file or directory in /usr/share/cacti/cli/import_package.php on line 36
PHP Warning: include(): Failed opening '/usr/share/cacti/cli/../include/global.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /usr/share/cacti/cli/import_package.php on line 36
PHP Notice: Undefined variable: config in /usr/share/cacti/cli/import_package.php on line 37
PHP Warning: include_once(/lib/import.php): failed to open stream: No such file or directory in /usr/share/cacti/cli/import_package.php on line 37
PHP Warning: include_once(): Failed opening '/lib/import.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /usr/share/cacti/cli/import_package.php on line 37
PHP Notice: Undefined variable: config in /usr/share/cacti/cli/import_package.php on line 38
PHP Warning: include_once(/lib/utility.php): failed to open stream: No such file or directory in /usr/share/cacti/cli/import_package.php on line 38
PHP Warning: include_once(): Failed opening '/lib/utility.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /usr/share/cacti/cli/import_package.php on line 38
PHP Notice: Undefined variable: config in /usr/share/cacti/cli/import_package.php on line 39
PHP Warning: include_once(/lib/template.php): failed to open stream: No such file or directory in /usr/share/cacti/cli/import_package.php on line 39
PHP Warning: include_once(): Failed opening '/lib/template.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /usr/share/cacti/cli/import_package.php on line 39
PHP Fatal error: Call to undefined function db_fetch_cell() in /usr/share/cacti/cli/import_package.php on line 110
root@cacti-new:/#
Re: Mikrotik Template Import
root@cacti-new:/# ls /usr/share/cacti/site
LICENSE cmd.php graph_templates_items.php permission_denied.php rra.php
README.md cmd_realtime.php graph_view.php plugins rrdcleaner.php
about.php color.php graph_xport.php plugins.php script_server.php
aggregate_graphs.php color_templates.php graphs.php poller.php scripts
aggregate_items.php color_templates_items.php graphs_items.php poller_automation.php settings.php
aggregate_templates.php data_input.php graphs_new.php poller_boost.php sites.php
auth_changepassword.php data_queries.php host.php poller_commands.php snmpagent_mibcache.php
auth_login.php data_source_profiles.php host_templates.php poller_dsstats.php snmpagent_mibcachechild.php
auth_profile.php data_sources.php images poller_export.php snmpagent_persist.php
automation_devices.php data_templates.php include poller_maintenance.php spikekill.php
automation_graph_rules.php docs index.php poller_realtime.php templates_export.php
automation_networks.php formats install poller_recovery.php templates_import.php
automation_snmp.php gprint_presets.php lib poller_reports.php tree.php
automation_templates.php graph.php link.php poller_spikekill.php user_admin.php
automation_tree_rules.php graph_image.php links.php pollers.php user_domains.php
boost_rrdupdate.php graph_json.php locales remote_agent.php user_group_admin.php
cacti.sql graph_realtime.php log reports_admin.php utilities.php
cdef.php graph_settings.php logout.php reports_user.php vdef.php
clog.php graph_templates.php managers.php resource
clog_user.php graph_templates_inputs.php mibs rra
root@cacti-new:/#
root@cacti-new:/#
root@cacti-new:/#
root@cacti-new:/# ls /usr/share/cacti/site/plugins/mikrotik/templates/
MikroTik_Device.xml.gz index.php resource scripts
root@cacti-new:/#
LICENSE cmd.php graph_templates_items.php permission_denied.php rra.php
README.md cmd_realtime.php graph_view.php plugins rrdcleaner.php
about.php color.php graph_xport.php plugins.php script_server.php
aggregate_graphs.php color_templates.php graphs.php poller.php scripts
aggregate_items.php color_templates_items.php graphs_items.php poller_automation.php settings.php
aggregate_templates.php data_input.php graphs_new.php poller_boost.php sites.php
auth_changepassword.php data_queries.php host.php poller_commands.php snmpagent_mibcache.php
auth_login.php data_source_profiles.php host_templates.php poller_dsstats.php snmpagent_mibcachechild.php
auth_profile.php data_sources.php images poller_export.php snmpagent_persist.php
automation_devices.php data_templates.php include poller_maintenance.php spikekill.php
automation_graph_rules.php docs index.php poller_realtime.php templates_export.php
automation_networks.php formats install poller_recovery.php templates_import.php
automation_snmp.php gprint_presets.php lib poller_reports.php tree.php
automation_templates.php graph.php link.php poller_spikekill.php user_admin.php
automation_tree_rules.php graph_image.php links.php pollers.php user_domains.php
boost_rrdupdate.php graph_json.php locales remote_agent.php user_group_admin.php
cacti.sql graph_realtime.php log reports_admin.php utilities.php
cdef.php graph_settings.php logout.php reports_user.php vdef.php
clog.php graph_templates.php managers.php resource
clog_user.php graph_templates_inputs.php mibs rra
root@cacti-new:/#
root@cacti-new:/#
root@cacti-new:/#
root@cacti-new:/# ls /usr/share/cacti/site/plugins/mikrotik/templates/
MikroTik_Device.xml.gz index.php resource scripts
root@cacti-new:/#
Re: Mikrotik Template Import
The problem is that you have the site in one folder and the cli in another. If you installed cacti properly then cli should be in the cacti folder.
Cacti Developer & Release Manager
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Who is online
Users browsing this forum: No registered users and 0 guests