|
|
| Author |
Message |
rasolama
Joined: 26 Jan 2007 Posts: 4
|
Posted: Wed Feb 07, 2007 1:07 pm Post subject: [SOLVED] Problem with LABELBGCOLOR statement |
|
|
OK I have this in my config file:
NODE node1170778408
LABEL xxx.xxx.xxx
LABELOFFSET S
LABELBGCOLOR 255 255 255
LABELOUTLINECOLOR 0 0 0
INFOURL http://xxx.xxx.xxx/cacti/graph_view.php?action=tree&tree_id=1&
But the graphic generates with just black text and now bgcolor box around it? Am I misunderstanding what this does? |
|
| Back to top |
|
 |
streaker69 Cacti Pro User
Joined: 27 Mar 2006 Posts: 633 Location: Psychic Amish Network Administrator
|
Posted: Wed Feb 07, 2007 1:45 pm Post subject: Re: Problem with LABELBGCOLOR statement |
|
|
| rasolama wrote: | OK I have this in my config file:
NODE node1170778408
LABEL xxx.xxx.xxx
LABELOFFSET S
LABELBGCOLOR 255 255 255
LABELOUTLINECOLOR 0 0 0
INFOURL http://xxx.xxx.xxx/cacti/graph_view.php?action=tree&tree_id=1&
But the graphic generates with just black text and now bgcolor box around it? Am I misunderstanding what this does? |
You should be seeing the label in Black Text, with a whitebackground and a black box around it. I just tested it with my map and that's what it shows. |
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 1989 Location: United Kingdom
|
Posted: Wed Feb 07, 2007 2:04 pm Post subject: Re: Problem with LABELBGCOLOR statement |
|
|
| rasolama wrote: | OK I have this in my config file:
NODE node1170778408
LABEL xxx.xxx.xxx
LABELOFFSET S
LABELBGCOLOR 255 255 255
LABELOUTLINECOLOR 0 0 0
INFOURL http://xxx.xxx.xxx/cacti/graph_view.php?action=tree&tree_id=1&
But the graphic generates with just black text and now bgcolor box around it? Am I misunderstanding what this does? |
No you're not misunderstanding, that's what it should do Is there anything in the log about unrecognised config lines? (or any other errors, come to that).
Do you have a DEFAULT node with 'LABELBGCOLOR none'? I wonder if the logic for defaults is funny when you are setting the LABELBGCOLOR back to the default-default (which is white)... then again, if it works for streaker69... |
|
| Back to top |
|
 |
rasolama
Joined: 26 Jan 2007 Posts: 4
|
Posted: Wed Feb 07, 2007 2:31 pm Post subject: |
|
|
Nope I'm not getting the background or outline - just the black text...
Here is the complete config:
# Automatically generated by php-weathermap v0.82
BACKGROUND images/Okeefe_center_field.png
HTMLSTYLE overlib
TITLE Network Weathermap
KEYPOS 830 50 Traffic Load
TIMEPOS 800 20 Created: %b %d %Y %H:%M:%S
KEYTEXTCOLOR 0 0 0
KEYBGCOLOR 255 255 255
BGCOLOR 255 255 255
TITLECOLOR 0 0 0
TIMECOLOR 0 0 0
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
# End of global section
# DEFAULT definitions:
LINK DEFAULT
BANDWIDTH 100M
# End of DEFAULTS section
# Node definitions:
NODE node1170711698
LABEL gw.xxx.net
LABELOFFSET S
LABELBGCOLOR 255 255 255
LABELOUTLINECOLOR 0 0 0
INFOURL http://www.xxx.net/cacti/graph_view.php?action=tree&tree_id=1&
leaf_id=24
ICON images/cisco_router.png
POSITION 75 400
NODE node1170712022
LABEL es1.xxx.net
LABELOFFSET S
LABELBGCOLOR 255 255 255
LABELOUTLINECOLOR 0 0 0
INFOURL http://www.xxx.net/cacti/graph_view.php?action=tree&tree_id=1&
leaf_id=39
ICON images/cisco_switch.png
POSITION 450 400
NODE node1170773335
LABEL es2.xxx.net
LABELOFFSET S
LABELBGCOLOR 255 255 255
LABELOUTLINECOLOR 0 0 0
ICON images/cisco_switch.png
POSITION 750 400
NODE node1170773383
LABEL wl-1.xxx.net
LABELOFFSET S
LABELBGCOLOR 255 255 255
LABELOUTLINECOLOR 0 0 0
INFOURL http://www.xxx.net/cacti/graph_view.php?action=tree&tree_id=1&
leaf_id=23
ICON images/wifi.png
POSITION 75 640
NODE node1170778408
LABEL xxx.xxx.net
LABELOFFSET S
LABELBGCOLOR 255 255 255
LABELOUTLINECOLOR 0 0 0
INFOURL http://www.xxx.net/cacti/graph_view.php?action=tree&tree_id=1&
leaf_id=7
ICON images/pc2.png
POSITION 890 640
NODE node1170789454
LABEL Verizon
LABELOFFSET S
LABELBGCOLOR 255 255 255
LABELOUTLINECOLOR 0 0 0
ICON images/cloud.png
POSITION 75 54
# End of NODE section
# Link definitions:
LINK node1170711698-node1170712022
OVERLIBGRAPH http://www.xxx.net/cacti/graph_image.php?action=propertie
s&local_graph_id=711&rra_id=1&graph_start=0&graph_end=0
TARGET ../../rra/xxx_es1_traffic_in_719.rrd
NODES node1170711698 node1170712022
BANDWIDTH 3M 768K
LINK node1170712022-node1170773335
OVERLIBGRAPH http://www.xxx.net/cacti/graph_image.php?action=propertie
s&local_graph_id=711&rra_id=1&graph_start=0&graph_end=0
TARGET ../../rra/xxx_es1_traffic_in_720.rrd
NODES node1170712022 node1170773335
LINK node1170712022-node1170773383
OVERLIBGRAPH http://www.xxx.net/cacti/graph_image.php?action=propertie
s&local_graph_id=719&rra_id=1&graph_start=0&graph_end=0
TARGET ../../rra/xxx_es1_traffic_in_727.rrd
NODES node1170712022 node1170773383
LINK node1170773335-node1170778408
OVERLIBGRAPH http://www.xxx.net/cacti/graph_image.php?action=propertie
s&local_graph_id=738&rra_id=1&graph_start=0&graph_end=0
TARGET ../../rra/localhost_traffic_in_746.rrd
NODES node1170773335 node1170778408
LINK node1170789454-node1170711698
OVERLIBGRAPH http://www.xxx.net/cacti/graph_image.php?action=propertie
s&local_graph_id=546&rra_id=1&graph_start=0&graph_end=0
TARGET ../../rra/xxx_gw_traffic_in_545.rrd
NODES node1170789454 node1170711698
BANDWIDTH 1M
# End of LINK section
# That's All Folks! |
|
| Back to top |
|
 |
streaker69 Cacti Pro User
Joined: 27 Mar 2006 Posts: 633 Location: Psychic Amish Network Administrator
|
Posted: Wed Feb 07, 2007 2:44 pm Post subject: |
|
|
| If you have an image assigned to your nodes then you will not get the box around the name of the node. You'll only see the text. If you comment out your ICON from your config file and test it, you'll see what I mean. |
|
| Back to top |
|
 |
rasolama
Joined: 26 Jan 2007 Posts: 4
|
Posted: Wed Feb 07, 2007 2:47 pm Post subject: |
|
|
| streaker69 wrote: | | If you have an image assigned to your nodes then you will not get the box around the name of the node. You'll only see the text. If you comment out your ICON from your config file and test it, you'll see what I mean. |
Yeah I was wonderring about that - OK that makes sense - I'm not going nuts... thanks... |
|
| Back to top |
|
 |
|