Cactiusers.org


It is currently Wed Feb 08, 2012 5:17 am




Post new topic Reply to topic  [ 8 posts ] 
 how access to plugin? 
Author Message
New User

Joined: Fri Sep 11, 2009 3:48 pm
Posts: 5
Post how access to plugin?
Hello,
i have debian 64bit + aptitude install cacti {0.8.7b}. Im trying add plugin: NTop - v0.1

on manual write:
Quote:
Inside this configuration file, as you proceed down a few lines, you will find a line that looks like this
$plugins = array();

i dont find this in /usr/share/cacti/site/included/global.php....

im trying add manualy:

Quote:
$plugins = array();
$plugins[] = 'ntop';

But what now? Where can i find this plugin?

im trying http://my.ip/cacti/plugins/ntop/setup.php but browser show me blank page, im trying http://my.ip/cacti/plugins/ntop/ntop.php but browser show me
Quote:
Access Denied
You are not permitted to access this section of Cacti. If you feel that you need access to this particular section, please contact the Cacti administrator.
( Return | Login )


im trying http://my.ip/cacti/plugins/ntop/index.php but browser CHANGE to http://my.ip/cacti/plugins/index.php and tell me:
Quote:
The requested URL /cacti/plugins/index.php was not found on this server.


Whats wrong?

Thx


Fri Sep 11, 2009 4:02 pm
New User

Joined: Fri Sep 11, 2009 3:48 pm
Posts: 5
Post Re: how access to plugin?
ok, i see on manual and see:

Quote:
Before you can begin to install a plugin, you will need to install the Cacti Plugin Architecture. But once that is done, its all fairly simple.


so, i purge all cacti and fresh install, i add new password to administration and i copy all new files to my cacti (/usr/share/cacti/site = http://my.ip/cacti/).

After i change global.php on: $config['url_path'] = "/"; i change to: $config['url_path'] = "/usr/share/cacti/site/";

but webrowser show me on http://my.ip/cacti:


Quote:
Warning: include(/usr/share/cacti/site/lib/adodb/adodb.inc.php) [function.include]: failed to open stream: No such file or directory in /usr/share/cacti/site/include/global.php on line 202

Warning: include() [function.include]: Failed opening '/usr/share/cacti/site/lib/adodb/adodb.inc.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /usr/share/cacti/site/include/global.php on line 202

Fatal error: Call to undefined function NewADOConnection() in /usr/share/cacti/site/lib/database.php on line 38

in first wrong i find adodb.inc.php on /usr/share/share/php/adodb.inc.php

i copy adodb folder to ....../cacti/site/lib

After i go to http://my.ip/cati and all was ok - i click on UPGRADGE and after show me all ok, and after i see LOGIN, but write me: Fatal error: Call to undefined function clean_html_output() in /usr/share/cacti/site/auth_login.php on line 307

I add screenshot - pls help :-)


Attachments:
cactilogin.jpg
cactilogin.jpg [ 40.49 KiB | Viewed 2854 times ]
Sat Sep 12, 2009 1:21 am
Site Admin

Joined: Thu Nov 11, 2004 11:12 am
Posts: 2007
Post Re: how access to plugin?
URL_PATH is not the same as base path.

Try
$config['url_path'] = "/cacti/"


Sun Sep 13, 2009 9:56 pm
New User

Joined: Fri Sep 11, 2009 3:48 pm
Posts: 5
Post Re: how access to plugin?
im trying too, but some problem :-(

Fatal error: Call to undefined function clean_html_output() in /usr/share/cacti/site/auth_login.php on line 307


Mon Sep 14, 2009 10:32 am
Site Admin

Joined: Thu Nov 11, 2004 11:12 am
Posts: 2007
Post Re: how access to plugin?
Um. You say you are using 0.8.7b? Where exactly did you download the Plugin Architecture for that version? I want to make sure you are not using the PA designed for the newer version (the only version I put up for download without find some obscure link) since you are using a version of cacti released almost 2 years ago.


Mon Sep 14, 2009 7:07 pm
New User

Joined: Fri Sep 11, 2009 3:48 pm
Posts: 5
Post Re: how access to plugin?
Yes, i have 0.8.7b (from debian repositary)

I download plugin Arch. from here - cacti-plugin-0.8.7e-PA-v2.5.zip

Im trying now install cacti latest version from svn repositary - 0.8.7e - now i can login, i add new folder to ...cacto/plugins/ntop/ and to global.php i activate this plugin.

But what now? Where can i see ntop plugin? I cannoct find :-(


Last edited by Roman777 on Tue Sep 15, 2009 1:54 am, edited 1 time in total.



Tue Sep 15, 2009 1:34 am
Site Admin

Joined: Thu Nov 11, 2004 11:12 am
Posts: 2007
Post Re: how access to plugin?
Ya, you downloaded a Plugin Architecture that doesnt work with your current version of Cacti (the 0.8.7e in the name is the hint).


Tue Sep 15, 2009 1:53 am
New User

Joined: Fri Sep 11, 2009 3:48 pm
Posts: 5
Post Re: how access to plugin?
thanks, all works fine (i see now plugin, but i have different problem - i write to new topic)
its good write to manual:

Quote:
Make sure administrator user has the "Plugin Managment" option enabled under Realm. For this go to User Management and click the admin user. Then you should see all options. Make sure it is setup right


Tue Sep 15, 2009 2:11 am
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 


Who is online

Users browsing this forum: No registered users and 1 guest


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: