ERROR: creating arguments

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

slyab
Posts: 11
Joined: Thu Feb 09, 2023 4:01 am

Re: ERROR: creating arguments

Post by slyab »

macan wrote: Mon Feb 13, 2023 4:15 am Please post here the full rrd command in text format instead of image

Code: Select all

RRDtool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start='-86400' \
--end='-300' \
--pango-markup  \
--title='bras-gpn112.w.66p.su(bras-mrch) - Advanced Ping' \
--vertical-label='milliseconds' \
--slope-mode \
--base=1000 \
--height=200 \
--width=900 \
--units-exponent=1 \
--tabwidth '30' \
--upper-limit='10' \
--lower-limit='0' \
--units-exponent='1' \
COMMENT:"From 2023/02/12 15\:06\:21 To 2023/02/13 15\:01\:21\c" \
COMMENT:"  \n" \
--color BACK#F3F3F3 \
--color CANVAS#FDFDFD \
--color SHADEA#CBCBCB \
--color SHADEB#999999 \
--color FONT#000000 \
--color AXIS#2C4D43 \
--color ARROW#2C4D43 \
--color FRAME#2C4D43 \
--border 1 \
--font TITLE:11:'Arial' \
--font AXIS:8:'Arial' \
--font LEGEND:8:'Courier' \
--font UNIT:8:'Arial' \
--font WATERMARK:6:'Arial' \
--slope-mode \
--watermark 'Generated by 66p' \
DEF:a='/usr/share/cacti/site/rra/bras-gpn112_w_66p_su_min_2921.rrd':'min':AVERAGE \
DEF:b='/usr/share/cacti/site/rra/bras-gpn112_w_66p_su_min_2921.rrd':'avg':AVERAGE \
DEF:c='/usr/share/cacti/site/rra/bras-gpn112_w_66p_su_min_2921.rrd':'max':AVERAGE \
DEF:d='/usr/share/cacti/site/rra/bras-gpn112_w_66p_su_min_2921.rrd':'loss':AVERAGE \
DEF:e='/usr/share/cacti/site/rra/bras-gpn112_w_66p_su_min_2921.rrd':'dev':AVERAGE \
CDEF:cdefg='d,0,GT,d,2,GT,UNKN,INF,IF,UNKN,IF' \
CDEF:cdefh='d,3,GT,d,5,GT,UNKN,INF,IF,UNKN,IF' \
CDEF:cdefi='d,5,GT,d,10,GT,UNKN,INF,IF,UNKN,IF' \
CDEF:cdefj='d,10,GT,d,15,GT,UNKN,INF,IF,UNKN,IF' \
CDEF:cdefba='d,15,GT,d,50,GT,UNKN,INF,IF,UNKN,IF' \
CDEF:cdefbb='d,50,GT,d,95,GT,UNKN,INF,IF,UNKN,IF' \
CDEF:cdefbc='d,95,GT,d,100,GT,UNKN,INF,IF,UNKN,IF' \
CDEF:cdefbd='d,UN,1,EQ,TIME,300,+,NOW,GT,UNKN,INF,IF,d,95,GT,INF,UNKN,IF,IF' \
CDEF:cdefbf='e,2,/' \
CDEF:cdefbh='c,b,-,e,-,3,/' \
CDEF:cdefcd='d,0,GT,d,2,GT,UNKN,b,IF,UNKN,IF' \
CDEF:cdefce='d,3,GT,d,5,GT,UNKN,b,IF,UNKN,IF' \
CDEF:cdefzzcf='d,5,GT,d,10,GT,UNKN,b,IF,UNKN,IF' \
CDEF:cdefcg='d,10,GT,d,15,GT,UNKN,b,IF,UNKN,IF' \
CDEF:cdefch='d,15,GT,d,50,GT,b,INF,IF,UNKN,IF' \
CDEF:cdefci='d,50,GT,d,95,GT,UNKN,b,IF,UNKN,IF' \
CDEF:cdefcj='d,95,GT,d,100,GT,UNKN,b,IF,UNKN,IF' \
LINE1:a: \
LINE1:b: \
LINE1:c: \
LINE1:d: \
LINE1:e: \
COMMENT:'   Pkt Loss\:'  \
AREA:cdefg#AFECEDFF:'1-2%'  \
AREA:cdefh#55D6D3FF:'3-5%'  \
AREA:cdefi#7CB3F1FF:'6-10%'  \
AREA:cdefj#4668E4FF:'11-15%'  \
AREA:cdefba#A150AAFF:'16-50%'  \
AREA:cdefbb#FF00FFFF:'51-95%'  \
AREA:cdefbc#F51D30FF:'96-100%'  \
COMMENT:'Unknown\n'  \
AREA:b#FFFFFFFF:  \
AREA:cdefbf#333333FF::STACK \
AREA:cdefbf#555555FF::STACK \
AREA:cdefbh#888888FF::STACK \
AREA:cdefbh#AAAAAAFF::STACK \
AREA:cdefbh#CCCCCCFF::STACK \
GPRINT:d:AVERAGE:'   Avg Loss\:%6.2lf%%'  \
GPRINT:d:MAX:'Max Loss\:%6.2lf%%\n'  \
COMMENT:'    Latency\:'  \
AREA:cdefcd#AFECEDFF:  \
AREA:cdefce#55D6D3FF:  \
AREA:cdefzzcf#7CB3F1FF:  \
AREA:cdefcg#4668E4FF:  \
AREA:cdefch#A150AAFF:  \
AREA:cdefci#FF00FFFF:  \
AREA:cdefcj#F51D30FF:  \
GPRINT:a:AVERAGE:'Min\:%8.2lf ms'  \
GPRINT:b:AVERAGE:'Avg\:%8.2lf ms'  \
GPRINT:c:MAX:'Max\:%8.2lf ms'  \
GPRINT:e:AVERAGE:'Dev\:%8.2lf ms\n'  \
COMMENT:'Avg Latency\:'  \
LINE1:b#00BD27FF:'
'

RRDtool Command lengths = 2953 characters.

RRDtool Says:

ERROR: creating arguments

User avatar
macan
Cacti Guru User
Posts: 1137
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: ERROR: creating arguments

Post by macan »

On your command is on the last line useless apostroph:
COMMENT:'Avg Latency\:' \
LINE1:b#00BD27FF:'
'

RRDtool Command lengths = 2953 characters.

Normal cacti 1.2.23 output:
LINE1:a#002A97FF: \
LINE1:b#E41B17FF:

RRDtool Command lengths = 4740 characters.

RRDtool Says:

OK

Is there really useless apostroph in rrd command tool output? I cannot reproduce this on my cacti.
Let the Cacti grow!
slyab
Posts: 11
Joined: Thu Feb 09, 2023 4:01 am

Re: ERROR: creating arguments

Post by slyab »

macan wrote: Thu Feb 16, 2023 9:48 am On your command is on the last line useless apostroph:
COMMENT:'Avg Latency\:' \
LINE1:b#00BD27FF:'
'

RRDtool Command lengths = 2953 characters.

Normal cacti 1.2.23 output:
LINE1:a#002A97FF: \
LINE1:b#E41B17FF:

RRDtool Command lengths = 4740 characters.

RRDtool Says:

OK

Is there really useless apostroph in rrd command tool output? I cannot reproduce this on my cacti.
This is the correct apostrophe becouse If I enter this command with this apostrophe to the console(bash), then I see PNG binary output:

Code: Select all

<89>PNG
^Z
^@^@^@^MIHDR^@^@^C<EB>^@^@^A^B^@^@^@<A0><D9><FD>A^@^@^@^FbKGD^@<FF>^@<FF>^@<FF><A0><BD><A7><93>^@^@ ^@IDATx<9C><EC>}y\^TG<DA><FF>^C
<8E>^H*<97><88>"<C3>)^B^B^B*<F1>D^L<F1>J֘<C4>ݬ1<BB><D9>^X7&<EE>^Zs<B8><EF><BE>q<AF>^\j<B2>yݨ1^Z<B3>ESC<CD><C6>$<AE>96&<9B><C4>D^C^^(ވ^B<82><A0>^N<B7><8A><C0>
if i enter command without this apostrophe i see ">" symbol - bash is waiting for closing apostrophe.
User avatar
macan
Cacti Guru User
Posts: 1137
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: ERROR: creating arguments

Post by macan »

Have you this problem with all graphs or only with specific device?
Let the Cacti grow!
slyab
Posts: 11
Joined: Thu Feb 09, 2023 4:01 am

Re: ERROR: creating arguments

Post by slyab »

macan wrote: Wed Feb 22, 2023 2:28 am Have you this problem with all graphs or only with specific device?
With all graphs.
User avatar
macan
Cacti Guru User
Posts: 1137
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: ERROR: creating arguments

Post by macan »

Could you please post here one rrd file and relevant rrd command?
Or send it to pm@kostax.cz
Let the Cacti grow!
slyab
Posts: 11
Joined: Thu Feb 09, 2023 4:01 am

Re: ERROR: creating arguments

Post by slyab »

macan wrote: Wed Feb 22, 2023 6:09 am Could you please post here one rrd file and relevant rrd command?
Or send it to pm@kostax.cz
See attachments.
Attachments
rrdtool.txt
(2.85 KiB) Downloaded 20 times
bras-gpn112_w_66p_su_min_2921.rrd.gz
(95.93 KiB) Downloaded 19 times
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: ERROR: creating arguments

Post by TheWitness »

Try upgrading to 1.2.24 released today. If SVG Graphs wont display, try switching the Templates to PNG and see if that works better.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
macan
Cacti Guru User
Posts: 1137
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: ERROR: creating arguments

Post by macan »

Sample of my rrdtool command:
LINE1:a#FF0000FF:'AVG Load all cores' \

You can delete title of LINE1
LINE1:a#FF0000FF:'' \
or
LINE1:a#FF0000FF: \

I don't know rrdtool deeply, but your end is strange for me. It seems that there is white space \n:
COMMENT:'Avg Latency\:' \
LINE1:b#00BD27FF:'
'


I can generate RRD from your data without any issues

Show result of commands "rrdtool version"
If you are using linux, show "type rrdtool"
And check COnfiguration -> settings -> paths your rrdtool path
And on General tab rrdtool version
Let the Cacti grow!
slyab
Posts: 11
Joined: Thu Feb 09, 2023 4:01 am

Re: ERROR: creating arguments

Post by slyab »

macan wrote: Tue Feb 28, 2023 11:00 am Sample of my rrdtool command:
LINE1:a#FF0000FF:'AVG Load all cores' \

You can delete title of LINE1
LINE1:a#FF0000FF:'' \
or
LINE1:a#FF0000FF: \
Sorry, but where should I do this?
macan wrote: Tue Feb 28, 2023 11:00 am I don't know rrdtool deeply, but your end is strange for me. It seems that there is white space \n:
COMMENT:'Avg Latency\:' \
LINE1:b#00BD27FF:'
'
But i did nothing manualy. To clarify, I installed a new version of cacti on a new OS, moved the database from production server, and followed the web-based installation wizard on new cacti instance.

macan wrote: Tue Feb 28, 2023 11:00 am I can generate RRD from your data without any issues
Perhaps did you mean generate PNG from RRD? I have trouble with this, not generate RRD.
And If yes, where did you generated it? If I do this (generate PNG from rrd via rrdtool) in the cli in linux, I don't get the error either. I wrote about it early.
macan wrote: Tue Feb 28, 2023 11:00 am Show result of commands "rrdtool version"
If you are using linux, show "type rrdtool"

Code: Select all

$ which rrdtool 
/usr/bin/rrdtool

$ /usr/bin/rrdtool --version
RRDtool 1.7.2  Copyright by Tobias Oetiker <tobi@oetiker.ch>
               Compiled Dec  7 2020 18:39:00

Usage: rrdtool [options] command command_options
Valid commands: create, update, updatev, graph, graphv,  dump, restore,
		last, lastupdate, first, info, list, fetch, tune,
		resize, xport, flushcached

RRDtool is distributed under the Terms of the GNU General
Public License Version 2. (www.gnu.org/copyleft/gpl.html)

For more information read the RRD manpages

macan wrote: Tue Feb 28, 2023 11:00 am And check COnfiguration -> settings -> paths your rrdtool path
And on General tab rrdtool version
The same path (/usr/bin/rrdtool) in paths tab and version 1.7.2+ in select box in general tab
Last edited by slyab on Sun Mar 05, 2023 6:34 am, edited 1 time in total.
slyab
Posts: 11
Joined: Thu Feb 09, 2023 4:01 am

Re: ERROR: creating arguments

Post by slyab »

TheWitness wrote: Mon Feb 27, 2023 4:00 pm Try upgrading to 1.2.24 released today. If SVG Graphs wont display, try switching the Templates to PNG and see if that works better.
I did it, but nothing changes... :(
User avatar
macan
Cacti Guru User
Posts: 1137
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: ERROR: creating arguments

Post by macan »

Try to update rrdtools (maybe all installed packages) and change rrd version 1.8 in cacti settings.

Which os and PHP version?
Let the Cacti grow!
slyab
Posts: 11
Joined: Thu Feb 09, 2023 4:01 am

Re: ERROR: creating arguments

Post by slyab »

macan wrote: Tue Mar 07, 2023 11:08 am Try to update rrdtools (maybe all installed packages) and change rrd version 1.8 in cacti settings.

Which os and PHP version?

Code: Select all

 cat /etc/debian_version 
12.0

 php -v
PHP 8.2.2 (cli) (built: Feb  7 2023 11:27:52) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.2, Copyright (c) Zend Technologies
    with Zend OPcache v8.2.2, Copyright (c), by Zend Technologies
slyab
Posts: 11
Joined: Thu Feb 09, 2023 4:01 am

Re: ERROR: creating arguments

Post by slyab »

macan wrote: Tue Mar 07, 2023 11:08 am Try to update rrdtools (maybe all installed packages) and change rrd version 1.8 in cacti settings.

Which os and PHP version?
I try to compile rrdtool1.8 from source but i can't because compile error. And i dont know what should i do...
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest