problems to view plugin permission

Support for the Plugin Architecture

Moderators: Developers, Moderators

Post Reply
valeria2712
Posts: 17
Joined: Tue Mar 08, 2011 11:34 am

problems to view plugin permission

Post by valeria2712 »

Hi,
i want to install plugin cacti architecture and realtime plugin but i dont see plugin management in the website of my cacti after installing it. These are the steps i have followed:
I have correctly installed plugin architecture, version cacti 0.87g
1. I've copied files 0.87g in my cacti directory /var/www/cacti/cacti
2. I've reconfigured config.php like this:
$database_ type= "mysql";
$database_ default= "cacti";
$database_ hostname= "localhost";
$database_ username= "root";
$database_ port="3306";

+/* load up old style plugins here */
$plugins = array();
+//$plugins[] = 'thold';
+
$plugins[] = 'realtime';
+/*
+ Edit this to point to the default URL of your Cacti install
+ ex: if your cacti install as at http://serverip/cacti/ this
+ would be set to /cacti/
+*/

$'url_path' = "/cacti/";
4) import pa.sql in my database.

also after importing archives from files-08.7g i have these in my folder


drwxr-xr-x 9 root root 4096 2011-03-08 17:18 .
drwxr-xr-x 3 root root 4096 2011-02-22 18:18 ..
-rw-r--r-- 1 root root 0 2011-03-04 13:39 auth_changepassword.php.orig
-rw-r--r-- 1 root root 428 2011-03-04 13:39 auth_changepassword.php.rej
-rw-r--r-- 1 root root 0 2011-03-04 13:39 auth_login.php.orig
-rw-r--r-- 1 root root 4869 2011-03-04 13:39 auth_login.php.rej
drwxr-xr-x 2 root root 4096 2011-02-22 18:07 cli
-rw-r--r-- 1 root root 0 2011-03-04 13:39 data_sources.php.orig
-rw-r--r-- 1 root root 2454 2011-03-04 13:39 data_sources.php.rej
-rw-r--r-- 1 root root 0 2011-03-04 13:39 graph_image.php.orig
-rw-r--r-- 1 root root 278 2011-03-04 13:39 graph_image.php.rej
-rw-r--r-- 1 root root 0 2011-03-04 13:39 graph.php.orig
-rw-r--r-- 1 root root 4490 2011-03-04 13:39 graph.php.rej
-rw-r--r-- 1 root root 0 2011-03-04 13:39 graphs_new.php.orig
-rw-r--r-- 1 root root 799 2011-03-04 13:39 graphs_new.php.rej
-rw-r--r-- 1 root root 0 2011-03-04 13:39 graphs.php.orig
-rw-r--r-- 1 root root 1314 2011-03-04 13:39 graphs.php.rej
-rw-r--r-- 1 root root 0 2011-03-04 13:39 host.php.orig
-rw-r--r-- 1 root root 2622 2011-03-04 13:39 host.php.rej
drwxr-xr-x 2 root root 4096 2011-03-04 13:39 images
drwxr-xr-x 2 root root 4096 2011-03-08 19:05 include
-rw-r--r-- 1 root root 0 2011-03-04 13:39 index.php.orig
-rw-r--r-- 1 root root 389 2011-03-04 13:39 index.php.rej
drwxr-xr-x 2 root root 4096 2011-03-04 13:39 lib
drwxr-xr-x 3 root root 4096 2011-03-04 14:18 plugins
-rw-r--r-- 1 root root 25848 2011-03-04 13:39 plugins.php
-rw-r--r-- 1 root root 0 2011-03-04 13:39 poller.php.orig
-rw-r--r-- 1 root root 1388 2011-03-04 13:39 poller.php.rej
drwxr-xr-x 5 root root 4096 2011-02-22 18:07 resource
drwxr-xr-x 8 root root 4096 2011-03-04 13:46 site
-rw-r--r-- 1 root root 0 2011-03-04 13:39 user_admin.php.orig
-rw-r--r-- 1 root root 1573 2011-03-04 13:39 user_admin.php.rej
-rw-r--r-- 1 root root 0 2011-03-04 13:39 utilities.php.orig
-rw-r--r-- 1 root root 619 2011-03-04 13:39 utilities.php.rej

any idea? i am very confused at this point as i have tried everything...thank you very much
valeria2712
Posts: 17
Joined: Tue Mar 08, 2011 11:34 am

Re: problems to view plugin permission

Post by valeria2712 »

by the way i have restarted mysql and apache2 service too (i have forgotten to say this)
thank you very much for your help
valeria2712
Posts: 17
Joined: Tue Mar 08, 2011 11:34 am

Re: problems to view plugin permission

Post by valeria2712 »

should I try using patches instead?
maybe url path is incorrect?
any ideas please!!

thanks a lot
valeria2712
Posts: 17
Joined: Tue Mar 08, 2011 11:34 am

Re: problems to view plugin permission

Post by valeria2712 »

could it be a problem about installation path?

i have both cacti in usr/share/cacti and in var/www/cacti ?
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: problems to view plugin permission

Post by noname »

1) In Realm Permissions, can you see 'Plugin Management' checkbox?

2) Check your Apache's configuration ("httpd.conf" or else). Please show results of command the below:

% grep -i documentroot httpd.conf
% grep -i alias httpd.conf | grep -i cacti
valeria2712
Posts: 17
Joined: Tue Mar 08, 2011 11:34 am

Re: problems to view plugin permission

Post by valeria2712 »

thank you for your reply.

I can't see plugin managament in realm permissions.

i have two files for httpd:
/usr/share/cacti/site/etc/apache2/httpd.conf
/etc/apache2/httpd.conf
but both of them are empty!

don't have any results from these commands you write..

Any ideas? perhaps installation site as I said in my previous post?
i also thought it was an issue from pa.sql installation, i couldnt import it to my cacti database
i tried mysql -u root -p cacti < pa.sql
and found the following mistake:

ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Ctrl-C' at line 1

any ideas? please!!
thank you very much
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: problems to view plugin permission

Post by noname »

valeria2712 wrote:i have two files for httpd:
/usr/share/cacti/site/etc/apache2/httpd.conf
/etc/apache2/httpd.conf
but both of them are empty!
???

...

... Well, anyway, if assume your Cacti is working actually at '/var/www/cacti/cacti',
try this:

$url_path = "/cacti/cacti/";


BTW, I'll ask you to make sure,
in your config.php,
valeria2712 wrote:2. I've reconfigured config.php like this:
$database_ type= "mysql";
$database_ default= "cacti";
$database_ hostname= "localhost";
$database_ username= "root";
$database_ port="3306";

+/* load up old style plugins here */
$plugins = array();
+//$plugins[] = 'thold';
+
$plugins[] = 'realtime';
+/*
+ Edit this to point to the default URL of your Cacti install
+ ex: if your cacti install as at http://serverip/cacti/ this
+ would be set to /cacti/
+*/
"+" characters are your typo when you post them, aren't that?
valeria2712
Posts: 17
Joined: Tue Mar 08, 2011 11:34 am

Re: problems to view plugin permission

Post by valeria2712 »

Hello ,

I found these differente

I tried writing this:
$url_path = "/cacti/cacti/";
but it didn't work either...no option under realm permission..

the path where i have my files-0.87g pre-patched is:
/usr/share/cacti/site/include#

I tried in this path as I am running cacti on ubuntu and read this was usually where it must be installed plugin architecture...

Yes, these characters are my typo when I post them...
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: problems to view plugin permission

Post by noname »

I'm totally confused...

1) Where did you install Cacti?
2) Where is document root for Apache? (defined in httpd.conf or else)
3) Do you have Alias directory for Cacti? (defined in httpd.conf or else)

I have the above question because I guess your problem is concerned with path settings.
valeria2712
Posts: 17
Joined: Tue Mar 08, 2011 11:34 am

Re: problems to view plugin permission

Post by valeria2712 »

cacti is installed in /usr/share/cacti

Apache is installed in usr/share/cacti/apache2/apache2.conf

Alias for cacti?¿?

I tried again installing cacti in Ubuntu, with no luck for my plugin architecture (can't see realm permission for plugins under settings)

I think I've done it well with typical mistakes as:

import pa.sql
I don't know how to check it but when I try to import it again I find a message as:
Error 1050 (42S01) at line 5: Table 'plugin_config' already exists

What should I check else??

Please, Help!!! I am quite desperate with this for a long time...
valeria2712
Posts: 17
Joined: Tue Mar 08, 2011 11:34 am

Re: problems to view plugin permission

Post by valeria2712 »

By the way when I write :
localhost/cacti/plugins.php in my web browser I find this:

The requested URL /cacti/plugins.php was not found on this server.

And I have imported in my installation folder: prepatched files (/usr/share/cacti)
$database_type = "mysql";
$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "cacti";
require('/etc/cacti/debian.php');

/* Default session name - Session name must contain alpha characters */
#$cacti_session_name = "Cacti";
$plugins = array();
$plugins[] = 'realtime';
?>


Any ideas? It would be great if someone has any idea that could help me a little...
Many thanks indeed!
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: problems to view plugin permission

Post by noname »

noname wrote:2) Where is document root for Apache? (defined in httpd.conf or else)
3) Do you have Alias directory for Cacti? (defined in httpd.conf or else)
For 2), search the line contains 'DocumentRoot' in your httpd.conf
For 3), search lines like as:

Code: Select all

Alias /cacti/ "/xxxx/xxxx/cacti/"

<Directory "/xxxx/xxxx/cacti">
...
</Directory>
Though I'm not familiar with Ubuntu at all, I think this documentation may be useful...
- Install and configure Cacti v0.8.7g on Ubuntu v10.04.1 step by step
valeria2712
Posts: 17
Joined: Tue Mar 08, 2011 11:34 am

Re: problems to view plugin permission

Post by valeria2712 »

I have my cacti directory in /usr/share/ and copied in /var/www
I have apache2 installed in /etc/apache2/apache2.conf

Thanks for the guide...try to adapt it to my virtual machine, but not result :-(
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests