Cactiusers.org


It is currently Thu May 17, 2012 7:20 am




Post new topic Reply to topic  [ 3 posts ] 
 problem install arch in debian apt packags 
Author Message
Post problem install arch in debian apt packags
Hi...

I have one problem in the patch arch

See:

Code:
pollux:/usr/share/cactitest# cd site
pollux:/usr/share/cactitest/site# pwd
/usr/share/cactitest/site
pollux:/usr/share/cactitest/site#
pollux:/usr/share/cactitest/site# unzip /tmp/cacti-
cacti-0.8.6g.tar.gz    cacti-plugin-arch.zip
pollux:/usr/share/cactitest/site# unzip /tmp/cacti-plugin-arch.zip
Archive:  /tmp/cacti-plugin-arch.zip
  inflating: Readme.txt
  inflating: files-0.8.6g/include/config_arrays.php
  inflating: files-0.8.6g/include/config_form.php
  inflating: files-0.8.6g/include/config.php
  inflating: files-0.8.6g/include/config_settings.php
  inflating: files-0.8.6g/include/plugins.php
  inflating: files-0.8.6g/include/top_graph_header.php
  inflating: files-0.8.6g/include/top_header.php
  inflating: files-0.8.6g/lib/api_device.php
  inflating: files-0.8.6g/lib/functions.php
  inflating: files-0.8.6g/lib/html.php
  inflating: files-0.8.6g/lib/html_form.php
  inflating: files-0.8.6g/data_sources.php
  inflating: files-0.8.6g/poller.php
  inflating: files-0.8.6g/plugins/index.php
  inflating: files-0.8.6g/graphs_new.php
  inflating: files-0.8.6f/include/config_form.php
  inflating: files-0.8.6f/include/top_header.php
  inflating: files-0.8.6f/include/config.php
  inflating: files-0.8.6f/include/plugins.php
  inflating: files-0.8.6f/include/config_arrays.php
  inflating: files-0.8.6f/include/config_settings.php
  inflating: files-0.8.6f/include/top_graph_header.php
  inflating: files-0.8.6f/lib/functions.php
  inflating: files-0.8.6f/lib/html.php
  inflating: files-0.8.6f/lib/api_device.php
  inflating: files-0.8.6f/lib/html_form.php
  inflating: files-0.8.6f/data_sources.php
  inflating: files-0.8.6f/poller.php
  inflating: files-0.8.6f/plugins/index.php
  inflating: files-0.8.6f/graphs_new.php
  inflating: cacti-plugin-0.8.6f.diff
  inflating: cacti-plugin-0.8.6g.diff
pollux:/usr/share/cactitest/site#
pollux:/usr/share/cactitest/site# patch -p1 -N < cacti-plugin-0.8.6g.diff
patching file data_sources.php
patching file graphs_new.php
patching file include/config_arrays.php
patching file include/config_form.php
patching file include/config.php
Hunk #1 FAILED at 26.
Hunk #2 succeeded at 172 (offset -3 lines).
1 out of 2 hunks FAILED -- saving rejects to file include/config.php.rej
patching file include/config_settings.php
patching file include/plugins.php
patching file include/top_graph_header.php
patching file include/top_header.php
patching file lib/api_device.php
patching file lib/functions.php
patching file lib/html_form.php
patching file lib/html.php
patching file plugins/index.php
patching file poller.php
Hunk #1 succeeded at 35 with fuzz 1.
Hunk #2 succeeded at 231 (offset -3 lines).
pollux:/usr/share/cactitest/site#


Anyone knows as to arrange this?
My cacti is functioning perfectly.
I wait any aid.

Thanks


Wed Oct 19, 2005 2:59 pm
Site Admin

Joined: Thu Nov 11, 2004 11:12 am
Posts: 2007
Post 
Code:
patching file include/config.php
Hunk #1 FAILED at 26.
Hunk #2 succeeded at 172 (offset -3 lines).
1 out of 2 hunks FAILED -- saving rejects to file include/config.php.rej


This is the important part here. Your config file was already modified (thanks to the RPM) so it couldn't be patched correctly. Just use the pre-patched config.php that is included in the archive, and override your current one (back it up first so you can pull the database info out of it). Then re-edit your config.php to include the proper settings.


Wed Oct 19, 2005 10:31 pm
Post yeah... almost
Hi...

My problem in:

resolved:

Code:
pollux:/usr/share/cactitest# cd site
pollux:/usr/share/cactitest/site# pwd
/usr/share/cactitest/site
pollux:/usr/share/cactitest/site#
pollux:/usr/share/cactitest/site# unzip /tmp/cacti-
cacti-0.8.6g.tar.gz    cacti-plugin-arch.zip
pollux:/usr/share/cactitest/site# unzip /tmp/cacti-plugin-arch.zip
Archive:  /tmp/cacti-plugin-arch.zip
  inflating: Readme.txt
  inflating: files-0.8.6g/include/config_arrays.php
  inflating: files-0.8.6g/include/config_form.php
  inflating: files-0.8.6g/include/config.php
  inflating: files-0.8.6g/include/config_settings.php
  inflating: files-0.8.6g/include/plugins.php
  inflating: files-0.8.6g/include/top_graph_header.php
  inflating: files-0.8.6g/include/top_header.php
  inflating: files-0.8.6g/lib/api_device.php
  inflating: files-0.8.6g/lib/functions.php
  inflating: files-0.8.6g/lib/html.php
  inflating: files-0.8.6g/lib/html_form.php
  inflating: files-0.8.6g/data_sources.php
  inflating: files-0.8.6g/poller.php
  inflating: files-0.8.6g/plugins/index.php
  inflating: files-0.8.6g/graphs_new.php
  inflating: files-0.8.6f/include/config_form.php
  inflating: files-0.8.6f/include/top_header.php
  inflating: files-0.8.6f/include/config.php
  inflating: files-0.8.6f/include/plugins.php
  inflating: files-0.8.6f/include/config_arrays.php
  inflating: files-0.8.6f/include/config_settings.php
  inflating: files-0.8.6f/include/top_graph_header.php
  inflating: files-0.8.6f/lib/functions.php
  inflating: files-0.8.6f/lib/html.php
  inflating: files-0.8.6f/lib/api_device.php
  inflating: files-0.8.6f/lib/html_form.php
  inflating: files-0.8.6f/data_sources.php
  inflating: files-0.8.6f/poller.php
  inflating: files-0.8.6f/plugins/index.php
  inflating: files-0.8.6f/graphs_new.php
  inflating: cacti-plugin-0.8.6f.diff
  inflating: cacti-plugin-0.8.6g.diff
pollux:/usr/share/cactitest/site#
pollux:/usr/share/cactitest/site# patch -p1 -N < cacti-plugin-0.8.6g.diff
patching file data_sources.php
patching file graphs_new.php
patching file include/config_arrays.php
patching file include/config_form.php
patching file include/config.php
Hunk #1 FAILED at 26.
Hunk #2 succeeded at 172 (offset -3 lines).
1 out of 2 hunks FAILED -- saving rejects to file include/config.php.rej
patching file include/config_settings.php
patching file include/plugins.php
patching file include/top_graph_header.php
patching file include/top_header.php
patching file lib/api_device.php
patching file lib/functions.php
patching file lib/html_form.php
patching file lib/html.php
patching file plugins/index.php
patching file poller.php
Hunk #1 succeeded at 35 with fuzz 1.
Hunk #2 succeeded at 231 (offset -3 lines).
pollux:/usr/share/cactitest/site#


But...

Monitor and Thold not show me.

my config.php:

Code:
my directories:

pollux:/usr/share/cacti/site# ls
about.php                 data_queries.php    graph_settings.php          host_templates.php  poller_commands.php  script_server.php
auth_changepassword.php   data_sources.php    graphs_items.php            images              poller_export.php    settings.php
auth_login.php            data_templates.php  graphs_new.php              include             poller.php           templates_export.php
cacti-plugin-0.8.6f.diff  docs                graphs.php                  index.php           poller.php.orig      templates_import.php
cacti-plugin-0.8.6g.diff  files-0.8.6f        graph_templates_inputs.php  install             Readme.txt           tree.php
cdef.php                  files-0.8.6g        graph_templates_items.php   lib                 resource             updates
cmd.php                   gprint_presets.php  graph_templates.php         log                 rra                  user_admin.php
color.php                 graph_image.php     graph_view.php              logout.php          rra.php              utilities.php
data_input.php            graph.php           host.php                    plugins             scripts
pollux:/usr/share/cacti/site#

---- config file ---------
$plugins = array();
$plugins[] = 'monitor';
$plugins[] = 'thold';
include_once($config["include_path"] . "plugins.php");
/* Do not edit this line */
//$config = array();

$config = array();
$colors = array();
$config["url_path"] = '/cacti/';
---------------------------------------


Dont show monitor and thold in my cacti

thanks


Thu Oct 20, 2005 5:45 pm
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for: