Package: cacti Version: 0.8.7d-1
Severity: normal Tags: patch *** Please type your report below this line *** When calling any script in /usr/share/cacti/cli/ directory, they fail when trying to include global.php modifying the include line to ../site/include/global.php fix the issue Another way to solve the issue would be to move the directory to /usr/share/cacti/site/cli/ patch: diff -Naur cli/add_data_query.php cli_working/add_data_query.php --- cli/add_data_query.php 2009-03-27 10:33:56.000000000 +0100 +++ cli_working/add_data_query.php 2009-04-21 17:01:22.000000000 +0200 @@ -31,7 +31,7 @@ /* We are not talking to the browser */ $no_http_headers = true; -include(dirname(__FILE__)."/../include/global.php"); +include(dirname(__FILE__)."/../site/include/global.php"); include_once($config["base_path"]."/lib/api_automation_tools.php"); include_once($config["base_path"]."/lib/data_query.php"); diff -Naur cli/add_device.php cli_working/add_device.php --- cli/add_device.php 2009-03-27 10:33:56.000000000 +0100 +++ cli_working/add_device.php 2009-04-21 17:01:22.000000000 +0200 @@ -31,7 +31,7 @@ /* We are not talking to the browser */ $no_http_headers = true; -include(dirname(__FILE__)."/../include/global.php"); +include(dirname(__FILE__)."/../site/site/include/global.php"); include_once($config["base_path"]."/lib/api_automation_tools.php"); include_once($config["base_path"]."/lib/utility.php"); include_once($config["base_path"]."/lib/api_data_source.php"); diff -Naur cli/add_graphs.php cli_working/add_graphs.php --- cli/add_graphs.php 2009-03-27 10:33:56.000000000 +0100 +++ cli_working/add_graphs.php 2009-04-21 17:01:22.000000000 +0200 @@ -30,7 +30,7 @@ $no_http_headers = true; -include(dirname(__FILE__)."/../include/global.php"); +include(dirname(__FILE__)."/../site/include/global.php"); include_once($config["base_path"]."/lib/api_automation_tools.php"); include_once($config["base_path"]."/lib/data_query.php"); include_once($config["base_path"]."/lib/utility.php"); diff -Naur cli/add_graph_template.php cli_working/add_graph_template.php --- cli/add_graph_template.php 2009-03-27 10:33:56.000000000 +0100 +++ cli_working/add_graph_template.php 2009-04-21 17:01:22.000000000 +0200 @@ -31,7 +31,7 @@ /* We are not talking to the browser */ $no_http_headers = true; -include(dirname(__FILE__)."/../include/global.php"); +include(dirname(__FILE__)."/../site/include/global.php"); include_once($config["base_path"]."/lib/api_automation_tools.php"); /* process calling arguments */ diff -Naur cli/add_perms.php cli_working/add_perms.php --- cli/add_perms.php 2009-03-27 10:33:56.000000000 +0100 +++ cli_working/add_perms.php 2009-04-21 17:01:22.000000000 +0200 @@ -30,7 +30,7 @@ $no_http_headers = true; -include(dirname(__FILE__)."/../include/global.php"); +include(dirname(__FILE__)."/../site/include/global.php"); include_once($config["base_path"]."/lib/api_automation_tools.php"); /* process calling arguments */ diff -Naur cli/add_tree.php cli_working/add_tree.php --- cli/add_tree.php 2009-03-27 10:33:56.000000000 +0100 +++ cli_working/add_tree.php 2009-04-21 17:01:22.000000000 +0200 @@ -30,7 +30,7 @@ $no_http_headers = true; -include(dirname(__FILE__)."/../include/global.php"); +include(dirname(__FILE__)."/../site/include/global.php"); include_once($config["base_path"]."/lib/api_automation_tools.php"); include_once($config["base_path"].'/lib/tree.php'); diff -Naur cli/copy_user.php cli_working/copy_user.php --- cli/copy_user.php 2009-03-27 10:33:56.000000000 +0100 +++ cli_working/copy_user.php 2009-04-21 17:01:22.000000000 +0200 @@ -36,7 +36,7 @@ $no_http_headers = true; -include(dirname(__FILE__) . "/../include/global.php"); +include(dirname(__FILE__) . "/../site/include/global.php"); include_once($config["base_path"] . "/lib/auth.php"); $template_user = $_SERVER["argv"][1]; diff -Naur cli/host_update_template.php cli_working/host_update_template.php --- cli/host_update_template.php 2009-03-27 10:33:56.000000000 +0100 +++ cli_working/host_update_template.php 2009-04-21 17:01:22.000000000 +0200 @@ -32,7 +32,7 @@ $no_http_headers = true; -include(dirname(__FILE__) . "/../include/global.php"); +include(dirname(__FILE__) . "/../site/include/global.php"); include_once($config["base_path"] . "/lib/snmp.php"); include_once($config["base_path"] . "/lib/data_query.php"); include_once($config["base_path"] . "/lib/api_automation_tools.php"); diff -Naur cli/poller_data_sources_reapply_names.php cli_working/poller_data_sources_reapply_names.php --- cli/poller_data_sources_reapply_names.php 2009-03-27 10:33:56.000000000 +0100 +++ cli_working/poller_data_sources_reapply_names.php 2009-04-21 17:01:22.000000000 +0200 @@ -32,7 +32,7 @@ $no_http_headers = true; -include (dirname(__FILE__) . "/../include/global.php"); +include (dirname(__FILE__) . "/../site/include/global.php"); include_once ($config["base_path"] . "/lib/api_data_source.php"); /* process calling arguments */ diff -Naur cli/poller_graphs_reapply_names.php cli_working/poller_graphs_reapply_names.php --- cli/poller_graphs_reapply_names.php 2009-03-27 10:33:56.000000000 +0100 +++ cli_working/poller_graphs_reapply_names.php 2009-04-21 17:01:22.000000000 +0200 @@ -32,7 +32,7 @@ $no_http_headers = true; -include(dirname(__FILE__) . "/../include/global.php"); +include(dirname(__FILE__) . "/../site/include/global.php"); include_once($config["base_path"] . "/lib/api_graph.php"); /* process calling arguments */ diff -Naur cli/poller_output_empty.php cli_working/poller_output_empty.php --- cli/poller_output_empty.php 2009-03-27 10:33:56.000000000 +0100 +++ cli_working/poller_output_empty.php 2009-04-21 17:01:22.000000000 +0200 @@ -31,7 +31,7 @@ $no_http_headers = true; /* start initialization section */ -include(dirname(__FILE__) . "/../include/global.php"); +include(dirname(__FILE__) . "/../site/include/global.php"); include_once($config["base_path"] . "/lib/poller.php"); include_once($config["base_path"] . "/lib/data_query.php"); include_once($config["base_path"] . "/lib/graph_export.php"); diff -Naur cli/poller_reindex_hosts.php cli_working/poller_reindex_hosts.php --- cli/poller_reindex_hosts.php 2009-03-27 10:33:56.000000000 +0100 +++ cli_working/poller_reindex_hosts.php 2009-04-21 17:01:22.000000000 +0200 @@ -32,7 +32,7 @@ $no_http_headers = true; -include(dirname(__FILE__) . "/../include/global.php"); +include(dirname(__FILE__) . "/../site/include/global.php"); include_once($config["base_path"] . "/lib/snmp.php"); include_once($config["base_path"] . "/lib/data_query.php"); diff -Naur cli/rebuild_poller_cache.php cli_working/rebuild_poller_cache.php --- cli/rebuild_poller_cache.php 2009-03-27 10:33:56.000000000 +0100 +++ cli_working/rebuild_poller_cache.php 2009-04-21 17:01:22.000000000 +0200 @@ -29,7 +29,7 @@ $no_http_headers = true; -include(dirname(__FILE__) . "/../include/global.php"); +include(dirname(__FILE__) . "/../site/include/global.php"); include_once($config["base_path"] . "/lib/utility.php"); /* process calling arguments */ diff -Naur cli/repair_database.php cli_working/repair_database.php --- cli/repair_database.php 2009-03-27 10:33:56.000000000 +0100 +++ cli_working/repair_database.php 2009-04-21 17:01:22.000000000 +0200 @@ -30,7 +30,7 @@ $no_http_headers = true; -include(dirname(__FILE__) . "/../include/global.php"); +include(dirname(__FILE__) . "/../site/include/global.php"); /* process calling arguments */ $parms = $_SERVER["argv"]; diff -Naur cli/structure_rra_paths.php cli_working/structure_rra_paths.php --- cli/structure_rra_paths.php 2009-03-27 10:33:56.000000000 +0100 +++ cli_working/structure_rra_paths.php 2009-04-21 17:01:22.000000000 +0200 @@ -30,7 +30,7 @@ $no_http_headers = TRUE; $proceed = FALSE; -include(dirname(__FILE__) . "/../include/global.php"); +include(dirname(__FILE__) . "/../site/include/global.php"); /* process calling arguments */ $parms = $_SERVER["argv"]; diff -Naur cli/upgrade_database.php cli_working/upgrade_database.php --- cli/upgrade_database.php 2009-03-27 10:33:56.000000000 +0100 +++ cli_working/upgrade_database.php 2009-04-21 17:01:22.000000000 +0200 @@ -30,7 +30,7 @@ /* allow the upgrade script to run for as long as it needs to */ ini_set('max_execution_time', '0'); -include(dirname(__FILE__)."/../include/global.php"); +include(dirname(__FILE__)."/../site/include/global.php"); include_once($config["base_path"]."/lib/data_query.php"); include_once($config["base_path"]."/lib/utility.php"); -- System Information: Debian Release: 5.0.1 APT prefers stable APT policy: (500, 'stable') Architecture: i386 (i686) Kernel: Linux 2.6.26-2-686 (SMP w/1 CPU core) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages cacti depends on: ii apache2 2.2.9-10+lenny2 Apache HTTP Server metapackage ii apache2-mpm-prefor 2.2.9-10+lenny2 Apache HTTP Server - traditional n ii dbconfig-common 1.8.39 common framework for packaging dat ii debconf [debconf-2 1.5.24 Debian configuration management sy ii libapache2-mod-php 5.2.6.dfsg.1-1+lenny2 server-side, HTML-embedded scripti ii libphp-adodb 5.05-1 The ADOdb database abstraction lay ii logrotate 3.7.1-5 Log rotation utility ii mysql-client-5.0 [ 5.0.51a-24 MySQL database client binaries ii php5-cli 5.2.6.dfsg.1-1+lenny2 command-line interpreter for the p ii php5-mysql 5.2.6.dfsg.1-1+lenny2 MySQL module for php5 ii php5-snmp 5.2.6.dfsg.1-1+lenny2 SNMP module for php5 ii rrdtool 1.3.1-4 Time-series data storage and displ ii snmp 5.4.1~dfsg-12 SNMP (Simple Network Management Pr ii ucf 3.0016 Update Configuration File: preserv Versions of packages cacti recommends: ii iputils-ping 3:20071127-1 Tools to test the reachability of ii mysql-server 5.0.51a-24 MySQL database server (metapackage ii mysql-server-5.0 [mysql-ser 5.0.51a-24 MySQL database server binaries Versions of packages cacti suggests: pn php5-ldap <none> (no description available) -- debconf information: cacti/password-confirm: (password omitted) cacti/app-password-confirm: (password omitted) cacti/mysql/admin-pass: (password omitted) cacti/mysql/app-pass: (password omitted) cacti/db/app-user: cacti cacti/mysql/admin-user: root cacti/upgrade-backup: true cacti/install-error: abort * cacti/webserver: Apache2 cacti/internal/reconfiguring: false cacti/mysql/method: unix socket cacti/remote/host: cacti/upgrade-error: abort * cacti/dbconfig-upgrade: true cacti/internal/skip-preseed: false cacti/remote/newhost: cacti/purge: false cacti/passwords-do-not-match: * cacti/dbconfig-remove: * cacti/dbconfig-install: true cacti/missing-db-package-error: abort cacti/database-type: mysql cacti/remove-error: abort cacti/db/dbname: cacti cacti/remote/port: * cacti/dbconfig-reinstall: false