You are not logged in.

#1 2011-09-20 20:01:40

ruurdkrekt
Member
Registered: 2010-03-14
Posts: 32

vnstati background color

Good evening,

Since today I am using vnStat 1.11 and the daemon is running smoothly on my Arch Linux install.
However when I try to create a graph with the vnstati command it returns a graph where the background color is being defined by the CText in the configuration file.

The problem with this is that the text itself will be the same color as the background and thus not readable.
I did try to set the background color to transparant, however this does not make any changes.

I did try prefixing the color codes with a # character only this does not matter. Also I tried using the -D parameter but this seemes to be fine.
Below I added the vnstati configuration, the command I use and the image it results into. To clarify things I made the CText red which should result in red text and not a red background.

Does someone had this before and can help me out?

# vnstati
##

# title timestamp format
HeaderFormat "%x %H:%M"

# show hours with rate (1 = enabled, 0 = disabled)
HourlyRate 1

# show rate in summary (1 = enabled, 0 = disabled)
SummaryRate 1

# layout of summary (1 = with monthly, 0 = without monthly)
SummaryLayout 1

# transparent background (1 = enabled, 0 = disabled)
TransparentBg 1

# image colors
CBackground     "000000"
CEdge           "AEAEAE"
CHeader         "606060"
CHeaderTitle    "FFFFFF"
CHeaderDate     "FFFFFF"
CText           "FF0000"
CLine           "B0B0B0"
CLineL          "-"
CRx             "92CF00"
CTx             "606060"
CRxD            "-"
CTxD            "-"
vnstati -i eth0 -s --config /etc/vnstat.conf -o /tmp/vnstati_s.png -D

vnstati_s.png

Offline

#2 2011-09-21 09:38:41

ruurdkrekt
Member
Registered: 2010-03-14
Posts: 32

Re: vnstati background color

I believe it has something to do with a conflicting package. I made a quick clean install on a virtual server and vnstati is outputting it's graphs like a charm. However on my normal server it still gives wrong background colours.

I did double check the GD library and it is the same on both machine, even the optional dependencies.
The only thing I could imagine was that maybe the seperate php-gd package could conflict with the normal GD package. However this did not seem to be the cause as when I uninstalled the php-gd package the images still had a wrong background color.

So far no solution yet, any help is appreciated.

Offline

#3 2011-09-21 15:09:35

ruurdkrekt
Member
Registered: 2010-03-14
Posts: 32

Re: vnstati background color

Good another status update.
The virtual server I quickly installed Arch on the see if the problem also would occur there totally doesn't have this problem.
I installed all the same packages that pacman -Q came up with.

So now the pacman -Q on the normal server gives exact the same output as the quickly installed server.

However the normal server still gives weird background colours and the quickly installed server seems to be perfectly fine.

Is there anywhere else I could look into, because I have seriously no clue any more ...

Offline

Board footer

Powered by FluxBB