network map

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
weathermap4rrd
Posts: 6
Joined: Sat Jan 22, 2005 10:02 am

Post by weathermap4rrd »

Hi,

just to let you know that an editor is available for Weathermap4rrd :)
even if it's still a beta version

An online demo could be test at :
http://weathermap4rrd.tropicalex.net/demoeditor/

Alex
http://weathermap4rrd.tropicalex.net
mgb
Cacti User
Posts: 124
Joined: Mon Jun 21, 2004 4:06 am
Location: North of the Netherlands

Post by mgb »

Very impressive,

Are you willing to integrate your version with cacti as a plugin?
it looks like several people are working towards the same end result. Maybe it's better to team up? I will offer my limited program skill's to such a team.
Although weathermap could exist as a seperate program, integrating it with cacti would make sense.

Michael
qwaskita
Posts: 1
Joined: Tue May 17, 2005 9:20 pm

nice

Post by qwaskita »

would be nice if we can use weathermap to monitor ss7 as well :) .... have you ever ?
ssams
Cacti User
Posts: 65
Joined: Tue Feb 01, 2005 5:54 pm
Location: Texas
Contact:

Post by ssams »

can you use labels and icons together? seems when i use an icon my label is not displayed. i read some caveat but didnt quite understand.

here is what i did that doesnt work - only see icon

NODE idca
LABEL IDC A Router
POSITION 300 200
ICON icon/cisco_small_router.png
ssams
Cacti User
Posts: 65
Joined: Tue Feb 01, 2005 5:54 pm
Location: Texas
Contact:

Post by ssams »

weathermap4rrd wrote:Hi,

just to let you know that an editor is available for Weathermap4rrd :)
even if it's still a beta version

An online demo could be test at :
http://weathermap4rrd.tropicalex.net/demoeditor/

Alex
http://weathermap4rrd.tropicalex.net
tried this version and i get the following
Fatal error: Call to undefined function imagefontwidth() in /www/htdocs/cacti/phpwm/config_tool.php on line 153

line 153 is the following
$pix_width[$node]=imagefontwidth($police)*strlen($label[$node]);

any ideas?
mgb
Cacti User
Posts: 124
Joined: Mon Jun 21, 2004 4:06 am
Location: North of the Netherlands

Post by mgb »

@ssams

Th reason you're not seeing a label (I refer to the Howie version) is that the icon is placed on top of the label. It's possible to reate a second node with only the label but it can't be drawn in the same space as the icon.

Michael
weathermap4rrd
Posts: 6
Joined: Sat Jan 22, 2005 10:02 am

Post by weathermap4rrd »

Hi ssams,

it is not useful to set up position of icon if you want to display it at the same position as the label.

You should remove "POSITION 300 200" and use :
NODE idca
LABEL IDC A Router
ICON icon/cisco_small_router.png

I'm talking about Weathermap4rrd version not the howie one.

About your imagefontwidth() error, it is probably because php-gd is not installed or not detected or it is not a recent version.

Alex
http://weathermap4rrd.tropicalex.net
ssams
Cacti User
Posts: 65
Joined: Tue Feb 01, 2005 5:54 pm
Location: Texas
Contact:

Post by ssams »

thanks.

got the issue resolved on the GD.
tubbie
Posts: 5
Joined: Sat Feb 26, 2005 6:48 am

Post by tubbie »

Hi

I'm playing around with weather4rrd and Howie's php-weathermap version. One thing though, i'm not getting any current bitrate or percentage on all the links created within php-weathermap. Within weather4rrd the percentages and rates are all okay. I'm using the same rrd's for both versions.

Any ideas?

Dennis

PS: some output from weathermap.php:
________________________________________
ReadData: Updating link data for all links
ReadData: Updating link server1-switch from ../rra/server1_traffic_in_29.rrd
ReadFromRRD: Running: /usr/local/bin/rrdtool fetch '../rra/server1_traffic_in_29.rrd' AVERAGE --start now-400
> 1117908000: 1.3816577778e+01 8.1953777778e+00
> 1117908300: 1.2954688889e+01 7.7397333333e+00
> 1117908600: NaN NaN
> --
--1117908600: NaN NaN

ReadFromRRD: Found a good line: 1117908600: NaN NaN
( traffic_in traffic_out
)
--1117908300: 1.2954688889e+01 7.7397333333e+00

--1117908000: 1.3816577778e+01 8.1953777778e+00

ReadFromRRD: Our line is 1117908600: NaN NaN

ReadFromRRD: Returning (110.532622224,65.5630222224)
ReadDate: Setting 110.532622224,65.5630222224
________________________________________
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

tubbie wrote:
ReadFromRRD: Found a good line: 1117908600: NaN NaN
( traffic_in traffic_out
)
Fixed this in 0.5. I'd assumed that RRDtool always outputs the same thing when there is no data (sometimes it's NaN, nan, whatever, but it comes from the compiler's libraries so it can't be checked). As soon as I've tested the change I'll put it up, along with the other stuff waiting... real work has been busy! :(
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!)
tubbie
Posts: 5
Joined: Sat Feb 26, 2005 6:48 am

Post by tubbie »

Howie wrote:
tubbie wrote:
ReadFromRRD: Found a good line: 1117908600: NaN NaN
( traffic_in traffic_out
)
Fixed this in 0.5. I'd assumed that RRDtool always outputs the same thing when there is no data (sometimes it's NaN, nan, whatever, but it comes from the compiler's libraries so it can't be checked). As soon as I've tested the change I'll put it up, along with the other stuff waiting... real work has been busy! :(
Thnx Howie for the quick reply! I'll wait for 0.5 and try again.
philuxe
Posts: 24
Joined: Fri Jan 07, 2005 6:15 am

Post by philuxe »

Hi all,

I'm trying to install the php-weathermap_0.4
I use a Fedora Core 2 and I cant find any php-gd module for this distribution, but I can find it for FC3 :/

So when I launch "php weathermap.php"

it returns me :

PHP Warning: fopen(weathermap.conf): failed to open stream: No such file or directory in /root/weathermap/php-weathermap-0.4/Weathermap.class.php on line 685
Content-type: text/html
X-Powered-By: PHP/4.3.10

Couldn't open config file weathermap.conf for reading

The file weathermap.conf is not present in the tarball, i m wondering if my php-gd is really the cause of my trouble ???

Thanks in advance


EDIT : the "php -m" command says me that the GD module is present, where shall I get the missing conf file ?
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

philuxe wrote: The file weathermap.conf is not present in the tarball, i m wondering if my php-gd is really the cause of my trouble ???

EDIT : the "php -m" command says me that the GD module is present, where shall I get the missing conf file ?
The weathermap.conf file is what describes your network, which is why it isn't in the tarball :-) I'd suggest having a read of the manual...
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!)
ssams
Cacti User
Posts: 65
Joined: Tue Feb 01, 2005 5:54 pm
Location: Texas
Contact:

Post by ssams »

is there a way to increase the background size? it appears to be locked at 800x600? i tried not specifying a background but i dont think that helped. i want to display this on an 80" wall screen with a projector so we can run a high resolution. it will allow me to get much more on the screen.
thanks
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

ssams wrote:is there a way to increase the background size? it appears to be locked at 800x600? i tried not specifying a background but i dont think that helped. i want to display this on an 80" wall screen with a projector so we can run a high resolution. it will allow me to get much more on the screen.
thanks

Code: Select all

WIDTH 1280
HEIGHT 1024
or use a background that is the size you want.

(Also in the Fantastic Manual ;-) ).
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