I am seeing a similar issue. I played around with changing the colors and no matter what I set, I always get the same transparent graph with black text regardless of what color options are set. However, when I run the command on the CLI I get an image that looks like what I would expect.  


Our set up is running on Ubuntu 20.04 with rrdtool 1.7.2, and


From CLI



From Observium



CLI Command:


/usr/bin/rrdtool graph --daemon observium-host /tmp/yVz9aBNpnEKLcZwJ.png -Y --alt-autoscale --rigid -c BACK#00000000 -c SHADEA#00000000 -c SHADEB#00000000 -c FONT#CCCCCC -c CANVAS#00000000 -c GRID#ffffff00 -c MGRID#ffffff10 -c FRAME#CCCCCC -c AXIS#BBBBBB -c ARROW#BBBBBB -R normal --font LEGEND:8:'DroidSansMono,DejaVuSansMono' --font AXIS:7:'DroidSansMono,DejaVuSansMono' --font-render-mode normal --dynamic-labels -E COMMENT:'Bits/s Last Avg Max 95th \n' DEF:outoctets=switch/port-558.rrd:OUTOCTETS:AVERAGE DEF:inoctets=switch/port-558.rrd:INOCTETS:AVERAGE DEF:outoctets_max=switch/port-558.rrd:OUTOCTETS:MAX DEF:inoctets_max=switch/port-558.rrd:INOCTETS:MAX CDEF:alloctets=outoctets,inoctets,+ CDEF:wrongin=alloctets,UN,INF,UNKN,IF CDEF:wrongout=wrongin,-1,* CDEF:octets=inoctets,outoctets,+ CDEF:doutoctets=outoctets,-1,* CDEF:outbits=outoctets,8,* CDEF:outbits_max=outoctets_max,8,* CDEF:doutoctets_max=outoctets_max,-1,* CDEF:doutbits=doutoctets,8,* CDEF:doutbits_max=doutoctets_max,8,* CDEF:inbits=inoctets,8,* CDEF:inbits_max=inoctets_max,8,* VDEF:totin=inoctets,TOTAL VDEF:totout=outoctets,TOTAL VDEF:tot=octets,TOTAL VDEF:95thin=inbits,95,PERCENT VDEF:95thout=outbits,95,PERCENT CDEF:pout_tmp=doutbits,-1,* VDEF:dpout_tmp=pout_tmp,95,PERCENT CDEF:dpout_tmp2=doutbits,doutbits,-,dpout_tmp,-1,*,+ VDEF:d95thout=dpout_tmp2,FIRST AREA:inbits#84BB5C LINE1.25:inbits#357F44:'In ' GPRINT:inbits:LAST:%6.2lf%s GPRINT:inbits:AVERAGE:%6.2lf%s GPRINT:inbits_max:MAX:%6.2lf%s GPRINT:95thin:%6.2lf%s COMMENT:\n AREA:doutbits#7394CB LINE1.25:doutbits#284C7F:'Out' GPRINT:outbits:LAST:%6.2lf%s GPRINT:outbits:AVERAGE:%6.2lf%s GPRINT:outbits_max:MAX:%6.2lf%s GPRINT:95thout:%6.2lf%s COMMENT:\n HRULE:95thin#aa0000 HRULE:d95thout#aa0000 GPRINT:tot:'Total %6.2lf%s' GPRINT:totin:'(In %6.2lf%s' GPRINT:totout:'Out %6.2lf%s)\l' AREA:wrongin#FF000020 AREA:wrongout#FF000020 --start 1707797737 --end 1707884137 --width 1158 --height 300


From: Adam Armstrong via observium <observium@lists.observium.org>
Sent: Thursday, January 11, 2024 11:46:21 AM
To: Observium; Wolf Noble via observium
Cc: Wolf Noble; Adam Armstrong
Subject: [Observium] Re: dark ui image legend legibility
 
I have no idea then.

Theme "mode" is set in index.php:

    if (!isset($_SESSION['mode']) || $_SESSION['mode'] != $config['themes'][$_SESSION['theme']]['type']) {
        $_SESSION['mode'] = $config['themes'][$_SESSION['theme']]['type'];
    }

I can't see a lot of scope for that not to work, especially since no one else has really reported it.

adam.


Wolf Noble via observium wrote on 2024-01-11 01:13:
heya Adam!



observium@whatsup:~$ svn up
Updating '.':
At revision 13253.
observium@whatsup:~$ svn status
?       .bash_history
?       .gnupg
?       .selected_editor
?       .subversion
?       .viminfo
?       devicedata.sh
?       graphs
?       hist
?       obs_agent.tar.gz
?       observium_agent_xinetd
M       scripts/observium_agent_xinetd
?       snmpwalk_aruba_ap.txt
?       wplGenClientTarball.sh
?       wplOpCache.php
?       wplUpdateObservium.sh
?       wpl_version
observium@whatsup:~$

Nothing particularly surprising here.... 

any suggestions?



Wolf Noble
Hoof & Paw
loiosh@wolfspaw.com

-=[ This message has been composed and transmitted with 100% recycled electrons ]=-

On Jan 9, 2024, at 15:03, Adam Armstrong via observium <observium@lists.observium.org> wrote:

These graphs should all have white text.

Do you have any local modifications?

What does "svn status" show?

adam.

Wolf Noble via observium wrote on 2024-01-04 21:05:
Hi Adam,

I'm referring to the datapoint name/value text in graphs, in case the descriptor 'legend' is being overloaded here and means something different to you, than to me ;)

see attached imagery for examples ;) 

is there something else I should check here? [yes, I know py2 is icky. working with tkl to get an updated observium appliance into their pipeline, as this one's somewhat old....



hope yer doing awesomely.
W


Wolf Noble
Hoof & Paw
loiosh@wolfspaw.com

-=[ This message has been composed and transmitted with 100% recycled electrons ]=-

On Jan 4, 2024, at 12:18, Adam Armstrong via observium <observium@lists.observium.org> wrote:

All my graphs have white legends.

Adam

Sent from my iPhone

On 4 Jan 2024, at 18:05, Wolf Noble via observium <observium@lists.observium.org> wrote:


Howdy, all!


is there some voodoo necessary to coerce observium to generate graphs with textual legends that aren't black when dark mode is active? it's kinda hard to view black text on dark blue backgrounds :)

I don't see an obvious knob for this, but it's entirely possible I'm just missing the "legend text color" or "make graph text legible in dark mode" or "learn to read" button somewhere :)

[= The contents of this message have been written, read, processed, erased, sorted, sniffed, compressed, rewritten, misspelled, overcompensated, lost, found, and most importantly delivered entirely with recycled electrons =]
_______________________________________________
observium mailing list -- observium@lists.observium.org
To unsubscribe send an email to observium-leave@lists.observium.org
_______________________________________________
observium mailing list -- observium@lists.observium.org
To unsubscribe send an email to observium-leave@lists.observium.org



_______________________________________________
observium mailing list -- observium@lists.observium.org
To unsubscribe send an email to observium-leave@lists.observium.org

_______________________________________________
observium mailing list -- observium@lists.observium.org
To unsubscribe send an email to observium-leave@lists.observium.org



_______________________________________________
observium mailing list -- observium@lists.observium.org
To unsubscribe send an email to observium-leave@lists.observium.org