bwlabel height
Moderators: Developers, Moderators
bwlabel height
how can i change the height of the bwlabel box ? i think right now its too big for me... or better to remove that box, if its possible
- streaker69
- Cacti Pro User
- Posts: 712
- Joined: Mon Mar 27, 2006 10:35 am
- Location: Psychic Amish Network Administrator
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
It's BWFONT 1 to make the smallest built-in font (2 is the default). You can make them smaller still by using DEFINEFONT and a truetype font.streaker69 wrote:I believe that can be set by default from the editor.
You can also change it for each Link in the config file for you map.
BWLABEL 1 is the smallest. I believe that 2 is default.
Add BWLABEL and a # after each Link to change it per Link.
To get rid of the labels completely: BWLABEL none either in the LINK DEFAULT section, or for individual links.
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!)
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!)
- streaker69
- Cacti Pro User
- Posts: 712
- Joined: Mon Mar 27, 2006 10:35 am
- Location: Psychic Amish Network Administrator
Oops, and I was just working with those yesterday, you'd think I'd have remembered that.Howie wrote:It's BWFONT 1 to make the smallest built-in font (2 is the default). You can make them smaller still by using DEFINEFONT and a truetype font.streaker69 wrote:I believe that can be set by default from the editor.
You can also change it for each Link in the config file for you map.
BWLABEL 1 is the smallest. I believe that 2 is default.
Add BWLABEL and a # after each Link to change it per Link.
To get rid of the labels completely: BWLABEL none either in the LINK DEFAULT section, or for individual links.
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
I had to look it up. I haven't touched them for ages. I just cut & paste the top 30 or so lines for all my maps...streaker69 wrote: Oops, and I was just working with those yesterday, you'd think I'd have remembered that.
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!)
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!)
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
BWBOXCOLOR nonetimi wrote:10q, i need the label, but i dont need that box around, or if i can get rid of it.. maybe you can tell me how to make a smaller one
BWOUTLINECOLOR none
(maybe BWFONTCOLOR to make the label readable)
It's worth having at least a little look at the config reference, you know
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!)
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!)
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
OK. No, you can't do that without changing the code.timi wrote:yes but, i dont want the box to disappear i want it smaller keeping the same font, like in the image, i want to make the size of pinky box like
the size of the black box, thats what i want ,
The reason is that there must be some 'slack' around the edge of the box to allow for different fonts. Some fonts report their pixel-size incorrectly.
The code you need to change is around line 1850 in Weathermap.class.php - just add a
Code: Select all
$y1=$y1+2; $y2=$y2-2;
You changed the spec!timi wrote:or better to remove that box, if its possible
Last edited by Howie on Fri Nov 17, 2006 5:40 am, edited 1 time in total.
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!)
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!)
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Because that's what kilo means for telcos on E1/T1, as far as I know.timi wrote:ok i changed the code a bit in weathermap.class.php
and why the $kilo is not 1024 and is 1000?
MRTG is the same (1000 by default).
This is why some people now talk about kibibytes (for 1024*1024 bytes).
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!)
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!)
Who is online
Users browsing this forum: No registered users and 3 guests