own style formating ?

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
rufi86
Posts: 26
Joined: Sat Feb 20, 2016 12:53 pm

own style formating ?

Post by rufi86 »

Hi

Is there option to have own style formating in cacti weathermap ?

For example based on .css ? margines, padding, etc ?
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: own style formating ?

Post by Howie »

Not really, it's a PNG image - what do you actually want to change?

In Cacti, the Cacti stylesheet provides the formatting for the Weathermap page.
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!)
rufi86
Posts: 26
Joined: Sat Feb 20, 2016 12:53 pm

Re: own style formating ?

Post by rufi86 »

Howie wrote:Not really, it's a PNG image - what do you actually want to change?

In Cacti, the Cacti stylesheet provides the formatting for the Weathermap page.
Hello Howie,

So I want to create grap, and I need to change position of box where i have value Bits per sond, and general look, and add few tables with only CPU, MEM utilization.
Some kind of complex network graph.

For example
http://img11.hostingpics.net/pics/827168weathermap.png
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: own style formating ?

Post by Howie »

OK. So the little CPU and memory images are done as separate nodes. The formatting for the blue nodes is done using standard weathermap commands. The rounded boxes are made by using the 'artificial icons' feature and the 'rbox' feature. The angled links are using VIA and 'VIASTYLE angled'.

That's all standard weathermap stuff. You can see most of those things in the Visual Guide page in the front 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!)
rufi86
Posts: 26
Joined: Sat Feb 20, 2016 12:53 pm

Re: own style formating ?

Post by rufi86 »

Howie wrote:OK. So the little CPU and memory images are done as separate nodes. The formatting for the blue nodes is done using standard weathermap commands. The rounded boxes are made by using the 'artificial icons' feature and the 'rbox' feature. The angled links are using VIA and 'VIASTYLE angled'.

That's all standard weathermap stuff. You can see most of those things in the Visual Guide page in the front of the manual.
Hi,

Where and how Can I manage that ?

Weateher editor -> Map style ? * I dont have so many option in there..

Weateher editor -> Manage colors ? * I dont have so many option in there..
Nothing in here works yet. The aim is to have a nice color picker somehow.
Background Color
Link Outline Color
Scale Colors Some pleasant way to design the bandwidth color scale goes in here???
Helpful text will appear here, depending on the current item selected. It should wrap onto several lines, if it's necessary for it to do that.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: own style formating ?

Post by Howie »

Edit the map file in a text editor.
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!)
rufi86
Posts: 26
Joined: Sat Feb 20, 2016 12:53 pm

Re: own style formating ?

Post by rufi86 »

Howie wrote:Edit the map file in a text editor.
Ok then, how can I define proper fonts, size, position ?

How can I edit, move box where I have network speed ?
rufi86
Posts: 26
Joined: Sat Feb 20, 2016 12:53 pm

Re: own style formating ?

Post by rufi86 »

Here I can see some values, hmm ?

Code: Select all

WIDTH 1104
HEIGHT 808
HTMLSTYLE overlib
KEYFONT 1
TITLE map
TIMEPOS 1102 5 Created: %b %d %Y %H:%M:%S

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
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: own style formating ?

Post by Howie »

As I said, on the front page of the manual is a diagram called "Visual Guide" that shows which keywords control which formatting features. There is a fairly large reference guide for all the keywords used in a weathermap config file. You already have the manual - it's in the docs/ subdirectory of the weathermap folder.
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!)
rufi86
Posts: 26
Joined: Sat Feb 20, 2016 12:53 pm

Re: own style formating ?

Post by rufi86 »

Howie wrote:As I said, on the front page of the manual is a diagram called "Visual Guide" that shows which keywords control which formatting features. There is a fairly large reference guide for all the keywords used in a weathermap config file. You already have the manual - it's in the docs/ subdirectory of the weathermap folder.
Ok. Let me study it. If I will have some questions. I will get back here :)

Take care
rufi86
Posts: 26
Joined: Sat Feb 20, 2016 12:53 pm

Re: own style formating ?

Post by rufi86 »

Good morning,

According to config-reference.html#NODE_POSITION document, I want to move connection lines to the edge.

Tried to add argument :E and :W at the end node id.
Please check attachment and below little bit output from configuration from from weather map.

Code: Select all

NODE node08099
	LABEL .
	POSITION 71 1342

Code: Select all

LINK node03082-node08099

	NODES node03082:E node08099:W

Code: Select all

LINK node03477-node08099

	NODES node03477:W node08099:W
Attachments
Screen Shot 10-24-16 at 10.24 AM.PNG
Screen Shot 10-24-16 at 10.24 AM.PNG (2.42 KiB) Viewed 3285 times
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: own style formating ?

Post by Howie »

Your node doesn't have an ICON command. Where is that icon coming from?

With no ICON, this is the expected output - it will use the edges of the label text box.

I just tested with icons, and the current release version:

Code: Select all

WIDTH 400
HEIGHT 200

NODE n1
   ICON 72 72 images/hollow32.png
   POSITION 50 100

NODE n2
   ICON 72 72 images/hollow32.png
   POSITION 350 100

LINK l1
  NODES n1:E n2:W
And I get this
Attachments
weathermap.png
weathermap.png (2.04 KiB) Viewed 3270 times
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 0 guests