0.97a Install problem with Cacti 0.8.7e and CentOS 5
Moderators: Developers, Moderators
0.97a Install problem with Cacti 0.8.7e and CentOS 5
I am trying to install Network Weather Map as a plugin on a CentOS 5 box running Cacti 0.8.7e.
I am using Plugin Architecture version 2.5
I have followed the instruction on the Weathermap site.
- I unzipped the package in <cacti dir>/plugins/weathermap
- The PHP checker found no errors.
- I inserted the line, "$plugins[] = 'weatermap';" into the include/global.php file
- I then restarted apache, just in case.
The Plugin Management page shows a box for "weathermap", and indicates that its status is "Old Plugin Architecture"
The user management page shows no entries for Weathermap.
There is no way to proceed at this point.
Any help would be appreciated.
I am using Plugin Architecture version 2.5
I have followed the instruction on the Weathermap site.
- I unzipped the package in <cacti dir>/plugins/weathermap
- The PHP checker found no errors.
- I inserted the line, "$plugins[] = 'weatermap';" into the include/global.php file
- I then restarted apache, just in case.
The Plugin Management page shows a box for "weathermap", and indicates that its status is "Old Plugin Architecture"
The user management page shows no entries for Weathermap.
There is no way to proceed at this point.
Any help would be appreciated.
Re: 0.97a Install problem with Cacti 0.8.7e and CentOS 5
Well, I see that there's a typo in your quote - you said you extracted into <path_cacti>/plugins/weathermap but that you added $plugins[] = 'weatermap' in the global.php file. Check to make sure there's not actually a misspelling like that on your Cacti server. Also, make sure you have $plugins = array(); before you try to add weathermap to the array.mpeoples wrote: - I unzipped the package in <cacti dir>/plugins/weathermap
- I inserted the line, "$plugins[] = 'weatermap';" into the include/global.php file
- I then restarted apache, just in case.
The Plugin Management page shows a box for "weathermap", and indicates that its status is "Old Plugin Architecture"
The user management page shows no entries for Weathermap.
There is no way to proceed at this point.
Any help would be appreciated.
If you have the plugin running correctly, it will show Old Plugin Architecture - Running on the Plugin Management page.
Installation problem
Thanks for the reply. It wouldn't be the first time I fat fingered something.
Nonetheless, the entry is correct. I am providing that section of the global.php below:
$plugins = array();
//$plugins[] = 'thold';
$plugins[] = 'thold';
$plugins[] = 'clog';
$plugins[] = 'docs';
$plugins[] = 'hostinfo';
$plugins[] = 'realtime';
$plugins[] = 'settings';
$plugins[] = 'tools';
$plugins[] = 'update';
$plugins[] = 'weathermap';
The fact that the Plugin Management tool lists "Weathermap" should, I believe, indicate that it located in the correct directory structure. The problem is, nothing else can see it.
Nonetheless, the entry is correct. I am providing that section of the global.php below:
$plugins = array();
//$plugins[] = 'thold';
$plugins[] = 'thold';
$plugins[] = 'clog';
$plugins[] = 'docs';
$plugins[] = 'hostinfo';
$plugins[] = 'realtime';
$plugins[] = 'settings';
$plugins[] = 'tools';
$plugins[] = 'update';
$plugins[] = 'weathermap';
The fact that the Plugin Management tool lists "Weathermap" should, I believe, indicate that it located in the correct directory structure. The problem is, nothing else can see it.
Another piece of information - may or may not be relevant
One more thing that might have some bearing, but I can't say if it does or not.
I installed the graph aggregation plugin (aggregate 0.71 by Reinhard Scheck. It doesn't really seem to work either, even though it is taking advantage of the "new" plugin architecture.
Docs indicate that user management screen should have some additional boxes, but they don't.
Maybe it's permissions? root:root owns pretty much everything except the logs and rra directories.
One other weird thing, now that I'm thinking about it. The ownership of the files seems to "arbitrarily" change from root:root to something like 1000:users from time to time. I'm not sure if it's happening after reboot, or what, and it's not consistent across all Cacti directories. It might not even be related (or I'm delusional). Anyway, just throwing it out there.
I installed the graph aggregation plugin (aggregate 0.71 by Reinhard Scheck. It doesn't really seem to work either, even though it is taking advantage of the "new" plugin architecture.
Docs indicate that user management screen should have some additional boxes, but they don't.
Maybe it's permissions? root:root owns pretty much everything except the logs and rra directories.
One other weird thing, now that I'm thinking about it. The ownership of the files seems to "arbitrarily" change from root:root to something like 1000:users from time to time. I'm not sure if it's happening after reboot, or what, and it's not consistent across all Cacti directories. It might not even be related (or I'm delusional). Anyway, just throwing it out there.
Hm, well, I see some 1000:users files on stuff unzipped from a tarball-- I assumed it was due to permissions on the "compiling person's" box being associated with a user account that doesn't exist on mine.
What does the bottom of your User Management page look like? Mine is like the attached pic.
What does the bottom of your User Management page look like? Mine is like the attached pic.
- Attachments
-
- userperms.jpg (51.62 KiB) Viewed 6337 times
Weather Map Install Problem - Realm Permissions
I don't have all of the entries that you have, and vice versa.
In the plugin directory, I also have the "update" plugin, which you have installed, properly it appears. Like "aggregate" and "weathermap", it appears in the Plugin Management pane, but not in the Realm Permissions pane.
If you don't mind my asking, what ownership values do you use for the plugin directory and files below it?
I'm starting to get the feeling this might well be related to ownership/permissions.
One other thought...isn't the "default" Cacti user, "cactiuser"? I've used "cacti", however. That said, most things are still owned by root. Apache is being run under the "apache" user.
Who knows, maybe I messed up the install or something. The application itself, aside from the plugin issues, works perfectly.
In the plugin directory, I also have the "update" plugin, which you have installed, properly it appears. Like "aggregate" and "weathermap", it appears in the Plugin Management pane, but not in the Realm Permissions pane.
If you don't mind my asking, what ownership values do you use for the plugin directory and files below it?
I'm starting to get the feeling this might well be related to ownership/permissions.
One other thought...isn't the "default" Cacti user, "cactiuser"? I've used "cacti", however. That said, most things are still owned by root. Apache is being run under the "apache" user.
Who knows, maybe I messed up the install or something. The application itself, aside from the plugin issues, works perfectly.
The default "cactiuser" from a linux perspective is whatever user is running the poller.php cron job.
The plugins folder and all folders inside it are owned by root on my box. The folders themselves are all 755 permissions, the files inside the folders are whatever permissions were set in the original tarball (I haven't modified them). In weathermaps's case: the editor.* files are all 755 and the weathermap file (no extension) is 755, the others are 644.
When you installed the PIA, did you import the .sql file into your cacti database? I'd assume that other plugins would be tres melty if you didn't, but...
The plugins folder and all folders inside it are owned by root on my box. The folders themselves are all 755 permissions, the files inside the folders are whatever permissions were set in the original tarball (I haven't modified them). In weathermaps's case: the editor.* files are all 755 and the weathermap file (no extension) is 755, the others are 644.
When you installed the PIA, did you import the .sql file into your cacti database? I'd assume that other plugins would be tres melty if you didn't, but...
Problem (I think) Solved!!!
While I actually haven't started using Weathermap, it now appears in my Realm Permissions, which once set, creates the "weathermap" tab at the top of the Cacti main page.
I found the answer at the Cacti Users site (cactiusers.org). The problem was in my global.php. Apparently, while I thought I had correctly installed the plugin architecture, I had not. Or, during other configuration tasks, I introduced the error.
The problem, succinctly, is that I had multiple instances of:
$plugins = array();
in the file, as well as, the following:
$config = array();
I commented out (using "//") superfluous "$plugins = array();" and the "$config = array();" lines. I then restarted Apache (which I assume you need to do, but maybe someone can tell me otherwise), logged back into Cacti, and the Weathermap, as well as other, entries were in the Realm Permissions pane.
Thanks to all who responded!
I found the answer at the Cacti Users site (cactiusers.org). The problem was in my global.php. Apparently, while I thought I had correctly installed the plugin architecture, I had not. Or, during other configuration tasks, I introduced the error.
The problem, succinctly, is that I had multiple instances of:
$plugins = array();
in the file, as well as, the following:
$config = array();
I commented out (using "//") superfluous "$plugins = array();" and the "$config = array();" lines. I then restarted Apache (which I assume you need to do, but maybe someone can tell me otherwise), logged back into Cacti, and the Weathermap, as well as other, entries were in the Realm Permissions pane.
Thanks to all who responded!
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
To use Weathermap there are a couple of other permissions changes:
weathermap/output should be writable by the cacti poller, otherwise it can't create output files (the maps).
weathermap/config should be writable by apache, otherwise the editor can't edit files.
weathermap/output should be writable by the cacti poller, otherwise it can't create output files (the maps).
weathermap/config should be writable by apache, otherwise the editor can't edit files.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Thanks, Howie!
Howie,
Thank you for taking a moment to post those notes. I have never used Weathermap, but I'm excited to try it out.
I'll check the permissions as you suggested.
Again, thanks for all the effort you put into the tool and supporting it. You are an Open Source hero!
Michael
Thank you for taking a moment to post those notes. I have never used Weathermap, but I'm excited to try it out.
I'll check the permissions as you suggested.
Again, thanks for all the effort you put into the tool and supporting it. You are an Open Source hero!
Michael
You ca try
..is a good start.
Code: Select all
http://centossrv.com/rrdtool-cacti.shtml
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Please let me know which part of the install guide that comes with Weathermap is incorrect, so I can improve it.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Who is online
Users browsing this forum: No registered users and 0 guests