Plugin Architecture v1.4 for Cacti v0.8.7a

Support for the Plugin Architecture

Moderators: Developers, Moderators

Post Reply
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Plugin Architecture v1.4 for Cacti v0.8.7a

Post by cigamit »

I have now released the latest PA that is compatible with Cacti v0.8.7a

Notable in this release is a fix to allow the poller_top and poller_bottom hooks to work if your cron interval is different than your poller interval.

http://cactiusers.org/downloads/cacti-p ... rch.tar.gz


As always, please read the documentation on installing the PA and install plugins.
http://cactiusers.org/wiki/PluginArchitectureInstall
http://cactiusers.org/wiki/PluginsInstall
http://cactiusers.org/wiki/PluginTips
User avatar
gvibe06
Posts: 20
Joined: Tue Oct 30, 2007 8:12 am
Location: Alpharetta, GA
Contact:

Post by gvibe06 »

Will this version work in 0.86j or only 0.87a?

Where is the archive of older releases, in case the answer to the above question is NO?

Thanks!
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Hi

latest PIA release for Cacti 0.8.6j is 1.1
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
pconrad
Posts: 19
Joined: Mon Jun 12, 2006 8:29 am

PIA killed cacti

Post by pconrad »

I installed cacti from cacti-0.8.7a.tar.gz, and all was well. I installed the plugin architecture for this release and followed all the instructions. The database info is correct, and I have made the change to the global.php as instructed.

Now when I try to log into cacti, I get the following message:

Forbidden

You don't have permission to access /cacti/ on this server.

The apache log shows
(13)Permission denied: access to /cacti/index.php denied

What could the problem be?
"So Long, and thanks for all the fish!" DA
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Hi

can you check the files permissions (they need to be readable by your webserver user) ?

Using the path may have reset them...
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
pconrad
Posts: 19
Joined: Mon Jun 12, 2006 8:29 am

Post by pconrad »

I've set the permissions on the rra/ and log/ to the cacti user.

What other permissions should be set?
"So Long, and thanks for all the fish!" DA
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Check the permissions of all .php files modified par the patch.
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
pconrad
Posts: 19
Joined: Mon Jun 12, 2006 8:29 am

Post by pconrad »

I've verified the permissions from the backup, and they are correct.
I've created a test html file in /var/www/html/cacti and it works, so I know I can see the directory.
"So Long, and thanks for all the fish!" DA
pconrad
Posts: 19
Joined: Mon Jun 12, 2006 8:29 am

solved -

Post by pconrad »

I copied the patched files over individually, and made the path change in global config. All seems to be working correctly.
"So Long, and thanks for all the fish!" DA
DLNoah
Cacti User
Posts: 119
Joined: Wed Jun 20, 2007 11:27 pm

Post by DLNoah »

As a note for anyone else who may run into this:

I'm running cacti 0.8.7a on CentOS 5, which includes SE Linux. After using the .diff file to patch my cacti distro, I was receiving an apache permission error (403). Looking at the Apache log file, I saw that Apache was being denied to index.php.

Temporarily disabling SELinux allowed me to access cacti again, so I looked into permission issues.

I tried chmod 755 for all files in the cacti directory, which reapplied the 755 permissions but did not resolve the problem.

As I could still reach files within the root of my html directory, I then ran the following command:
chcon --reference=/var/html/www /var/html/www/cacti -R

That command then allowed my cacti to begin working normally again. So the patched files apparently have a security context that does not match Apache's context, which was causing SELinux to deny access to them. Restoring the proper context will fix this problem.
KyRoo
Cacti User
Posts: 51
Joined: Fri Oct 19, 2007 10:19 am

Post by KyRoo »

has anyone still have PIA 1.4 for me please?
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Hi

here it is.
Attachments
cacti-plugin-arch-1.4.tar.gz
(157.41 KiB) Downloaded 1025 times
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
KyRoo
Cacti User
Posts: 51
Joined: Fri Oct 19, 2007 10:19 am

Post by KyRoo »

fmangeant wrote:Hi

here it is.
Thx
User avatar
jmb
Posts: 17
Joined: Tue Jul 29, 2008 2:32 pm

Post by jmb »

It's taken me a while to find the 1.4 version for 0.8.7a in that attachment - having a link to cacti-plugin-arch.tar.gz on a thread announcing 1.4 but which always points to the latest version is confusing.

Would it be possible to keep a repository of previous versions somewhere more visible? (yes, I know upgrading to .7b would be better, but we can't at present)

cheers,
-jmb
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest