Cacti Modules
Moderators: Developers, Moderators
-
- Posts: 19
- Joined: Fri Oct 26, 2012 2:30 pm
Cacti Modules
I am running cacti version 0.8.7i on ubuntu 12.04. My issue is that any module that is install,the pages look like they are not designed into the normal cacti's web template.
I have attached two screenshots to show the difference. Cacti1.jpg is the normal web template and Cacti2.jpg is the layout of any module that I have installed. These modules are Reportit, MacTrack, and Discovery. All three have the same look. However the PIA management looks just fine. Is this how they should look or does something else need configured?
I have extracted the files and dropped them into the plugin folder. That is all I have done to install them, minus the PIA process of installing, enabling and checking the views in user management.
Thanks.
I have attached two screenshots to show the difference. Cacti1.jpg is the normal web template and Cacti2.jpg is the layout of any module that I have installed. These modules are Reportit, MacTrack, and Discovery. All three have the same look. However the PIA management looks just fine. Is this how they should look or does something else need configured?
I have extracted the files and dropped them into the plugin folder. That is all I have done to install them, minus the PIA process of installing, enabling and checking the views in user management.
Thanks.
- Attachments
-
- Incorrect View
- cacti2.jpg (71.15 KiB) Viewed 3113 times
-
- Correct view
- cacti1.jpg (45.23 KiB) Viewed 3113 times
Re: Cacti Modules
You didn't configure your config.php right. Look for $config['url_path']
-
- Posts: 19
- Joined: Fri Oct 26, 2012 2:30 pm
Re: Cacti Modules
I found this set of code in my /usr/share/cacti/site/include/global.php file:
In the config.php file there was no line of code anywhere that had the url path. However in /etc/cacti/debian.php there is this line:
Not sure which one to change, and if so would I just use /cacti/ or serverIP/cacti/ ?
Code: Select all
/* set URL path */
if (! isset($url_path)) {
$url_path = "";
}
$config['url_path'] = $url_path;
define('URL_PATH', $url_path);
Code: Select all
$url_path = "/cacti/";
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
Re: Cacti Modules
Put that line within the config.php file and it should work.
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
-
- Posts: 19
- Joined: Fri Oct 26, 2012 2:30 pm
Re: Cacti Modules
I inserted the line in my config.php file and nothing changed.
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
Re: Cacti Modules
Just for reference, what do the "include" statements at the top of the global.php file point to ?
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
-
- Posts: 19
- Joined: Fri Oct 26, 2012 2:30 pm
Re: Cacti Modules
For the include configuration i only have one line of code:
Code: Select all
include(dirname(__FILE__) . "/config.php");
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
Re: Cacti Modules
There should be a config file then in:
/usr/share/cacti/site/include/
?
/usr/share/cacti/site/include/
?
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
-
- Posts: 19
- Joined: Fri Oct 26, 2012 2:30 pm
Re: Cacti Modules
That is where my config.php file is. Should that line be change to the exact location?
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
Re: Cacti Modules
No, the __FILE__ string points to the directory where the global.php file is located at.
If your cacti URL is http://server/cacti/ then your config.php should contain:
$url_path = "/cacti/";
if it is http://server/ it should be
$url_path = "/";
If your cacti URL is http://server/cacti/ then your config.php should contain:
$url_path = "/cacti/";
if it is http://server/ it should be
$url_path = "/";
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
-
- Posts: 19
- Joined: Fri Oct 26, 2012 2:30 pm
Re: Cacti Modules
Ok, I put the url_path line into the config.php file. However, nothing has changed still...
-
- Posts: 19
- Joined: Fri Oct 26, 2012 2:30 pm
Re: Cacti Modules
Since last week the pc running cacti has crashed and I have reinstalled cacti (version 0.8.7i) and added the plugins back. It is still on ubuntu 12.04.1 as well.
The plugins that have their own "page" still looks like the screenshot i posted at the beginning with the "website template" not being applied. Another thing I noticed is that the one plugin should have created a tab at the top which is not there. I just have the two normal tabs for Console and Graphs.
During the reinstall, I did notice a message that appeared in the terminal during the cacti install saying:
Include path of php has changed
libphp-adodb is no longer in /usr/share/adodb
new location is /usr/share/php/adodb
update php.ini
I did not know if this has anything to do with it or not. If so, I have not messed with the php.ini file at all.
The plugins that have their own "page" still looks like the screenshot i posted at the beginning with the "website template" not being applied. Another thing I noticed is that the one plugin should have created a tab at the top which is not there. I just have the two normal tabs for Console and Graphs.
During the reinstall, I did notice a message that appeared in the terminal during the cacti install saying:
Include path of php has changed
libphp-adodb is no longer in /usr/share/adodb
new location is /usr/share/php/adodb
update php.ini
I did not know if this has anything to do with it or not. If so, I have not messed with the php.ini file at all.
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
Re: Cacti Modules
Did you also re-install the Plugin Architecture (PIA) for 0.8.7i ?
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
-
- Posts: 19
- Joined: Fri Oct 26, 2012 2:30 pm
Re: Cacti Modules
Yeah i reinstalled the plugin manager as well. My issue is that when a plugin adds a link to the left of the console, those links work, however the layout looks like the incorrect view I have posted when I opened this topic. Also those plugins that should add a tab at the top, the tab is not there. The only link that works properly that has been added is the Plugin Management link. All my plugins are installed and enable. Even in the User Management, my user account is enabled with the Realm Permissions.
I feel that this is probably related to some kind of php code error/configuration.
I will provide all that I can think of that might help narrow down the issue.
1. The Cacti PIA Manager is installed properly
2. User Management Realm Permissions are enabled for my user account
3. All plugins have been dropped into the /usr/share/cacti/site/plugins folder
4. All plugins appear in the Plugin Management link and have been install and enabled
5. The /usr/share/cacti/include/config.php file contains:
I feel that this is probably related to some kind of php code error/configuration.
I will provide all that I can think of that might help narrow down the issue.
1. The Cacti PIA Manager is installed properly
2. User Management Realm Permissions are enabled for my user account
3. All plugins have been dropped into the /usr/share/cacti/site/plugins folder
4. All plugins appear in the Plugin Management link and have been install and enabled
5. The /usr/share/cacti/include/config.php file contains:
Code: Select all
$url_path = "/cacti/"
-
- Posts: 19
- Joined: Fri Oct 26, 2012 2:30 pm
Re: Cacti Modules
For some odd reason I was able to view the tabs that should have been created, but only when I ran a report from a new plugin, Reportit. My work around that I have developed was to simply create a link to one of the tabs for the modules and they all work. The situation is, however, when I click on either of the original tabs (Console or Graphs) all the module tabs disappear. I can make due with this fix but I feel this still is not working 100% properly. Still to add, i have multiple links and two modules that are out of format.
I don't know much about php but have a small bit of background will programming and web development. I have tried looking at different source codes trying to figure out the issue. Btw if this helps here is the code to my config.php file in /usr/share/cacti/site/include:
Note* I tried looking for the database/host/user/password and was not sure where that would be to check and see if all these values are valid. If need be I call provide the /etc/cacti/debian.php code as well.
I don't know much about php but have a small bit of background will programming and web development. I have tried looking at different source codes trying to figure out the issue. Btw if this helps here is the code to my config.php file in /usr/share/cacti/site/include:
Code: Select all
/* make sure these values refect your actual database/host/user/password */
$database_type = "mysql";
$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "cactiuser";
$database_password = "cactiuser";
$database_port = "3306";
$database_ssl = false;
/* load up old style plugins here */
$plugins = array();
$plugins[] = 'notices';
$plugins[] = 'weathermap';
//$plugins[] = 'thold';
/*
Edit this to point to the default URL of your Cacti install
ex: if your Cacti install is at http://serverip/cacti/ this
would be set to /cacti/
*/
$url_path = "/cacti/";
/* Default session name - Session name must contain alpha characters */
#$cacti_session_name = "Cacti";
?>
Who is online
Users browsing this forum: No registered users and 0 guests