[INFO] Show off your Weathermaps.

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: Here's my contribution

Post by Howie »

jhollon wrote:on the drawings with a say, 6509 with populated ports with color codes.


Question, the port status color, are they dynamic or static, meaning, are you specifying which is green or red or whatever or is some kind of call coming from cacti determining the color state. If it is dynamic, can someone give a short howto on getting this working? I have looked all over and i can't place my finger on how to actually do it correctly and i have a ton of core switches in my network i would really like to do this on. keep in mind, most of my interfaces are Layer 2 interfaces not Layer 3 interfaces, so i am trying to figure out what to set up.
Here's one way:
http://forums.cacti.net/viewtopic.php?t=38149

It may not scale so well if you really have a ton of switches. I use it with a few hundred ports with no problem though.

The other way is to use the "interface status" template from these forums, so Cacti collects port status information, and then use that rrd file in a similar way. Cacti should be more efficient at collecting the SNMP info than my simple-minded SNMP plugin for weathermap.
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!)
jhollon
Cacti User
Posts: 51
Joined: Mon Jan 24, 2011 1:30 pm

Re: [INFO] Show off your Weathermaps.

Post by jhollon »

Thanks Howie and i will give it a try.

great work by the way, my bosses think i am some kind of genius.....
benoit
Posts: 23
Joined: Wed Dec 12, 2007 8:03 am
Location: Paris, France

Re: [INFO] Show off your Weathermaps.

Post by benoit »

Code: Select all

NODE TRAFFIC_out
	LABEL {node:this:bandwidth_out:%k} Out
	ICON none

NODE TRAFFIC_in
	LABEL {node:this:bandwidth_in:%d} In
	ICON none


# TEMPLATE-only LINKs:
LINK DEFAULT
	WIDTH 3
	ARROWSTYLE compact
	BWSTYLE Angled
	BANDWIDTH 50M


# regular NODEs:


NODE RACFWROS03_traffic_in
	TEMPLATE TRAFFIC_in
	INFOURL /cacti/graph.php?rra_id=all&local_graph_id=82557
	OVERLIBGRAPH /cacti/graph_image.php?rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300&local_graph_id=82557
	TARGET gauge:/usr/share/cacti/site/rra/racfwros03_cluster_ifinoctets_82935.rrd:-:ifInOctets
	POSITION 1109 281

NODE RACFWROS03_traffic_out
	TEMPLATE TRAFFIC_out
	INFOURL /cacti/graph.php?rra_id=all&local_graph_id=82557
	OVERLIBGRAPH /cacti/graph_image.php?rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300&local_graph_id=82557
	TARGET gauge:/usr/share/cacti/site/rra/racfwros03_cluster_ifinoctets_82935.rrd:-:ifOutOctets
	POSITION 1108 302
Hi Everybody !

First > excuse me for my bad English ...

Two > You can see up a truncated part of my testing config ... my problem is that i can't display correct label for the traffic " In " , always " showing " 0 " ( see attachment )
Is there any problem in the config ?
( inOutOctets and inOutOctets are the DS name showing by rrdtool info .. )
What to do to display mega and not kilo ?

Third > Can someone tell ( or show ) me how i can change the color of the concerned node label using the status of the VPN Tunnel ( up / down ) .
I'm using the "Netscreen - Tunnel Interface Traffic" template.

Thank you very much

Benoît
Attachments
Capture-1.png
Capture-1.png (39.82 KiB) Viewed 12593 times
Last edited by benoit on Tue Apr 19, 2011 7:43 am, edited 1 time in total.
" no keyboard detected, press any key to continue ..."
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: [INFO] Show off your Weathermaps.

Post by Howie »

Please could you create a new thread for this?

But first thing to check - are there any warnings in cacti.log?
benoit wrote:

Code: Select all

NODE TRAFFIC_out
	LABEL {node:this:bandwidth_out:%k} Out
	ICON none

NODE TRAFFIC_in
	LABEL {node:this:bandwidth_in:%d} In
	ICON none


# TEMPLATE-only LINKs:
LINK DEFAULT
	WIDTH 3
	ARROWSTYLE compact
	BWSTYLE Angled
	BANDWIDTH 50M


# regular NODEs:


NODE RACFWROS03_traffic_in
	TEMPLATE TRAFFIC_in
	INFOURL /cacti/graph.php?rra_id=all&local_graph_id=82557
	OVERLIBGRAPH /cacti/graph_image.php?rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300&local_graph_id=82557
	TARGET gauge:/usr/share/cacti/site/rra/racfwros03_cluster_ifinoctets_82935.rrd:-:ifInOctets
	POSITION 1109 281

NODE RACFWROS03_traffic_out
	TEMPLATE TRAFFIC_out
	INFOURL /cacti/graph.php?rra_id=all&local_graph_id=82557
	OVERLIBGRAPH /cacti/graph_image.php?rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300&local_graph_id=82557
	TARGET gauge:/usr/share/cacti/site/rra/racfwros03_cluster_ifinoctets_82935.rrd:-:ifOutOctets
	POSITION 1108 302
Hi Everybody !

First > excuse me for my bad English ...

Two > You can see up a truncated part of my testing config ... my problem is that i can't display correct label for the traffic " In " , always " showing " 0 " ( see attachment )
Is there any problem in the config ?
( inOutOctets and inOutOctets are the DS name showing by rrdtool info .. )

Third > Can someone tell ( or show ) me how i can change the color of the concerned node label using the status of the VPN Tunnel ( up / down ) .
I'm using the "Netscreen - Tunnel Interface Traffic" template.

Thank you very much

Benoît
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!)
benoit
Posts: 23
Joined: Wed Dec 12, 2007 8:03 am
Location: Paris, France

Re: [INFO] Show off your Weathermaps.

Post by benoit »

Howie wrote:Please could you create a new thread for this?

But first thing to check - are there any warnings in cacti.log?
You've got it here http://forums.cacti.net/viewtopic.php?f=16&t=42557

Thank you
" no keyboard detected, press any key to continue ..."
jhollon
Cacti User
Posts: 51
Joined: Mon Jan 24, 2011 1:30 pm

Re: [INFO] Show off your Weathermaps.

Post by jhollon »

I still can not get the port status node mapping to work. I have the graphs built and working for the particular interfaces working correctly, but for the life of me i can't get the port status on a weathermap to work. can someone look at my node config and tell me what i am doing wrong? as soon as i hit submit on the node config box, the node disappears completely. i am really not sure what i am missing at this point. please help me.

here is my node config.

<<<<

SCALE DEFAULT 0 1.5   0 255 0
SCALE DEFAULT 1.5 2.5   127 127 127

NODE BL1
LABEL 01

SET key_hidezero_DEFAULT 1

INFOURL /graph.php?action=view&local_graph_id=6836&rra_id=all
OVERLIBGRAPH /graph_image.php?rra_id=0&graph_nolegend=true&graph_height$
TARGET gauge:/var/www/cacti/rra/6509-i_int_status_7107.rrd
POSITION 131 183


>>>>



my graph name for the int_status is 6509-i_int_status_7107.rrd
and
my graph id is showing up as 6836.

any help would be greatly appreciated.

thanks,

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

Re: [INFO] Show off your Weathermaps.

Post by Howie »

SCALE DEFAULT 0 1.5 0 255 0
SCALE DEFAULT 1.5 2.5 127 127 127

SET key_hidezero_DEFAULT 1

if you are pasting those lines into the node config box, don't do that - they aren't node config. I don't really know what will happen in that situation, but ignoring the entire node wouldn't be a surprise.
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!)
jhollon
Cacti User
Posts: 51
Joined: Mon Jan 24, 2011 1:30 pm

Re: [INFO] Show off your Weathermaps.

Post by jhollon »

ok, so just the other stuff should work? problem is that there is no designation for an icon and i would like the icon to change color like the others depending on the port state. I am just really confused on this one now.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: [INFO] Show off your Weathermaps.

Post by Howie »

jhollon wrote:ok, so just the other stuff should work? problem is that there is no designation for an icon and i would like the icon to change color like the others depending on the port state. I am just really confused on this one now.
If you want that, then yes you'll need an ICON line too. But you don't need an ICON line in general - a node can have just a label, and that's not a problem.
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!)
jhollon
Cacti User
Posts: 51
Joined: Mon Jan 24, 2011 1:30 pm

Re: [INFO] Show off your Weathermaps.

Post by jhollon »

so just putting the following in should result in a correct node showing the up/down status.

NODE BL1
LABEL 01

INFOURL /graph.php?action=view&local_graph_id=6836&rra_id=all
OVERLIBGRAPH /graph_image.php?rra_id=0&graph_nolegend=true&graph_height$
TARGET gauge:/var/www/cacti/rra/6509-i_int_status_7107.rrd
POSITION 131 183

and then the below should be in the global of the map so that it changes color? depending on the up/down graph status?

SCALE DEFAULT 0 1.5 0 255 0
SCALE DEFAULT 1.5 2.5 127 127 127

SET key_hidezero_DEFAULT 1


below is my entire map config at this point (just trying to get one status working. not sure what stays or goes.

<<<<<

# Automatically generated by php-weathermap v0.97a


BACKGROUND images/MyCisco6509.png
WIDTH 519
HEIGHT 824
TITLE SL 6509-I

KEYPOS DEFAULT -1 -1 Traffic Load
KEYTEXTCOLOR 0 0 0
KEYOUTLINECOLOR 0 0 0
KEYBGCOLOR 255 255 255
BGCOLOR 255 255 255
TITLECOLOR 0 0 0
TIMECOLOR 0 0 0
SCALE DEFAULT 0 0 192 192 192
SCALE DEFAULT 0 1 255 255 255
SCALE DEFAULT 1 10 140 0 255
SCALE DEFAULT 10 25 32 32 255
SCALE DEFAULT 25 40 0 192 255
SCALE DEFAULT 40 55 0 240 0
SCALE DEFAULT 55 70 240 240 0
SCALE DEFAULT 70 85 255 192 0
SCALE DEFAULT 85 100 255 0 0

SCALE IFSTATUS 0 1.5 0 255 0 UpSCALE IFSTATUS 1.5 2.5 255 0 0 Down
SCALE IFSTATUS 1.5 2.5 255 0 0 Down

SET key_hidezero_DEFAULT 1

# End of global section


# TEMPLATE-only NODEs:
NODE DEFAULT
MAXVALUE 100


# TEMPLATE-only LINKs:
LINK DEFAULT
BANDWIDTH 100M


# regular NODEs:
NODE node04995
POSITION 127 76

NODE DL-6509-I-Fa1/11
INFOURL /cacti/graph.php?rra_id=all&local_graph_id=214
OVERLIBGRAPH /cacti/graph_image.php?rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300&local_graph_id=214
ICON images/RedDot.png
POSITION 205 78

NODE NODE1_Status
INFOURL /graph.php?action=view&local_graph_id=6836&rra_id=allOVERLIBGRAPH /graph_image.php?rra_id=0&graph_nolegend=true&graph_height$TARGET gauge:/var/www/cacti/rra/6509-i_int_status_7107.rrdPOSITION 131 183
POSITION 126 78
SET key_hidezero_DEFAULT 1

NODE node09495
LABEL Node
POSITION 177 232


# regular LINKs:


# That's All Folks!
>>>>>>>
Leddy
Cacti User
Posts: 93
Joined: Sun May 15, 2005 6:55 pm

Re: [INFO] Show off your Weathermaps.

Post by Leddy »

Here is something I created as a proof of concept to show a client the difference in "internet" and "vpn" traffic.

Image
User avatar
Jem
Posts: 35
Joined: Tue Apr 12, 2005 4:36 pm
Contact:

Re: [INFO] Show off your Weathermaps.

Post by Jem »

Hi Leddy,

I'm trying to do something near what you did but to show QoS mapping on cisco routers.

I don't know yet how to have the major link "cutted" by the lense, how did you do that ?

Thanks :)

Edit:
[SOLVED] I did a linkstyle oneway and manage the link size through the node position :)
User avatar
zoemu
Cacti User
Posts: 287
Joined: Fri Jul 10, 2009 1:38 pm
Location: Toronto, Canada

Re: [INFO] Show off your Weathermaps.

Post by zoemu »

My new creations
Attachments
VPN Tunnels
VPN Tunnels
vpn.jpg (371.45 KiB) Viewed 12238 times
Server's Info
Server's Info
Server.jpg (342.19 KiB) Viewed 12238 times
Leddy
Cacti User
Posts: 93
Joined: Sun May 15, 2005 6:55 pm

Re: [INFO] Show off your Weathermaps.

