Problem while adding pluggin architecture

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
mryogi
Posts: 7
Joined: Sun Sep 04, 2011 1:39 am

Problem while adding pluggin architecture

Post by mryogi »

I am new to Ubuntu and cacti. Trying to install cacti on Ubuntu desktop 10.04 lucid

I used apt-get install method. Everything works fine except plugin arch.

I have taken backup of folder/usr/share/cacti/


after copying files in files-0.8.7g from plugin arch folder, to /usr/share/cacti/site/ folder, tried to change settings in global.php file as per the link,


http://www.askaboutphp.com/42/cacti-ubu ... -path.html

after that I am getting the cacti webpage but I am unable to login to Cacti webpage.

Already imported pq.sql file.
can anybody suggest me where I might be going wrong?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Problem while adding pluggin architecture

Post by gandalf »

Unfortunately, the Ubuntu packages are modified. So it may happen, that the plugin file-set does not match the Ubuntu package, thus breaking the installation. See e.g. cacti.log or httpd's error_log
R.
mryogi
Posts: 7
Joined: Sun Sep 04, 2011 1:39 am

Re: Problem while adding pluggin architecture

Post by mryogi »

Thanks for your response.

I revisited all the procedure and seems that somewhere I had done mistake. But it required lot of patience.

With same method used earlier, I was able to login and proceed for plugiin architecture. So my earlier problem is resolved now.

I have new querry: After selection of plugin tab installed, the view of the website gets damaged and further selection shows "webpage could not be found" as error message for eg. "http://172.16.2.92/cacti/plugins/monito ... onitor.php"

The same problem occur when I need to see other tabs like going from monitor tab to clog tab
eg. http://172.16.2.92/cacti/plugins/clog/p ... g/clog.php

The whole display gets damaged (snapshot attached) and I only need to scroll back to my last screen to get default cacti website image.

I tried this with IE & firefox web browser but showing same problem.

Can anybody suggest where could be the issue? :)
Attachments
This view (display_view.jpg) I get after selecting any plugin tab. Need help
This view (display_view.jpg) I get after selecting any plugin tab. Need help
display view.JPG (94.49 KiB) Viewed 2251 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Problem while adding pluggin architecture

Post by gandalf »

Your screenshot reminds me of an entry in include/config.php for url_path. Make sure, you've set that accordingly
R.
mryogi
Posts: 7
Joined: Sun Sep 04, 2011 1:39 am

Re: Problem while adding pluggin architecture

Post by mryogi »

I replicated the scenario, today on virtual box 4.012-ubuntu 10.04 (ubuntu-10.04.2-desktop-i386) but facing same problem
Request somebody to guide me to troubleshoot this issue. :)
=================================================================================================

This virtual machine is running with 30 GB hdd and 512 MB ram

After clicking on any plugin tab the display is damaged and I need to go backword [Go back one page <= ]to see default web page.
This does not happen if we click on Console & Graphs tab. Also I have not yet added any host to monitor on this server. The graphs shows the localhost features very well.

I have also checked CactiEZ server ISO on another virtual machine (CactiEZ-v0.6) but there I didn't face such issue. Here mac-track plugin giving problem so I choose to go with cacti 0.8.7g

Below is the config.php file in "include" folder under
/usr/share/cacti/site

path.

====================================================================================
<?php
/*
+-------------------------------------------------------------------------+
| Copyright (C) 2004-2009 The Cacti Group |
| |
| This program is free software; you can redistribute it and/or |
| modify it under the terms of the GNU General Public License |
| as published by the Free Software Foundation; either version 2 |
| of the License, or (at your option) any later version. |
| |
| This program is distributed in the hope that it will be useful, |
| but WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| GNU General Public License for more details. |
+-------------------------------------------------------------------------+
| Cacti: The Complete RRDTool-based Graphing Solution |
+-------------------------------------------------------------------------+
| This code is designed, written, and maintained by the Cacti Group. See |
| about.php and/or the AUTHORS file for specific developer information. |
+-------------------------------------------------------------------------+
| http://www.cacti.net/ |
+-------------------------------------------------------------------------+
*/

/* make sure these values refect your actual database/host/user/password */
$database_type = "mysql";
require('/etc/cacti/debian.php');

/* Default session name - Session name must contain alpha characters */
#$cacti_session_name = "Cacti";
/* load up old style plugins here */
$plugins = array();
//$plugins[] = 'thold';

/*
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/";


?>
=================================================================================================
Some of below is the information taken from system utilities> Technical Support tab.

General Information
Date Sun, 25 Sep 2011 17:54:50 +0530
Cacti Version 0.8.7g
Cacti OS unix
SNMP Version NET-SNMP version: 5.4.2.1
RRDTool Version RRDTool 1.3.x
Hosts 1
Graphs 4
Data Sources Script/Command: 5
Total: 5
Poller Information
Interval 300
Type spine
Items Action[1]: 5
Total: 5
Concurrent Processes 1
Max Threads 1
PHP Servers 1
Script Timeout 25
Max OID 10
Last Run Statistics Time:1.6127 Method:spine Processes:1 Threads:1 Hosts:2 HostsPerProcess:2 DataSources:5 RRDsProcessed:5
PHP Information
PHP Version 5.3.2-1ubuntu4.9
PHP OS Linux
PHP uname Linux u1 2.6.32-33-generic #72-Ubuntu SMP Fri Jul 29 21:08:37 UTC 2011 i686
PHP SNMP Installed
max_execution_time 30
memory_limit 128M
bde
Posts: 2
Joined: Tue Nov 08, 2011 7:37 am

Re: Problem while adding pluggin architecture

Post by bde »

Hello,

I have the same problem, my url path is like this: http://ipserver/ so in config.php i have url path set to "/" but all link in plugins pages are wrong.
Please help us!

Thanks
bde
Posts: 2
Joined: Tue Nov 08, 2011 7:37 am

Re: Problem while adding pluggin architecture

Post by bde »

I have found another url_path section in global.php , I have set the good setting, it resolve my tabs problem, now all tabs are well displayed even on plugin page but on my weathermap , all links on switch towards the graphs are wrong :-(
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Problem while adding pluggin architecture

Post by TheWitness »

The $url_path need only be set in the config.php and nowhere else. If you do, you are on your own for support. You must take care when making changes to the global.php to support Debian. Give it some thought. It'll work fine once you understand how it works.

On a separate note, I should send Sean an email and see if he can change the package to include PIA.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
dibyapadhi
Posts: 4
Joined: Thu Jun 14, 2012 4:32 am

Re: Problem while adding pluggin architecture

Post by dibyapadhi »

Hi ,

I am not able to access cacti in web browser as it says "You don't have permission to access /cacti/ on this server." Can anyone suggest me what wrong I have done ?
Cacti -0.8.8
cacti-plugin-arch
OS:Redhat

Thanks:
Dibya
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest