Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Sat Sep 23, 2017 11:33 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 13 posts ] 
Author Message
 Post subject: plugin Architecture install problems in debian
PostPosted: Wed May 23, 2007 10:41 am 
Offline

Joined: Wed May 23, 2007 10:40 am
Posts: 1
Dear all,

I have installed cacti from the default debian package and after I have installed, everything is working correctly. I have thus proceed to install the plugin architecture but encountered the below errors. I hope someone can help me. I have tried the method of overwritting the orginal files with the ones from the package but it does not work either.


mika:/usr/share/cacti/site# patch -p1 -N --dry-run < cacti-plugin-0.8.6i.diff
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/config_arrays.php
patching file include/config_form.php
patching file include/config.php
Hunk #1 succeeded at 28 with fuzz 2 (offset -4 lines).
Hunk #2 succeeded at 63 (offset -4 lines).
Hunk #3 succeeded at 77 (offset -4 lines).
Hunk #4 succeeded at 187 (offset -4 lines).
patching file include/config_settings.php
Hunk #1 succeeded at 929 (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/poller.php
Reversed (or previously applied) patch detected! Skipping patch.
4 out of 4 hunks ignored -- saving rejects to file lib/poller.php.rej
patching file lib/rrd.php
patching file lib/variables.php
patching file plugins/index.php
patching file poller.php
Hunk #2 FAILED at 168.
1 out of 4 hunks FAILED -- saving rejects to file poller.php.rej
patching file user_admin.php
patching file utilities.php


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 01, 2007 7:00 pm 
Offline
Developer

Joined: Thu Apr 07, 2005 3:29 pm
Posts: 2624
Location: B/CS Texas
I should probably post this in the install documentation, but please don't use the rpm for cacti if you are going to also install any patches. RPMs developers sometimes make their own changes that may be incompatible with any patch you might want to install. I do believe that upgrading the rpm install will also wipe out your changes.

If you're going to patch something, go ahead and start with your own base cacti install, that way you know exactly what you are getting, and that is what the patches are based off of.

Or if all else fails, use the pre-patched files.

_________________
CactiEZ CD


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jun 02, 2007 6:40 am 
Offline
Developer
User avatar

Joined: Tue May 14, 2002 5:08 pm
Posts: 14863
Location: MI, USA
The Debian install makes fairly significant changes to the default install of Cacti.

TheWitness

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

Life is an adventure, let yours begin with Cacti!

Author of MacTrack, Boost, CLog, SpikeKill, Platform RTM, DSStats, maintainer of Spine, lot's of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
Gandalfs Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 27, 2007 5:04 am 
Offline

Joined: Wed Jun 27, 2007 4:58 am
Posts: 5
I'm having the same problem. I followed this guide which seems to be for a standard install with nothing Debian specific. After applying the patch it seems like some paths are messed up as the initial page displays but without any CSS and any link clicked on results in a page not found. Anyone managed to install the plugin architecture on an apt installed version of Cacti?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 27, 2007 5:38 am 
Offline
Cacti User

Joined: Wed Jul 13, 2005 4:50 pm
Posts: 135
I did

I had to modify some files to get it working. From what I recall, you must edit include/config.php and replace the mysql login parameters at the beginning with
Code:
$database_type = "mysql";
require('/etc/cacti/debian.php');


I think I also modified the path of the adodb library near line 155 to include("/usr/share/php/adodb/adodb.inc.php");
because Cacti in debian use the adodb shipped with Debian, and not the one shipped with Cacti.

There is also an include_once("./lib/html_tree.php"); needed in include/top_graph_header.php or a file which sound like that.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 27, 2007 6:45 am 
Offline

Joined: Wed Jun 27, 2007 4:58 am
Posts: 5
Thanks Exo7,
The first two changes you mentioned seem to already be in place and I'm not quite sure what to do with the 3rd. There are a bunch of .rej files scattered around the place so I think I might be pushing shit up hill. Looks like I'll have to go with the non-apt option which is a shame since it's one of the best parts of Debian.

Edit: It's probably worth noting that I'm using Debian 4.0


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 27, 2007 8:33 am 
Offline
Developer
User avatar

Joined: Tue May 14, 2002 5:08 pm
Posts: 14863
Location: MI, USA
The Packager for Debian is pretty good at what he does. The problem is that we have not rolled the PIA into Cacti formaly and therefore, he is likely not going to incorporate. He might be convinced to write a package to do it though.

You should open a ticket on the Debian bug tracking site as a feature request. Donations will always provide incentive.

TheWitness

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

Life is an adventure, let yours begin with Cacti!

Author of MacTrack, Boost, CLog, SpikeKill, Platform RTM, DSStats, maintainer of Spine, lot's of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
Gandalfs Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 27, 2007 6:56 pm 
Offline

Joined: Wed Jun 27, 2007 4:58 am
Posts: 5
Looks like someone's beaten me to it -
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=406766

I'm not sure why he'd be reluctant to include the architecture as it would seem to provide a large chunk of functionality.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 28, 2007 10:18 am 
Offline
Cacti User

Joined: Wed Jul 13, 2005 4:50 pm
Posts: 135
I'm using Debian 4.0 too, with Cacti 0.8.6i-3 from Debian stable repository.

To make the Plugin Architecture work, I made a backup of the cacti directory and untarballed the architecture, then I modified the include/config.php and include/graph_tree.php (I verified what file it was, if you browse the cacti interface without this modification you will see a missing function at the top of the page)

I did not use the patched version of the Plugin Architecture.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 18, 2007 5:47 am 
Offline

Joined: Sun Jan 22, 2006 7:35 am
Posts: 27
TheWitness wrote:
The Packager for Debian is pretty good at what he does. The problem is that we have not rolled the PIA into Cacti formaly and therefore, he is likely not going to incorporate. He might be convinced to write a package to do it though.

You should open a ticket on the Debian bug tracking site as a feature request. Donations will always provide incentive.

TheWitness


I would also like to see the plugin architecture in the debian release. I mailed the maintainer and he's not against it, but he wants to know what the main cacti developers think of this. From what I read here on the forums, the plugin architecture may be integrated in Cacti 0.9? However, I have no idea when this will be released. He also said that any help would be appreciated :)
You can view his response at the bug report: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=406766


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 24, 2007 10:23 am 
Offline

Joined: Wed Feb 28, 2007 5:03 am
Posts: 7
Hello, i had the same problem,

modify the include/config.php file resolv it a bit...

Now i can launch cacti with architecture plugin...
but the graphin' was stopped, but if i execute the poller.php manually it graph...

And it seem to get a missing function... But i dont find the include/graph_tree.php to modifie...

Any idea?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 25, 2007 3:51 am 
Offline

Joined: Wed Feb 28, 2007 5:03 am
Posts: 7
okay, my graph are graphin again.. but i always don't get the missing function at the top of the page, any idea?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 27, 2007 11:38 pm 
Offline
Developer

Joined: Thu Apr 07, 2005 3:29 pm
Posts: 2624
Location: B/CS Texas
What is the exact error?

_________________
CactiEZ CD


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 

All times are UTC - 5 hours


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:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group