Post by Leddy »

Jem wrote:Hi Leddy,

I'm trying to do something near what you did but to show QoS mapping on cisco routers.

I don't know yet how to have the major link "cutted" by the lense, how did you do that ?

Thanks :)

Edit:
[SOLVED] I did a linkstyle oneway and manage the link size through the node position :)
Jem,

I used smoke and mirrors by changing the ZORDER.
Things are drawn like this:
1.) Long link
2.) Magnifying glass
3.) Shorter links
Findarato
Posts: 29
Joined: Wed Feb 06, 2008 2:56 pm

Re: [INFO] Show off your Weathermaps.

Post by Findarato »

I know this is kind of an old thread but I have a question.

I am trying to show if the port on a switch is up or down, I have included my config,but all of them are green. I know there are no machines plugged into atleast one of the ports.

Code: Select all

FONTDEFINE 100 docs/example/Vera.ttf 10

WIDTH 1280
HEIGHT 768
HTMLSTYLE overlib
KEYFONT 100
TITLE Main Library
TIMEPOS 17 700 Created: %b %d %Y %H:%M:%S

KEYPOS DEFAULT 10 700 Traffic Load
KEYSTYLE  DEFAULT horizontal
KEYTEXTCOLOR 0 0 0
KEYOUTLINECOLOR 0 0 0
KEYBGCOLOR 255 255 255
BGCOLOR 230 230 230
TITLECOLOR 0 0 0
TIMECOLOR 0 0 0
#SCALE DEFAULT 0    0      0   0   0     0   0   0    
SCALE DEFAULT 0    5   204 204 204     0 255   0    
SCALE DEFAULT 5   50     0 255   0   255 255   0    
SCALE DEFAULT 50   100  255 255   0   255   0   0    

SCALE IFSTATUS 0    1.5    0 255   0  Up
SCALE IFSTATUS 1.5  2.5  255   0   0  Down

SET rra_dir /var/www/cacti/rra
SET key_hidezero_DEFAULT 1
# End of global section


# TEMPLATE-only NODEs:
NODE DEFAULT
	LABELFONT 100
	TARGET cactihost:{node:this:cacti_id}
	MAXVALUE 100


# TEMPLATE-only LINKs:
LINK DEFAULT
	WIDTH 6
	ARROWSTYLE compact
	BWFONT 100
	BWLABEL bits
	BANDWIDTH 1000M


# regular NODEs:
NODE gigA1
	LABEL sA1
	INFOURL /cacti/graph.php?rra_id=all&local_graph_id=1743
	OVERLIBGRAPH /cacti/graph_image.php?rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300&local_graph_id=1743
	ICON 15 15 square
	TARGET gague:/var/www/cacti/rra/gigswitcha_traffic_in_1896.rrd:int_status:-
	USESCALE IFSTATUS
	POSITION 50 100

NODE A1

	LABEL A2
	POSITION 50 10



NODE gigA2
	LABEL sA2
	INFOURL /cacti/graph.php?rra_id=all&local_graph_id=1744
	OVERLIBGRAPH /cacti/graph_image.php?rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300&local_graph_id=1744
	ICON 15 15 square
	TARGET gague:/var/www/cacti/rra/gigswitcha_traffic_in_1897.rrd:int_status:-
	USESCALE IFSTATUS
	POSITION 100 100
[b]Cacti Version[/b] - 0.8.7d [b]Plugin Architecture[/b] - 2.4 [b]Poller Type[/b] - CMD.php [b]Server Info[/b] - Linux 2.6.18-164.9.1.el5 [b]Web Server[/b] - Apache/2.2.3 (CentOS) [b]PHP[/b] - 5.1.6 [b]PHP Extensions[/b] - libxml, xml, wddx, tokenizer, sysvshm, sysvsem, sysvmsg, standard, SimpleXML, sockets, SPL, shmop, session, Reflection, pspell, posix, mime_magic, iconv, hash, gmp, gettext, ftp, exif, date, curl, ctype, calendar, bz2, zlib, pcre, openssl, apache2handler, dbase, gd, mysql, mysqli, PDO, pdo_mysql, pdo_sqlite, snmp[b]MySQL[/b] - 5.0.77 [b]RRDTool[/b] - 1.4.2 [b]SNMP[/b] - 5.3.2.2
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest