install problem on ubuntu

Support for the Plugin Architecture

Moderators: Developers, Moderators

Post Reply
ncariaga
Posts: 7
Joined: Fri Jun 27, 2008 8:38 pm
Contact:

install problem on ubuntu

Post by ncariaga »

Hi all!

I tried installing PA2.1 on a ubuntu 8.04 system.. I had the following errors:

dev@hardy:/usr/share/cacti/site$ patch -p1 -N --dry-run < /home/dev/cacti-plugin-arch/cacti-plugin-0.8.7b-PA-v2.1.diff
patching file auth_changepassword.php
patching file auth_login.php
patching file data_sources.php
patching file graph_image.php
patching file graph.php
patching file graphs_new.php
patching file graphs.php
patching file host.php
patching file include/auth.php
patching file include/global_arrays.php
patching file include/global_form.php
patching file include/global.php
Hunk #3 FAILED at 194.
1 out of 4 hunks FAILED -- saving rejects to file include/global.php.rej
patching file include/global_settings.php
Hunk #1 succeeded at 1084 (offset 1 line).
patching file include/plugins.php
patching file include/top_graph_header.php
patching file include/top_header.php
patching file index.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 lib/html_tree.php
patching file lib/plugins.php
patching file lib/poller.php
patching file lib/rrd.php
patching file lib/variables.php
patching file plugins/index.php
patching file plugins.php
patching file poller.php
patching file user_admin.php
patching file utilities.php

I was hoping you could help me out with this. I saw a thread (ubuntu 8.04 install problem) but it does not seem to work in my case. Thank you.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

You only need to post things like this once. Please refrain from making our fingertips any sorer than they already are.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
gigglesworth
Posts: 24
Joined: Wed Jan 25, 2006 12:51 pm

Post by gigglesworth »

I am also getting this error during the patching. I am running Ubuntu 8.04 with Cacti 0.8.7b (From the default repositories). Since this is the default Cacti supplied with Ubuntu 8.04, I I suspect this problem affects all Ubuntu 8.04 users.

How can I provide more information to get this resolved? Would it help if I supplied the contents of "global.php.rej" ?

I made a few attempts to fix this on my own, but I don't think I understand the patch syntax enough.
User avatar
streaker69
Cacti Pro User
Posts: 712
Joined: Mon Mar 27, 2006 10:35 am
Location: Psychic Amish Network Administrator

Post by streaker69 »

Just download the base files of .87b and get it running first. Then download the source for PIA 2.1 and extract them to a directory. Inside there are the 'patched' files. Copy them over top the files that are already existing in your cacti installation and then import the PIA SQL file into MySQL.

Don't mess around with the patching. (no offense to the dev's), I've never see the patch work right.
[b]Cacti Version[/b] - 0.8.7d
[b]Plugin Architecture[/b] - 2.4
[b]Poller Type[/b] - Cactid v
[b]Server Info[/b] - Linux 2.6.18-128.1.6.el5
[b]Web Server[/b] - Apache/2.2.3 (CentOS)
[b]PHP[/b] - 5.2.9
[b]MySQL[/b] - 5.0.45-log
[b]RRDTool[/b] - 1.3.0
[b]SNMP[/b] - 5.3.2.2
[b]Plugins[/b]PHP Network Managing v0.6.1, Global Plugin Settings v0.6,thold v0.4.1,XMLPort v0.3.5,CactiCam v0.1.5,NetTools v0.1.5,pollperf v0.32,RRD Cleaner v1.1,sqlqueries v0.2,superlinks v0.8,syslog v0.5.2,update v0.4,discovery v0.9,zond v0.34a,hostinfo v0.2,Bloom v0.6.5,mactrack v1.1,weathermap v0.96a,mobile v0.1
gigglesworth
Posts: 24
Joined: Wed Jan 25, 2006 12:51 pm

Post by gigglesworth »

Just download the base files of .87b and get it running first.
By this, do you mean that the default Cacti provided by Ubuntu 8.04 isn't good enough. I should download the tarball from Cacti.net and install that.

Correct?
Last edited by gigglesworth on Fri Aug 08, 2008 4:38 pm, edited 1 time in total.
User avatar
streaker69
Cacti Pro User
Posts: 712
Joined: Mon Mar 27, 2006 10:35 am
Location: Psychic Amish Network Administrator

Post by streaker69 »

gigglesworth wrote:<i>Just download the base files of .87b and get it running first. </i>

By this, do you mean that the default Cacti provided by Ubuntu 8.04 isn't good enough. I should download the tarball from Cacti.net and install that.

Correct?
That's the way I always do it. Download the Tarball and install it fresh. Never had an issue.
[b]Cacti Version[/b] - 0.8.7d
[b]Plugin Architecture[/b] - 2.4
[b]Poller Type[/b] - Cactid v
[b]Server Info[/b] - Linux 2.6.18-128.1.6.el5
[b]Web Server[/b] - Apache/2.2.3 (CentOS)
[b]PHP[/b] - 5.2.9
[b]MySQL[/b] - 5.0.45-log
[b]RRDTool[/b] - 1.3.0
[b]SNMP[/b] - 5.3.2.2
[b]Plugins[/b]PHP Network Managing v0.6.1, Global Plugin Settings v0.6,thold v0.4.1,XMLPort v0.3.5,CactiCam v0.1.5,NetTools v0.1.5,pollperf v0.32,RRD Cleaner v1.1,sqlqueries v0.2,superlinks v0.8,syslog v0.5.2,update v0.4,discovery v0.9,zond v0.34a,hostinfo v0.2,Bloom v0.6.5,mactrack v1.1,weathermap v0.96a,mobile v0.1
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests