0.97a Install problem with Cacti 0.8.7e and CentOS 5

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

mpeoples
Posts: 17
Joined: Mon Aug 03, 2009 5:41 pm
Contact:

0.97a Install problem with Cacti 0.8.7e and CentOS 5

Post by mpeoples »

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.
DLNoah
Cacti User
Posts: 119
Joined: Wed Jun 20, 2007 11:27 pm

Re: 0.97a Install problem with Cacti 0.8.7e and CentOS 5

Post by DLNoah »

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.
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.

If you have the plugin running correctly, it will show Old Plugin Architecture - Running on the Plugin Management page.
mpeoples
Posts: 17
Joined: Mon Aug 03, 2009 5:41 pm
Contact:

Installation problem

Post by mpeoples »

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.
DLNoah
Cacti User
Posts: 119
Joined: Wed Jun 20, 2007 11:27 pm

Post by DLNoah »

Hm. I installed it on my server 0.8.7e + CentOS 5 (upgrade from 0.97) without trouble. From what I've seen, plugin management isn't showing the plugins if I intentionally misspell the directory, so I'm out of ideas.
mpeoples
Posts: 17
Joined: Mon Aug 03, 2009 5:41 pm
Contact:

Another piece of information - may or may not be relevant

Post by mpeoples »

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.
DLNoah
Cacti User
Posts: 119
Joined: Wed Jun 20, 2007 11:27 pm

Post by DLNoah »

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.
Attachments
userperms.jpg
userperms.jpg (51.62 KiB) Viewed 6345 times
mpeoples
Posts: 17
Joined: Mon Aug 03, 2009 5:41 pm
Contact:

Weather Map Install Problem - Realm Permissions

Post by mpeoples »

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.
DLNoah
Cacti User
Posts: 119
Joined: Wed Jun 20, 2007 11:27 pm

Post by DLNoah »

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...
mpeoples
Posts: 17
Joined: Mon Aug 03, 2009 5:41 pm
Contact:

Problem (I think) Solved!!!

Post by mpeoples »

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!
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

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 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!)
mpeoples
Posts: 17
Joined: Mon Aug 03, 2009 5:41 pm
Contact:

Thanks, Howie!

Post by mpeoples »

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
jadx
Posts: 1
Joined: Fri Mar 12, 2010 3:57 pm

Post by jadx »

You ca try

Code: Select all

http://centossrv.com/rrdtool-cacti.shtml
..is a good start.
:wink:
tom696
Posts: 19
Joined: Sun Aug 15, 2010 8:47 pm

Post by tom696 »

i success install cacti on centos 5.4
but now i have a problem to install weathermap in cacti because i don't know how to install weathermap on centos 5.4..
anyone please help me...
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

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!)
tom696
Posts: 19
Joined: Sun Aug 15, 2010 8:47 pm

Post by tom696 »

do u have any tutorial to install weathermap in cacti???
i just want step by step to install that thing..
please help me.. :cry:
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests