Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Mon Mar 27, 2017 11:16 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 12 posts ] 
Author Message
 Post subject: own style formating ?
PostPosted: Thu Oct 13, 2016 8:52 am 
Offline

Joined: Sat Feb 20, 2016 12:53 pm
Posts: 22
Hi

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

For example based on .css ? margines, padding, etc ?


Top
 Profile  
 
 Post subject: Re: own style formating ?
PostPosted: Thu Oct 13, 2016 9:05 am 
Offline
Cacti Guru User
User avatar

Joined: Thu Sep 16, 2004 5:53 am
Posts: 5058
Location: United Kingdom
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.98 is out! & QuickTree 0.2. Superlinks is over there now.
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!)


Top
 Profile  
 
 Post subject: Re: own style formating ?
PostPosted: Thu Oct 13, 2016 9:45 am 
Offline

Joined: Sat Feb 20, 2016 12:53 pm
Posts: 22
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


Top
 Profile  
 
 Post subject: Re: own style formating ?
PostPosted: Thu Oct 13, 2016 10:03 am 
Offline
Cacti Guru User
User avatar

Joined: Thu Sep 16, 2004 5:53 am
Posts: 5058
Location: United Kingdom
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.98 is out! & QuickTree 0.2. Superlinks is over there now.
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!)


Top
 Profile  
 
 Post subject: Re: own style formating ?
PostPosted: Thu Oct 13, 2016 10:30 am 
Offline

Joined: Sat Feb 20, 2016 12:53 pm
Posts: 22
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..

Quote:
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.


Top
 Profile  
 
 Post subject: Re: own style formating ?
PostPosted: Thu Oct 13, 2016 10:36 am 
Offline
Cacti Guru User
User avatar

Joined: Thu Sep 16, 2004 5:53 am
Posts: 5058
Location: United Kingdom
Edit the map file in a text editor.

_________________
Weathermap 0.98 is out! & QuickTree 0.2. Superlinks is over there now.
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!)


Top
 Profile  
 
 Post subject: Re: own style formating ?
PostPosted: Thu Oct 13, 2016 10:42 am 
Offline

Joined: Sat Feb 20, 2016 12:53 pm
Posts: 22
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 ?


Top
 Profile  
 
 Post subject: Re: own style formating ?
PostPosted: Thu Oct 13, 2016 10:45 am 
Offline

Joined: Sat Feb 20, 2016 12:53 pm
Posts: 22
Here I can see some values, hmm ?

Code:
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


Top
 Profile  
 
 Post subject: Re: own style formating ?
PostPosted: Thu Oct 13, 2016 10:46 am 
Offline
Cacti Guru User
User avatar

Joined: Thu Sep 16, 2004 5:53 am
Posts: 5058
Location: United Kingdom
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.98 is out! & QuickTree 0.2. Superlinks is over there now.
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!)


Top
 Profile  
 
 Post subject: Re: own style formating ?
PostPosted: Thu Oct 13, 2016 10:49 am 
Offline

Joined: Sat Feb 20, 2016 12:53 pm
Posts: 22
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


Top
 Profile  
 
 Post subject: Re: own style formating ?
PostPosted: Mon Oct 24, 2016 4:30 am 
Offline

Joined: Sat Feb 20, 2016 12:53 pm
Posts: 22
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:
NODE node08099
   LABEL .
   POSITION 71 1342


Code:
LINK node03082-node08099

   NODES node03082:E node08099:W


Code:
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 497 times ]
Top
 Profile  
 
 Post subject: Re: own style formating ?
PostPosted: Mon Oct 24, 2016 7:44 am 
Offline
Cacti Guru User
User avatar

Joined: Thu Sep 16, 2004 5:53 am
Posts: 5058
Location: United Kingdom
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:
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 482 times ]

_________________
Weathermap 0.98 is out! & QuickTree 0.2. Superlinks is over there now.
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!)
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group