PHP Network Weathermap 0.8 (now 0.9)

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

knobdy wrote:Having a problem with the OVERLIBGRAPH for nodes...the two examples are:

OVERLIBGRAPH http://cacti/graph_image.php?local_grap ... 1149874669

OVERLIBGRAPH http://cacti/graph_image.php?local_grap ... 7&rra_id=1

They both work on SOME of the nodes, but not all of them...until the "picker" is fully implemented, whats the best source for these?
Find the graph you want in Cacti, right-click on it and Copy Image Location. That works for me, although anything with things like

Code: Select all

graph_start=1149788269&graph_end=1149874669 
will likely go bad over time, since those are specific time constraints. I'm pretty sure if you chop them off, you get whatever your default timespan is.
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!)
knobdy
Cacti User
Posts: 495
Joined: Wed Sep 28, 2005 1:39 pm

Post by knobdy »

Howie wrote:Find the graph you want in Cacti, right-click on it and Copy Image Location.
Using firefox I've had mixed results with copying the location, and have been right-clicking, selecting properties and then copy/pasting location from there.
Howie wrote: That works for me, although anything with things like

Code: Select all

graph_start=1149788269&graph_end=1149874669 
will likely go bad over time, since those are specific time constraints. I'm pretty sure if you chop them off, you get whatever your default timespan is.
That's what I figured as well - and dumping everything after & and before the start statement appears to work well. Thanks for the help.
mat
Posts: 3
Joined: Tue Apr 04, 2006 10:26 am
Location: Bayonne, France

Post by mat »

...or try weathermanage ;)
User avatar
adrianmarsh
Cacti User
Posts: 437
Joined: Wed Aug 17, 2005 8:51 am
Location: UK

Post by adrianmarsh »

Hmmm. Just installed 0.82. When I try to add the simple.conf map to test, I get an error under "Accessible by":

Notice: Undefined index: 1 in C:\inetpub\wwwroot\cactitest\plugins\weathermap\weathermap-cacti-plugin-mgmt.php on line 218
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

adrianmarsh wrote:Hmmm. Just installed 0.82. When I try to add the simple.conf map to test, I get an error under "Accessible by":

Notice: Undefined index: 1 in C:\inetpub\wwwroot\cactitest\plugins\weathermap\weathermap-cacti-plugin-mgmt.php on line 218
That's odd. User id 1 is the 'admin' user. Is it possible that you have deleted and re-created your admin user at some stage?

The default permissions for a new map allow id 1 to see it only, since that user is the 'admin' user.

The fix will be an SQL statement to run after you add all your maps:

Code: Select all

delete from weathermap_auth where userid=1;
to clean out the error-producing assumption.
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!)
User avatar
adrianmarsh
Cacti User
Posts: 437
Joined: Wed Aug 17, 2005 8:51 am
Location: UK

Post by adrianmarsh »

Well - I no longer have an "admin" user. By I have several users who are admins... Can't remember if I just renamed it or removed it after creating my own account. Standard process for me is to remove unused admin accounts...
User avatar
adrianmarsh
Cacti User
Posts: 437
Joined: Wed Aug 17, 2005 8:51 am
Location: UK

Post by adrianmarsh »

Ok.. I see how the workaround works.. Shouldn't it use the "current users id" as the starting point ?
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

adrianmarsh wrote:Well - I no longer have an "admin" user. By I have several users who are admins... Can't remember if I just renamed it or removed it after creating my own account. Standard process for me is to remove unused admin accounts...
OK. It honestly hadn't occurred to me that someone might do that. :oops:

I originally hardcoded that so that I didn't get a zillion queries as to why someone couldn't see the map, even after they added it. I'll add in a check that the user actually exists. I figure that if you are savvy enough to be deleting users, then you probably can figure out why the map isn't visible.

The SQL statement previously posted will work as a quick & dirty fix though.
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!)
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

adrianmarsh wrote:Ok.. I see how the workaround works.. Shouldn't it use the "current users id" as the starting point ?
Yes, that's a much nicer way.
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!)
User avatar
adrianmarsh
Cacti User
Posts: 437
Joined: Wed Aug 17, 2005 8:51 am
Location: UK

Post by adrianmarsh »

NP.
User avatar
adrianmarsh
Cacti User
Posts: 437
Joined: Wed Aug 17, 2005 8:51 am
Location: UK

Post by adrianmarsh »

Is there any way to tone down the logs being generated?
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

adrianmarsh wrote:Is there any way to tone down the logs being generated?
With DEBUG off, you should only get one or two lines per map plus a 'hello' and a 'goodbye'... do you get much more?
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!)
User avatar
adrianmarsh
Cacti User
Posts: 437
Joined: Wed Aug 17, 2005 8:51 am
Location: UK

Post by adrianmarsh »

Getting (every 5mins)

06/12/2006 06:16:49 PM - WEATHERMAP: Poller[0] Weathermap has left the building
06/12/2006 06:16:49 PM - WEATHERMAP: Poller[0] Wrote map to C:\Inetpub\wwwroot\cacti\plugins\weathermap\output\weathermap_1.png and C:\Inetpub\wwwroot\cacti\plugins\weathermap\output\weathermap_thumb_1.png
06/12/2006 06:16:48 PM - WEATHERMAP: Poller[0] About to write image file. If this is the last message in your log, increase memory_limit in php.ini
06/12/2006 06:16:47 PM - WEATHERMAP: Poller[0] Map: C:\Inetpub\wwwroot\cacti\plugins\weathermap\configs\simple.conf -> C:\Inetpub\wwwroot\cacti\plugins\weathermap\output\weathermap_1.html & C:\Inetpub\wwwroot\cacti\plugins\weathermap\output\weathermap_1.png
06/12/2006 06:16:47 PM - WEATHERMAP: Poller[0] Normal logging mode. If things are going wrong, turn on DEBUG in Cacti for more information!
06/12/2006 06:16:47 PM - WEATHERMAP: Poller[0] Weathermap 0.82 in da house
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

adrianmarsh wrote:Getting (every 5mins)

06/12/2006 06:16:49 PM - WEATHERMAP: Poller[0] Weathermap has left the building
06/12/2006 06:16:49 PM - WEATHERMAP: Poller[0] Wrote map to C:\Inetpub\wwwroot\cacti\plugins\weathermap\output\weathermap_1.png and C:\Inetpub\wwwroot\cacti\plugins\weathermap\output\weathermap_thumb_1.png
06/12/2006 06:16:48 PM - WEATHERMAP: Poller[0] About to write image file. If this is the last message in your log, increase memory_limit in php.ini
06/12/2006 06:16:47 PM - WEATHERMAP: Poller[0] Map: C:\Inetpub\wwwroot\cacti\plugins\weathermap\configs\simple.conf -> C:\Inetpub\wwwroot\cacti\plugins\weathermap\output\weathermap_1.html & C:\Inetpub\wwwroot\cacti\plugins\weathermap\output\weathermap_1.png
06/12/2006 06:16:47 PM - WEATHERMAP: Poller[0] Normal logging mode. If things are going wrong, turn on DEBUG in Cacti for more information!
06/12/2006 06:16:47 PM - WEATHERMAP: Poller[0] Weathermap 0.82 in da house
Once again, this is a balance between your convenience as a more experienced user, and my mailbox as recipient of questions about why someone doesn't get any maps when they just installed the thing. I do tend to include as much explanation as possible to avoid answering the same question over and over. Believe it or not, people don't read the manual. :-)

Maybe there's some mileage in a 'quiet' option that's off by default.
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!)
User avatar
adrianmarsh
Cacti User
Posts: 437
Joined: Wed Aug 17, 2005 8:51 am
Location: UK

Post by adrianmarsh »

Yeah - but that applies to Cacti as well.

In my setup, I run two instances of cacti on the same server, Production and Test. In the Production system the only things I want to see in the logs are "errors". I have cacti monitor "itself" for stats - so I don'even need the measurements cacti gives. Same goes for the plugins. So an option for "off" would be great. Otherwise the logs sit there building up, and taking ages to download through the www gui.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests