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:

Re: Label of link

Post by Howie »

petero wrote:Howie is it possible to add a comment for link and shown like on my picture.
This is used to have both VisualMAP and phisical map of network.
Like connections beetwen switches etc:
Fa0/24 - Fa0/1
You aren't the first to ask - I'm working on new features for 0.9 now, and this is on the list already. I'd like it myself, so we can have telco circuit references in our maps.
petero wrote: Addon ROCKS:)
Peter
Thanks :-)
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!)
evilzardoz
Cacti User
Posts: 55
Joined: Sun Dec 04, 2005 10:59 pm

Post by evilzardoz »

Hot damn - weathermap is surely shaping up to be damn fine :)

Started using it at 0.7, now running 0.8. I use the editor. We use it to look at traffic on our core network and our WAN.

Will there be a method in which weathermap can automatically get the ifSpeed from cacti? Just thinking in terms of when we upgrade a port channel link or increase the size of a VC.
User avatar
ScOp3
Cacti User
Posts: 61
Joined: Wed Aug 03, 2005 4:14 am
Location: Cologne Germany
Contact:

Post by ScOp3 »

Yup Weathermap is really working great once you have it up and running.
Regarding the feature request frenzy here now i would like to see an option for the history of the map. For example save the weathermap every N Minutes so i can later check how it looked at lets say 01:00 AM.
fear leads to anger, anger leads to hate and dancing leads to sex!
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

ScOp3 wrote:Yup Weathermap is really working great once you have it up and running.
Regarding the feature request frenzy here now i would like to see an option for the history of the map. For example save the weathermap every N Minutes so i can later check how it looked at lets say 01:00 AM.
for a script to run from unix cron every N minutes:

Code: Select all

   DATE=`date '+%y%m%d%H%M'`
   cp weathermap/output/weathermap_1.png weathermap/history/map_1_$DATE.png
Done! :-) This is what I used when I tried to animate my maps (use ImageMagick to turn a sequence of PNGs into MPEG1 - try using the --bulge command-line option of weathermap for some fun).

You probably want to use a 'find' command along with that, to automatically expire them, since the map PNGs are relatively large:

Code: Select all

find weathermap/history -name '*.png' -mtime +7 -type f -exec rm {} \;
on the end of the script above should keep a week's worth for you. Make sure the paths are absolute here, or you might go off deleting any 7-day-or-older pngs. :)
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 »

evilzardoz wrote:Hot damn - weathermap is surely shaping up to be damn fine :)

Started using it at 0.7, now running 0.8. I use the editor. We use it to look at traffic on our core network and our WAN.

Will there be a method in which weathermap can automatically get the ifSpeed from cacti? Just thinking in terms of when we upgrade a port channel link or increase the size of a VC.
It wouldn't be too hard to add it to the picker in the editor, so that it picks that info up then. Keeping it in sync is a little harder. The core of weathermap doesn't actually know very much about Cacti - there are folks out there who use it with MRTG or something else, and it's even integrated into another network monitoring package, I believe (not by me).

I've been thinking on and off about having some way to allow other people extend weathermap with 'data source plugins'. These would something like CGI programs, that take a TARGET string and then do anything with it to produce and in/out data pair. That way you could do whatever you wanted with any data. If I added a TARGET to nodes, then that would likely be done this way, since there's no real standard like rrds for up/down info. It would also potentially allow something I'd quite like myself - directly SNMP-fed weathermap - so you can see your BGP weighting adjustments working in real time (say, 10/15 sec updates).
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
ScOp3
Cacti User
Posts: 61
Joined: Wed Aug 03, 2005 4:14 am
Location: Cologne Germany
Contact:

Post by ScOp3 »

Howie wrote: for a script to run from unix cron every N minutes:

Code: Select all

   DATE=`date '+%y%m%d%H%M'`
   cp weathermap/output/weathermap_1.png weathermap/history/map_1_$DATE.png

Code: Select all

find weathermap/history -name '*.png' -mtime +7 -type f -exec rm {} \;
This is working now, thanks for the hint!

Now i am searching for the ImageMagick function to batch convert the png's into mpeg.

Anyway thanks for the good and fast response.
fear leads to anger, anger leads to hate and dancing leads to sex!
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

ScOp3 wrote: Now i am searching for the ImageMagick function to batch convert the png's into mpeg.
It's something really simple like:

Code: Select all

convert *.png map.mpg
as far as I remember...
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!)
bipinkdas
Posts: 11
Joined: Tue Apr 18, 2006 5:10 am

Could not get Realm Permission

Post by bipinkdas »

Sir,
I had tried php-weathermap (Plugin). But could not generate the following tab under the Realm permissions. But cacti shows no error

1.View Weathermaps
2.Manage Weathermap

How should I debug for a nice map

regards

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

Re: Could not get Realm Permission

Post by Howie »

bipinkdas wrote:Sir,
I had tried php-weathermap (Plugin). But could not generate the following tab under the Realm permissions. But cacti shows no error

1.View Weathermaps
2.Manage Weathermap

How should I debug for a nice map
Sorry, I don't understand. You do have those permissions listed, or you don't?

What happens if you disable other plugins? Especially "Reports" seems to sometimes cause trouble with other plugins.
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!)
bipinkdas
Posts: 11
Joined: Tue Apr 18, 2006 5:10 am

Php-weathermap

Post by bipinkdas »

Hi,
I have administrator permission on cacti. I dont have any other plugins installed

thanx

Bipin
knobdy
Cacti User
Posts: 495
Joined: Wed Sep 28, 2005 1:39 pm

Re: Php-weathermap

Post by knobdy »

bipinkdas wrote:Hi,
I have administrator permission on cacti. I dont have any other plugins installed
Under the console tab, in user management/admin, at the bottom of the page is a "realm permissions" area - in that area should be a couple of check boxes for weathermap.
gundamx
Posts: 29
Joined: Wed Mar 08, 2006 6:07 am

can't save output file

Post by gundamx »

Please helpme " i can't submit to png file
Notice: Undefined index: map_linkdefaultbwout in C:\Apache2\htdocs\cacti\plugins\weathermap\editor.php on line 177


please explain how to config weathermap and running

I use
- OS = windows 2003
- cacit 8.6h
- rrdtool 1.2
- php5
- apache
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: can't save output file

Post by Howie »

gundamx wrote:Please helpme " i can't submit to png file
Notice: Undefined index: map_linkdefaultbwout in C:\Apache2\htdocs\cacti\plugins\weathermap\editor.php on line 177
Which version of Weathermap? This should be fixed in 0.81... :-?
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!)
gundamx
Posts: 29
Joined: Wed Mar 08, 2006 6:07 am

Re: can't save output file

Post by gundamx »

Howie wrote:
gundamx wrote:Please helpme " i can't submit to png file
Notice: Undefined index: map_linkdefaultbwout in C:\Apache2\htdocs\cacti\plugins\weathermap\editor.php on line 177
Which version of Weathermap? This should be fixed in 0.81... :-?
I'm user Weathermap version 0.8
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: can't save output file

Post by Howie »

gundamx wrote:
Howie wrote:
gundamx wrote:Please helpme " i can't submit to png file
Notice: Undefined index: map_linkdefaultbwout in C:\Apache2\htdocs\cacti\plugins\weathermap\editor.php on line 177
Which version of Weathermap? This should be fixed in 0.81... :-?
I'm user Weathermap version 0.8
Please upgrade then. It's fixed in 0.81 :-)
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!)
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests