network map
Moderators: Developers, Moderators
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:
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:
Thanks,else
{
$outlabel = format_bytes($output{$link} * 8,1);
$inlabel = format_bytes($input{$link} * 8,1);
}
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
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.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:
Thanks,else
{
$outlabel = format_bytes($output{$link} * 8,1);
$inlabel = format_bytes($input{$link} * 8,1);
}
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
Hi everybody
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.
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.
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
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
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).
The NODES line names must match the NODE names! So it would look like
Code: Select all
NODES Name 2Name
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).
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
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
How can i ?
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
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.
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
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]
[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]
::png date problem
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
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
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
Who is online
Users browsing this forum: No registered users and 0 guests