Is this a bug or is it supposed to be that way?
Whenever I have a node in my cacti phpweathermap which has these properties:
ICON 60 15 box
TARGET cactihost:42
LABELBGCOLOR none
AICONOUTLINECOLOR 0 0 0
the box and the label background are both being drawn with the color defined by the target state. It seems that the "LABELBGCOLOR none" statement is being ignored for all nodes which have a TARGET. For nodes without a target it worrks as expected.
For small icons this means that the icon outline is being drawn over by the label background and the outline becomes partly invisible.
See the attached example image:
Label1: no TARGET statement, AICONFILLCOLOR none, LABELBGCOLOR none
Label2: no TARGET statement, AICONFILLCOLOR 0 255 255, LABELBGCOLOR none
Label3: TARGET cactihost:42, no AICONFILLCOLOR statement, LABELBGCOLOR none
Label4: no TARGET statement, AICONFILLCOLOR 0 255 255, LABELBGCOLOR 255 0 0
Label5: TARGET cactihost:42, no AICONFILLCOLOR statement, LABELBGCOLOR 255 0 0
It would be very useful to make the AICONFILLCOLOR change with the target state while being able to define a static LABELBGCOLOR (a color or "none").
LABELBGCOLOR none ignored?
Moderators: Developers, Moderators
-
- Posts: 9
- Joined: Wed Jan 26, 2011 4:14 am
LABELBGCOLOR none ignored?
- Attachments
-
- label.png (1.97 KiB) Viewed 1013 times
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Re: LABELBGCOLOR none ignored?
It's supposed to be that way, but I see your point!
AICONs are a 'new' thing in weathermap, and the rest of the code assumes that if you added a target, you'd want the label to change (because that was the only thing that could change until .97).
I agree that if you set a LABELBGCOLOR explicitly it would be good if it honoured that.
Obviously, the solution until then is to make those boxes a little bit bigger...
AICONs are a 'new' thing in weathermap, and the rest of the code assumes that if you added a target, you'd want the label to change (because that was the only thing that could change until .97).
I agree that if you set a LABELBGCOLOR explicitly it would be good if it honoured that.
Obviously, the solution until then is to make those boxes a little bit bigger...
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 1 guest