Hi there,
i don't understand why the comment line(Test:) don't align with my other lines. I've created an example that shows up this issue. Each line has the same row number/titles (Name: Current: Average: Maximum). The only way to get this aligned was adding some whitespaces behind the comment line but this can't be the solution, i think
Some info about my System:
RRDTool 1.3.8-1 with Cacti 0.8.7e-1 on Debian.
Font is taken directly from Fontconfig, a strace gives me
"/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf" as used font.
rrdtool cmd:
/usr/bin/rrdtool graph - --imgformat=PNG --start=-86400 --end=-300 --title="Localhost - Memory Usage" --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 --vertical-label="kilobytes" --slope-mode --font TITLE:12: --font AXIS:8: --font LEGEND:9: --font UNIT:8: DEF:a="/var/lib/cacti/rra/localhost_mem_buffers_3.rrd":mem_buffers:AVERAGE DEF:b="/var/lib/cacti/rra/localhost_mem_swap_4.rrd":mem_swap:AVERAGE CDEF:cdefa=a,1024,* CDEF:cdefe=b,1024,* AREA:cdefa#FF4105FF:"Free" GPRINT:cdefa:LAST:"Current\:%8.2lf %s" GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n" AREA:cdefe#FFC73BFF:"Swap":STACK GPRINT:cdefe:LAST:"Current\:%8.2lf %s" GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s" GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s\n" COMMENT:"Test\:" GPRINTLAST:"Current\:%8.2lf %s" GPRINTAVERAGE:"Average\:%8.2lf %s" GPRINTMAX:"Maximum\:%8.2lf %s\n"
Cheers,
docwalez
Comment align problem
Moderators: Developers, Moderators
Comment align problem
- Attachments
-
- example.png (22.78 KiB) Viewed 1693 times
There is not a graphed item associated with Test:, thus its offset from the rest. Try adding a few spaces before Test: in the graph template.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Hello BSOD2600,BSOD2600 wrote:There is not a graphed item associated with Test:, thus its offset from the rest. Try adding a few spaces before Test: in the graph template.
thank's for your reply. I'm confused cause "Test:" has an association with [mem_buffers] in the graph template as shown on the screenshot. So, is the only suitable solution adding spaces bevor/after "Test:" COMMENT line ?
Greets,
Docwalez
- Attachments
-
- cacti2.jpeg (118.19 KiB) Viewed 1663 times
"Test:" is not a graph type of area or line, thus no colored box before the text.
Yes, you'll need to add some spaces before the text to help with the alignment.
Yes, you'll need to add some spaces before the text to help with the alignment.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Who is online
Users browsing this forum: No registered users and 3 guests