[rrd-users] unreadable strings from RRDTools charts
Hello all, I did a setup of Collectd in a VM with OpenBSD 6 installed to collect data and write to RRD files (RRDTool). Everything seems to be running OK, but all my attempts of generating charts are resulting into something like this: https://www.dropbox.com/s/uudpcujsgbbtrfe/salompas_spo_virtua_com_br_cpu-0_cpu-system.png?dl=0 It's a bit hard to describe (there is a data curve at right, small because I'm running for a few minutes only), but it seems all strings that were supposed to be there were replaced by rectangles. I tried generating charts from all 3 Perl solutions available in the Collectd contrib tarball and also with rrdscout (Python based), all producing the same results. If I would have to guess, I would say it is something with RRDTool libs and/or graphic related libs. I tried to follow up all requirements from RRDTool website, installed them over OpenBSD (even though the related package didn't required them), but results remain the same. That is happening for all resources I'm monitoring (CPU, load and memory). I can share the RRD files if necessary, this is for a free software project anyway (https://github.com/glasswalk3r/cpan-openbsd-smoker). Please let me know if any of you already experimented this kind of problem. Thanks in advance, Alceu ___ rrd-users mailing list rrd-users@lists.oetiker.ch https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
Re: [rrd-users] How to generate nicely formatted columns in the legend graph?
>> Quick question, how can I create nice columns that won't mess up the layout >> if numbers increment or decrements? Something like this: >> http://martybugs.net/linux/rrdtool/images/traffic_detail.png >> >> I'm not trying stuff like here below, but it doesn't handle changing values, >> the columns shift position then... > > As you've found out ... it's tricky sometimes. > Make sure that your labels are all the same length - so pad out "User" and > "System" so they are the same length as "User (nice)". Then make sure that > all your value formats are of sufficient length that all values you might see > will fit in the given size of display format. Between them, I find that these > will line up the columns nicely, except ... > > The biggest problem I find is getting the column headers to line up. I end up > using trial and error to get the column headers "near enough" as no matter > what I do, I have never managed to get them to line up exactly - as there's > no label (like there is for the data lines), that throws the origin of the > text off and the rest goes off as well. In addition to padding out the the text you should use Pango markup (you might have to specify arg for this) and make all the GRPINT output use fixed-width font by adding tags... 57 "LINE1:cpu_user_avg$RED:User\: "\ 58 "GPRINT:cpu_user_avg:AVERAGE:%3.1lf" \ You can also pad to the left of the numbers by increasing the number eg %8.1f will leave quite a large space to the left of the value allowing you to make your columns consistent. A bit of trial and error, but play around and see what looks nice. Cheers, Jacques ___ rrd-users mailing list rrd-users@lists.oetiker.ch https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
Re: [rrd-users] How to generate nicely formatted columns in the legend graph?
K. de Jong wrote: > Quick question, how can I create nice columns that won't mess up the layout > if numbers increment or decrements? Something like this: > http://martybugs.net/linux/rrdtool/images/traffic_detail.png > > I'm not trying stuff like here below, but it doesn't handle changing values, > the columns shift position then... As you've found out ... it's tricky sometimes. Make sure that your labels are all the same length - so pad out "User" and "System" so they are the same length as "User (nice)". Then make sure that all your value formats are of sufficient length that all values you might see will fit in the given size of display format. Between them, I find that these will line up the columns nicely, except ... The biggest problem I find is getting the column headers to line up. I end up using trial and error to get the column headers "near enough" as no matter what I do, I have never managed to get them to line up exactly - as there's no label (like there is for the data lines), that throws the origin of the text off and the rest goes off as well. ___ rrd-users mailing list rrd-users@lists.oetiker.ch https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users