how to install plugins in cacti?

Addons for Cacti and discussion about those addons

Moderators: Developers, Moderators

emiel
Posts: 24
Joined: Wed May 20, 2009 6:26 am

how to install plugins in cacti?

Post by emiel »

Hi al!

im with an problem...i cannot find any good tut that is showing me how to install an plugin in cacti :(

i have installed ubuntu 9.04 server edition and with apt-get install cacti i installed cacti. everything is up and running and monitoring.

I followed a few sites which tell me how to install a plugin but it doesnt work at the moment. at the site http://cactiusers.org/wiki/PluginsInstall they tell me to upload the directory from the plugin in de plugin directory from cacti. In ubuntu this should be /usr/share/cacti/site/ but in that directory there is no dir with the name plugins, so i created one of my own. Further down in the article they said that ive had to edit include/global.php and have to look for an line started with $plugins = array(); but nothing is there :(

i created the lines on my own and give it a shot buth nothing happens.

i searched a lot but i cant find any good tut that is showing me how to install an plugin (i.e monitor)

can any of you tell me what i am doing wrong of forgot to do?

thnx in advance!

Emiel
User avatar
browniebraun
Developer
Posts: 791
Joined: Tue Jun 13, 2006 1:17 am
Location: Cologne, Germany

Re: how to install plugins in cacti?

Post by browniebraun »

emiel wrote:Hi al!

im with an problem...i cannot find any good tut that is showing me how to install an plugin in cacti :(

i have installed ubuntu 9.04 server edition and with apt-get install cacti i installed cacti. everything is up and running and monitoring.

I followed a few sites which tell me how to install a plugin but it doesnt work at the moment. at the site http://cactiusers.org/wiki/PluginsInstall they tell me to upload the directory from the plugin in de plugin directory from cacti. In ubuntu this should be /usr/share/cacti/site/ but in that directory there is no dir with the name plugins, so i created one of my own. Further down in the article they said that ive had to edit include/global.php and have to look for an line started with $plugins = array(); but nothing is there :(

i created the lines on my own and give it a shot buth nothing happens.

i searched a lot but i cant find any good tut that is showing me how to install an plugin (i.e monitor)

can any of you tell me what i am doing wrong of forgot to do?

thnx in advance!

Emiel
First off ...
To get plugins running with Cacti you've to ensure that you've installed the plugin architecture (PIA) until 0.8.8 will be released! If the plugin folder is missing then you forgot this important step.
So, if you're running Cacti 0.8.7d then download PIA 2.4. The archive always contains a diff-file and prepatched files of Cacti, so it's up to you which one you want to use to update Cacti.
(At home I prefer the prepatched files. It takes a second to overwrite all the files. :roll:
But before updating Cacti keep your database settings in mind and actualize the new global.php and config.php after the update.)

Now you have to create all necessary database tables to get PIA2 running. So import the pa.sql to your cacti database.
Open your browser, login to Cacti and go to the user management.
Edit your account and you will see a new option called "Plugin Management" under the realm permissions. Tick it and press "save".

After that you'll find a new entry under "Configuration" to open the Plugin Management. It shows all installed plugins (PIA 1 and 2) and allows to install/enable/disable and uninstall all plugins which are compatible with PIA2.
To install/uninstall plugins which do not support PIA 2 you have edit the include/global.php.

Best regards
-Andreas-
Hat das Blümchen einen Knick, war der Schmetterling zu dick! ;)
reportit v0.7.5a
SNMPAgent v0.2.3
Download ReportIt | Download SNMPAgent | ReportIt SVN | ReportIt Templates | Wish list
emiel
Posts: 24
Joined: Wed May 20, 2009 6:26 am

Post by emiel »

thnx!! :)

I will give it a try :)
can i btw install PIA2 also on cacti 0.8.7b? or doesnt that matter?
User avatar
browniebraun
Developer
Posts: 791
Joined: Tue Jun 13, 2006 1:17 am
Location: Cologne, Germany

Post by browniebraun »

emiel wrote:thnx!! :)

I will give it a try :)
can i btw install PIA2 also on cacti 0.8.7b? or doesnt that matter?
Yep. It's important to use the right version!!! For Cacti 0.8.7b I would choose PIA 2.2b.
Hat das Blümchen einen Knick, war der Schmetterling zu dick! ;)
reportit v0.7.5a
SNMPAgent v0.2.3
Download ReportIt | Download SNMPAgent | ReportIt SVN | ReportIt Templates | Wish list
emiel
Posts: 24
Joined: Wed May 20, 2009 6:26 am

Post by emiel »

i already figured it out :)

i did an quick search tot pia 2.2b but cant find it at the moment (still looking further) do you perhaps have a link where i can download it?

here is http://cactiusers.org/downloads/patches/ only version 2.4
User avatar
browniebraun
Developer
Posts: 791
Joined: Tue Jun 13, 2006 1:17 am
Location: Cologne, Germany

Post by browniebraun »

Here we go ... :D

http://forums.cacti.net/viewtopic.php?p=131573#131573

Best regards
-Andreas-
Hat das Blümchen einen Knick, war der Schmetterling zu dick! ;)
reportit v0.7.5a
SNMPAgent v0.2.3
Download ReportIt | Download SNMPAgent | ReportIt SVN | ReportIt Templates | Wish list
emiel
Posts: 24
Joined: Wed May 20, 2009 6:26 am

Post by emiel »

thnx! i was just browsing that topic..but it is the beta version ;)
emiel
Posts: 24
Joined: Wed May 20, 2009 6:26 am

Post by emiel »

it seems that it is not available for download anymoren :-?

is it pretty simple to update from 0.8.7b to 0.8.7d?
User avatar
browniebraun
Developer
Posts: 791
Joined: Tue Jun 13, 2006 1:17 am
Location: Cologne, Germany

Post by browniebraun »

emiel wrote:thnx! i was just browsing that topic..but it is the beta version ;)
It's latest version for 0.8.7b and you should use it.
Hat das Blümchen einen Knick, war der Schmetterling zu dick! ;)
reportit v0.7.5a
SNMPAgent v0.2.3
Download ReportIt | Download SNMPAgent | ReportIt SVN | ReportIt Templates | Wish list
User avatar
browniebraun
Developer
Posts: 791
Joined: Tue Jun 13, 2006 1:17 am
Location: Cologne, Germany

Post by browniebraun »

emiel wrote:it seems that it is not available for download anymoren :-?
Why? I can download it without having issues.
Cacit PIA 2.2
emiel wrote: is it pretty simple to update from 0.8.7b to 0.8.7d?
Maybe. :roll: For me it's pretty easy. :wink:
Hat das Blümchen einen Knick, war der Schmetterling zu dick! ;)
reportit v0.7.5a
SNMPAgent v0.2.3
Download ReportIt | Download SNMPAgent | ReportIt SVN | ReportIt Templates | Wish list
emiel
Posts: 24
Joined: Wed May 20, 2009 6:26 am

Post by emiel »

browniebraun wrote:
emiel wrote:it seems that it is not available for download anymoren :-?
Why? I can download it without having issues.
Cacit PIA 2.2
emiel wrote: is it pretty simple to update from 0.8.7b to 0.8.7d?
Maybe. :roll: For me it's pretty easy. :wink:
i can download that one to...i ment the final version, but i guess that the beta version is all there is :)

i will give it a try...
emiel
Posts: 24
Joined: Wed May 20, 2009 6:26 am

Post by emiel »

can you tell me where i can find any info on how to upgrade from cacti 0.8.7b to 0.8.7d ? :)
User avatar
browniebraun
Developer
Posts: 791
Joined: Tue Jun 13, 2006 1:17 am
Location: Cologne, Germany

Post by browniebraun »

emiel wrote:can you tell me where i can find any info on how to upgrade from cacti 0.8.7b to 0.8.7d ? :)
Here it is:

http://docs.cacti.net/manual:087:1_installation.3_upgrading#upgrading_cacti

Best regards
-Andreas-
Hat das Blümchen einen Knick, war der Schmetterling zu dick! ;)
reportit v0.7.5a
SNMPAgent v0.2.3
Download ReportIt | Download SNMPAgent | ReportIt SVN | ReportIt Templates | Wish list
emiel
Posts: 24
Joined: Wed May 20, 2009 6:26 am

Post by emiel »

thnx! i will give it a try :)
robocp01
Posts: 28
Joined: Mon Sep 21, 2009 3:59 pm
Location: Chalottesville, Va.

Plug - In Architecture Not working

Post by robocp01 »

I'm having trouble getting the plug-in architecture working on the newest version of Cacti 0.8.7e. I've read thru almost all the thread I can find related to this subject. I can see the folders are there in the c:\inetpub\wwroot\cacti\plugin\monitor. I tried to edit both the global.php and add entries to the config.php with out success.

Andreas i see your comment on the pa.sql file but don't understand what you mean regarding the import. The file exist under my current installation.

I never see anything under User Management to use Plug-In's. Any idea on what can be wrong.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests