network map

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

Moderators: Developers, Moderators

Post Reply
rpingar
Cacti User
Posts: 86
Joined: Mon Jun 07, 2004 8:17 am

Post by rpingar »

if I delete the BACKGROUND line I don't get the error and I have the map generated, but asap I add correctly the background line (also specifing the path to the png) I get the error.

why?
rpingar
Cacti User
Posts: 86
Joined: Mon Jun 07, 2004 8:17 am

Post by rpingar »

using the perl script everything works fine, so I think something about exe is wrong.

thanks
Nick
Posts: 17
Joined: Wed Jan 19, 2005 10:53 am

Post by Nick »

Hi,

First, good work for this script Howie!

But I got just one pb: my In/Out rates are about 10 times more than the reality. So I took a look on the script, and would like to know if what I found is an error or not:
else
{
$outlabel = format_bytes($output{$link} * 8,1);
$inlabel = format_bytes($input{$link} * 8,1);
}
Thanks,
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

Nick wrote:But I got just one pb: my In/Out rates are about 10 times more than the reality. So I took a look on the script, and would like to know if what I found is an error or not:
else
{
$outlabel = format_bytes($output{$link} * 8,1);
$inlabel = format_bytes($input{$link} * 8,1);
}
Thanks,
The BANDWIDTH lines in the config are in Bytes/sec. I think this is just because that's what MRTG uses, which is where this script was originally intended to be used. If you had used bits instead in the config, you'd see smaller percentages though. Shouldn't make aany difference to the actual bandwidth labels.

All I can say is that it works for me - I use this myself with both RRD and cacti2weathermap data sources, and it reflects the data within cacti itself correctly.

The two lines you posted are that way because weathermap internally works out bits/sec, then I wanted to use Number::Format to format it, which is expecting bytes, so I multiply up to make it right :-)
rpingar
Cacti User
Posts: 86
Joined: Mon Jun 07, 2004 8:17 am

Post by rpingar »

is it possible to have for some link an asymmetric bandwidth.

May be creating a new variable that when it is specified it is use to caluclate the percenatge of the upload.

Thanks
leon78fr
Posts: 1
Joined: Mon Feb 14, 2005 4:34 am

Hi everybody

Post by leon78fr »

This script is great!! Thx every body..

Just one problem, with options configuration file (weathermap.conf):

Just look at it:

BACKGROUND france.png

KEYPOS 1 520

# low high red green blue
SCALE 1 10 140 0 255
SCALE 10 25 32 32 255
SCALE 25 40 0 192 255
SCALE 40 55 0 240 0
SCALE 55 70 240 240 0
SCALE 70 85 255 192 0
SCALE 85 100 255 0 0


NODE Name
POSITION 357 164
LABEL AN
INFOURL
http://..../.../..cacti/graph_view.phpaction=tree&tree_id=1&leaf_id=8

NODE 2Name
POSITION 557 336
LABEL NA

LINK AN-NA
NODES BoisMouton Chambery
TARGET /var/lib/cacti/??????.rrd
HTMLSTYLE overlib
BANDWIDTH 256


So try to explain it: (sorry for my poor english)
- For the NEDE, I think it works well.
-But for the LINK, I would like to know how tu set up the javascript, and the link ? I try to regenerate my html file but the java and the HREF for the LINK on t work.

If you can let me see a "good" configuration file, I will be happy ^^

Thx,

A french man lost...
Leon.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

The HTMLSTYLE is for once per file - it's best to set it at the top. Only the last HTMLSTYLE entry in the file will make any difference.

The NODES line names must match the NODE names! So it would look like

Code: Select all

 NODES Name 2Name
for you.

For the LINK to have a popup, you need an OVERLIBGRAPH line in the LINK section, and for the click-through link, you'll need an INFOURL in the LINK section, too.

I'll dig out a sample file if you like, but there's a basic one in the tar files. It doesn't show the javascript/imagemap options though. I'll make one up and add it in with the next version (one more to come at least).
Ukyo
Posts: 1
Joined: Mon Feb 21, 2005 2:26 pm

Post by Ukyo »

Hey Howie,

Thanks alot for all the info!

I got my map working, and changed it to display bytes.

Oddly though, on the graphs I will see "57.86M out & 7.33M in" on the cacti graph for the port.

When I look at the map link for that graph and it says "55.2M out & 7M in".

Any idea why it can differ so badly?

Thanks,
Ukyo
User avatar
solefald
Posts: 38
Joined: Fri Jun 11, 2004 1:35 pm

How can i ?

Post by solefald »

Image

there are no LABELs in attached image
and the arrows that come out of the Cloud are not originating from the same
point. How can i do that ?

I made a background map out of Visio digram that already has names of
all of the devices
thanks
User avatar
solefald
Posts: 38
Joined: Fri Jun 11, 2004 1:35 pm

Post by solefald »

nice feature to have would be having an ability to scale down the size of the OVERLIB image and also having an ability to change the position of it, because for the arrows that are too close to the right borger of the map OVERLIB graphs pop up to the right of and 3/4 of it gets eaten by the browser.
User avatar
solefald
Posts: 38
Joined: Fri Jun 11, 2004 1:35 pm

Post by solefald »

here is my map
just felt like braging abouit it :)
Attachments
Weathermap one of our network segments
Weathermap one of our network segments
weathermap.jpg (118.62 KiB) Viewed 6744 times
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Nice... ;)
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
User avatar
Morgan
Cacti User
Posts: 187
Joined: Wed Feb 25, 2004 3:38 am

Post by Morgan »

i think you should know, that bragging, is not befitting of a proper techie !!!!!!!!

:wink:




ok so it's a nice map :/
rik
Posts: 38
Joined: Mon Nov 22, 2004 5:15 am
Location: Zuerich; Switzerland
Contact:

::png date problem

Post by rik »

hello,

thank you very much howie it is a great work you did.

i have to delete the created .png file everytime the script runs because the old file is still there and it is just been updated, but like this it works great.

can someone give me some informations about, how to use the direct reading from rrds without using cacti2weathermap.sh?

thank you
User avatar
solefald
Posts: 38
Joined: Fri Jun 11, 2004 1:35 pm

Post by solefald »

weathermap.conf

Code: Select all

LINK 6509FE-FE
        NODES 6509FE FE
        TARGET /usr/local/cacti-0.8.6c/rra/etxfe6509s1_traffic_in_2092.rrd
        BANDWIDTH 102400
        OVERLIBGRAPH http://blah/graph_image.php?local_graph_id=2077&rra_id=1
        INFOURL http://blah/graph.php?local_graph_id=2077&rra_id=all
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests