How to install plugin architecture on running Cacti system ?

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
User avatar
ruud
Cacti User
Posts: 64
Joined: Tue Aug 22, 2006 3:07 am
Location: Rotterdam, The Netherlands
Contact:

How to install plugin architecture on running Cacti system ?

Post by ruud »

I have been running for a while now and am very impressed..

My version is : 0.8.6h_p20060108-r2

Now i want to install some plugin and found out i need the "plugin architecture" for this.

The .diff patch wont work since i use the emerge version of cacti on my gentoo system. So i tried copying the files included in the patch gz. This totally fucked up my system. Cacti refused to work..

so after restoring the files i luckilly backup before trying this my cacti works just fine.. However it leaves me with the problem :

How do i get the plugins working ? I obviously need to in stall the plugin architecture but this will screw up my system.

Is there any way to get the plugins working while leaving my current cacti in a working state ?




If gentoo update cacti, will i need te reinstall the patch ?
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

Using a packaged version of cacti makes it extremely difficult to add the Plugin Architecture, since distros seem to move the files around all over the place. Also, the config.php that most distros use seems to have a few minor additions beyond the normal cacti stuff, so using the pre-patched files is out of the question.

It can be done, but it isn't pretty. You basically need to find where each file that needs patching is located, and then patch the files by hand.

If you do happen to update the cacti install, there is a good chance that you will have to then re-install the plugin architecture.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

cigamit wrote:If you do happen to update the cacti install, there is a good chance that you will have to then re-install the plugin architecture.
That is your biggest worry. :o
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
Lazybones
Posts: 40
Joined: Wed Aug 23, 2006 9:47 am

Post by Lazybones »

The plugin SYSTEM should probably be included in the main distribution if that is the case.

Sort of redundant to have to mod the system to um mod the system. I have looked at the install directions a few times now and don't think I even want to touch it. Which sucks...
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

We are designing a more robust and feature rich Plugin Architecture for v0.9.0, so it will be in the System. If you can wait until then, then feel free to do so.
neurotox
Cacti User
Posts: 63
Joined: Mon Apr 17, 2006 3:28 pm
Location: Chateauguay, Quebec

Post by neurotox »

after you have copied every file....have you reconfigure the option in config.php?

have you set the good url to your cacti in config.php?

You can also install cacti from source, is not so hard... I have done it in a debian system... if you want I can post my step but is nothing special
-backup
-install
-restore data
-reconfig
...

If you want to install from source, just do a check list first.
ixtab
Posts: 25
Joined: Fri Aug 04, 2006 10:00 am

Post by ixtab »

hi had the same problem, i installed cacti from a rpm file, and this is what i did;
i downloaded the cacti-plugin-arch.tar.gz and replace all the files of the files.0.86h to my original instalation...
after this i edit the /config.php with my original values, i mean yo $default_database, ...., and y edit config ['url_path']='/cacti/', and that all, you won't lose any of your datas.
i hope you find useful this post..
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests