Error with "PING - Advanced Ping v1.3" graphs

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
arnakazim
Posts: 2
Joined: Tue Sep 29, 2020 8:49 am

Error with "PING - Advanced Ping v1.3" graphs

Post by arnakazim »

Hello,

I have upgraded a cacti 0.8.8b server to Cacti 1.2.14. My graphs survived the upgrade except for the "PING - Advanced Ping v1.3" ones. Data for this graph is fine but I get a RRDtool : ERROR: creating arguments.

The output of RRDtool is :

Code: Select all

RRDtool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start='-86400' \
--end='-300' \
--pango-markup  \
--title='AM - Advanced Ping' \
--vertical-label='milliseconds' \
--slope-mode \
--base=1000 \
--height=120 \
--width=500 \
--units-exponent=1 \
--tabwidth '30' \
--upper-limit='10' \
--lower-limit='0' \
--units-exponent='1' \
COMMENT:"From 28/09/2020 16\:08\:58 To 29/09/2020 16\:03\:58\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 Cacti' \
DEF:a='/var/www/cacti/rra/am_11504.rrd':'min':AVERAGE \
DEF:b='/var/www/cacti/rra/am_11504.rrd':'avg':AVERAGE \
DEF:c='/var/www/cacti/rra/am_11504.rrd':'max':AVERAGE \
DEF:d='/var/www/cacti/rra/am_11504.rrd':'loss':AVERAGE \
DEF:e='/var/www/cacti/rra/am_11504.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 = 2937 charaters.
RRDtool Says:
ERROR: creating arguments
If I copy paste the command directly in the debian console, the PNG is well generated though. Any idea from where this error can come from ?

Thanks in advance !
bmfmancini
Cacti User
Posts: 250
Joined: Wed Mar 13, 2019 3:37 pm
Location: toronto
Contact:

Re: Error with "PING - Advanced Ping v1.3" graphs

Post by bmfmancini »

What version or rrdtool are you using ?

rrdtool -v

Make sure that matches the version in the cacti settings
Telecom Lifer, Monitoring and performance enthusiast, Father, Husband

Cacti Bug Hunter and Member

www.seanmancini.com
sean(at)seanmancini.com
github.com/bmfmancini

My Cacti scripts and templates ( Non official)
Cacti install wizard https://github.com/bmfmancini/cacti-install-wizard
Cacti templates https://github.com/bmfmancini/Cacti-templates

Always willing to help!
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests