plugin_weathermap icon indicating copy to clipboard operation
plugin_weathermap copied to clipboard

Lower border of text boxes not drawn

Open nicolatron opened this issue 2 years ago • 7 comments

Before imagen imagen

After imagen imagen

Relevant config

NODE urano
        LABEL Urano
        LABELOFFSET N90
        NOTES urano
        POSITION 100 70
        ICON 100 110 rbox
AICONFILLCOLOR 220 220 220
AICONOUTLINECOLOR 255 0 0
        MAXVALUE 500000
[...]
NODE urano-cpu
        LABEL CPU {node:this:bandwidth_in:%d}%

        LABELFONTCOLOR contrast
        POSITION urano 0 -20
        TARGET gauge:/opt/cacti/rra/urano_fgsyscpuusage_2886.rrd:fgSysCpuUsage:-
        OVERLIBGRAPH /cacti/graph_image.php?local_graph_id=2102&rra_id=0&graph_nologend=true&graph_height=100&graph_width=300
        INFOURL /cacti/graph.php?rra_id=all&local_graph_id=2102
        MAXVALUE 100


NODE urano-sesiones
        LABEL {node:this:bandwidth_in:%d} sess
        LABELFONTCOLOR contrast
        POSITION urano 0 1
        TARGET gauge:/opt/cacti/rra/urano_session_count_2881.rrd:Session_Count:-
        OVERLIBGRAPH /cacti/graph_image.php?local_graph_id=2098&rra_id=0&graph_nologend=true&graph_height=100&graph_width=300
        INFOURL /cacti/graph.php?rra_id=all&local_graph_id=2098
        MAXVALUE 500000


NODE urano-memoria
        LABEL mem: {node:this:inpercent:%d}%
        LABELFONTCOLOR contrast
        POSITION urano 0 22
        TARGET gauge:/opt/cacti/rra/urano_fgsysmemusage_2887.rrd:fgSysMemUsage:-
        OVERLIBGRAPH /cacti/graph_image.php?local_graph_id=2103&rra_id=0&graph_nologend=true&graph_height=100&graph_width=300
        INFOURL /cacti/graph.php?rra_id=all&local_graph_id=2103
        MAXVALUE 100


NODE urano-rate
        LABEL sess/sec {node:this:bandwidth_in:%d}
        LABELFONTCOLOR contrast
        POSITION urano 0 43
        TARGET gauge:/opt/cacti/rra/urano_sess_setup_rate_1m_2882.rrd:Sess_setup_rate_1m:-
        OVERLIBGRAPH /cacti/graph_image.php?local_graph_id=2099&rra_id=0&graph_nologend=true&graph_height=100&graph_width=300
        INFOURL /cacti/graph.php?rra_id=all&local_graph_id=2099
        MAXVALUE 5000
[...]
NODE root
        LABEL root
        LABELOFFSET N90
        LABELFONTCOLOR contrast
        POSITION urano 200 0
        ICON 100 30 rbox
AICONFILLCOLOR 220 220 220
AICONOUTLINECOLOR 255 0 0
        MAXVALUE 500000
[...]
NODE root-sess
        LABEL {node:this:bandwidth_in:%d} sess
        LABELFONTCOLOR contrast
        POSITION root 0 0
        TARGET gauge:/opt/cacti/rra/urano_fgipsessnumber_3887.rrd:fgIpSessNumber:-
        OVERLIBGRAPH /cacti/graph_image.php?local_graph_id=3194&rra_id=0&graph_nologend=true&graph_height=100&graph_width=300
        INFOURL /cacti/graph.php?rra_id=all&local_graph_id=3194
        MAXVALUE 500000

Before

commit 4b816254defcc4a372c8b232d349180d78f0edf5 (HEAD -> develop, origin/develop, origin/HEAD)
Author: thurban <[email protected]>
Date:   Thu Jan 7 10:08:54 2021 +0100

    Remove CSS changes in favour of latest Map-Scrolling fix

SUSE Linux Enterprise Server 15 SP2 RRDtool 1.7.0 PHP 7.4.6

After

commit 2e3e4aa90e5c436a63c6d3f65dc6aa29c9c32bdd (HEAD -> develop, origin/develop, origin/HEAD)
Author: TheWitness <[email protected]>
Date:   Sat Feb 4 21:18:30 2023 -0500

    Updating CHANGELOG and README

Debian GNU/Linux 11 RRDtool 1.7.2 PHP 7.4.33

nicolatron avatar Feb 06 '23 08:02 nicolatron

Looks off by a pixel. Thanks for the examples.

TheWitness avatar Feb 06 '23 12:02 TheWitness

Kind of weird. When I first dropped them in my config, they rendered fine, then I went to switch a few things up and now I'm here:

image

Crazy you can not Group/UnGroup from the UI.

TheWitness avatar Feb 07 '23 00:02 TheWitness

I dropped some very mild changes in my repo. The math looks correct between versions. Maybe get more time by the end of the week.

TheWitness avatar Feb 07 '23 01:02 TheWitness

@nicolatron, any changes on your end?

TheWitness avatar Feb 24 '23 10:02 TheWitness

@TheWitness No change, same behaviour. This is with cacti-1.2.23 and

git log -1
commit f005cf4a43509d6d836ef91216b88ad4eda8537c (HEAD -> develop, origin/develop, origin/HEAD)
Author: TheWitness <[email protected]>
Date:   Fri Feb 24 17:07:07 2023 -0500

    Fixing #97 - Boost Auto-Detect
    
    Auto-set the boost setting instead of making it a discrete user setting

nicolatron avatar Feb 27 '23 14:02 nicolatron

@TheWitness I've run some tests, on my side. And I think I missed relevant information in my config file. I think it's related with the font size (and maybe family?). I'm using this:

FONTDEFINE 100 /opt/cacti/plugins/weathermap/docs/example/Vera.ttf 8
FONTDEFINE 101 /opt/cacti/plugins/weathermap/docs/example/Vera.ttf 7
[...]
NODE DEFAULT
        MAXVALUE 100
        LABELFONT 100
        LABELFONTCOLOR contrast

With that (same config as first post, same results) I get: imagen

If I remove the FONTDEFINE 100 /opt/cacti/plugins/weathermap/docs/example/Vera.ttf 8 It renders ok: imagen

With font size 9 FONTDEFINE 100 /opt/cacti/plugins/weathermap/docs/example/Vera.ttf 9 It renders ok: imagen

With font size 10 FONTDEFINE 100 /opt/cacti/plugins/weathermap/docs/example/Vera.ttf 10 I get the same result you had (some ok, but last node not OK): imagen

nicolatron avatar Feb 27 '23 15:02 nicolatron

We are also facing the same issue. Please tell me if you need information to help you troubleshoot.

Luth1ng avatar May 10 '23 11:05 Luth1ng