Hi,

 

We have the exact same issue! But it seems sporadic for us.

 

When we have rrdcached enabled with ‘$config['rrdcached'] = "unix:/var/run/rrdcached.sock";’, the rrdtool command also shows relative locations for the rrd’s.

 

However the relative path cannot be the problem as it does work most of the time!

Here you can see below, they are both the same (they both use relative paths vs the full path).

 

I went onto the server and ran the command on the cli ( the one which results in “Error Drawing Graph”, and it works perfectly! The created .png file is fine ).

 

Adam, I assume that it is Observium which is building this command string. And I have checked our config.php and I am very confident it is correct as the only variable which defines any path relating to rrd’s is the above rrdcached one. I cannot even see a variable in the default incudes config.php so not sure where you are getting this path from to help debug this? – But as mentioned the relative path doesn’t seem to matter.

 

A Broken Example;

/usr/bin/rrdtool graph --daemon unix:/var/run/rrdcached.sock /tmp/iBrQCuiKe8wazHXV.png -Y --alt-autoscale --rigid --start 1521129804 --end 1521216204 --width 1152 --height 300 -c BACK#EEEEEE00 -c SHADEA#EEEEEE00 -c SHADEB#EEEEEE00 -c FONT#000000 -c CANVAS#FFFFFF00 -c GRID#a5a5a5 -c MGRID#FF9999 -c FRAME#5e5e5e -c ARROW#5e5e5e -R normal --font LEGEND:8:'DroidSansMono,DejaVuSansMono' --font AXIS:7:'DroidSansMono,DejaVuSansMono' --font-render-mode normal -E COMMENT:'bps Current Average Maximum ' COMMENT:'\l' DEF:in0=byf-dsw-1/port-10617.rrd:INOCTETS:AVERAGE DEF:out0=byf-dsw-1/port-10617.rrd:OUTOCTETS:AVERAGE CDEF:inB0=in0,8,* CDEF:outB0=out0,8,* CDEF:outB0_neg=outB0,-1,* CDEF:octets0=inB0,outB0,+ VDEF:totin0=inB0,TOTAL VDEF:totout0=outB0,TOTAL VDEF:tot0=octets0,TOTAL AREA:inB0#B6D14B:'byf-dsw-1 <' GPRINT:inB0:LAST:%6.2lf%sb GPRINT:inB0:AVERAGE:%6.2lf%sb GPRINT:inB0:MAX:%6.2lf%sb 'COMMENT:\n' 'HRULE:0#A0A0E5:Gi2/0/17 >' GPRINT:outB0:LAST:%6.2lf%sb GPRINT:outB0:AVERAGE:%6.2lf%sb GPRINT:outB0:MAX:%6.2lf%sb 'COMMENT:\n' CDEF:inoctets=in0,UN,0,in0,IF CDEF:outoctets=out0,UN,0,out0,IF CDEF:doutoctets=outoctets,-1,* CDEF:inbits=inoctets,8,* CDEF:outbits=outoctets,8,* CDEF:doutbits=doutoctets,8,* VDEF:95thin=inbits,95,PERCENT VDEF:95thout=outbits,95,PERCENT CDEF:pout_tmp=doutbits,-1,* VDEF:dpout_tmp=pout_tmp,95,PERCENT CDEF:dpout_tmp2=doutbits,doutbits,-,dpout_tmp,-1,*,+ VDEF:d95thout=dpout_tmp2,FIRST VDEF:totin=inoctets,TOTAL VDEF:totout=outoctets,TOTAL 'COMMENT: \n' 'COMMENT:Aggregate Totals\n' GPRINT:totin:'%6.2lf%sB' 'COMMENT: <' GPRINT:inbits:LAST:%6.2lf%sb GPRINT:inbits:AVERAGE:%6.2lf%sb GPRINT:inbits:MAX:%6.2lf%sb\n GPRINT:totout:'%6.2lf%sB' 'COMMENT: >' GPRINT:outbits:LAST:%6.2lf%sb GPRINT:outbits:AVERAGE:%6.2lf%sb GPRINT:outbits:MAX:%6.2lf%sb\n 'AREA:outB0_neg#A0A0E5:' HRULE:0#999999

 

 

A Working Example;

/usr/bin/rrdtool graph --daemon unix:/var/run/rrdcached.sock /tmp/RoAeToUGujvdx8xs.png -Y --alt-autoscale --rigid --start 1521126939 --end 1521213339 --width 1152 --height 300 -c BACK#EEEEEE00 -c SHADEA#EEEEEE00 -c SHADEB#EEEEEE00 -c /usr/bin/rrdtool graph --daemon unix:/var/run/rrdcached.sock /tmp/eoA1LNF9Y58i6QgC.png -Y --alt-autoscale --rigid --start 1521127347 --end 1521213747 --width 1152 --height 300 -c BACK#EEEEEE00 -c SHADEA#EEEEEE00 -c SHADEB#EEEEEE00 -c FONT#000000 -c CANVAS#FFFFFF00 -c GRID#a5a5a5 -c MGRID#FF9999 -c FRAME#5e5e5e -c ARROW#5e5e5e -R normal --font LEGEND:8:'DroidSansMono,DejaVuSansMono' --font AXIS:7:'DroidSansMono,DejaVuSansMono' --font-render-mode normal -E COMMENT:'bps Current Average Maximum ' COMMENT:'\l' DEF:in0=lgw-dsw-1/port-11104.rrd:INOCTETS:AVERAGE DEF:out0=lgw-dsw-1/port-11104.rrd:OUTOCTETS:AVERAGE CDEF:inB0=in0,8,* CDEF:outB0=out0,8,* CDEF:outB0_neg=outB0,-1,* CDEF:octets0=inB0,outB0,+ VDEF:totin0=inB0,TOTAL VDEF:totout0=outB0,TOTAL VDEF:tot0=octets0,TOTAL AREA:inB0#B6D14B:'lgw-dsw-1 <' GPRINT:inB0:LAST:%6.2lf%sb GPRINT:inB0:AVERAGE:%6.2lf%sb GPRINT:inB0:MAX:%6.2lf%sb 'COMMENT:\n' 'HRULE:0#A0A0E5:Gi3/0/4 >' GPRINT:outB0:LAST:%6.2lf%sb GPRINT:outB0:AVERAGE:%6.2lf%sb GPRINT:outB0:MAX:%6.2lf%sb 'COMMENT:\n' DEF:in1=lgw-dsw-1/port-11604.rrd:INOCTETS:AVERAGE DEF:out1=lgw-dsw-1/port-11604.rrd:OUTOCTETS:AVERAGE CDEF:inB1=in1,8,* CDEF:outB1=out1,8,* CDEF:outB1_neg=outB1,-1,* CDEF:octets1=inB1,outB1,+ VDEF:totin1=inB1,TOTAL VDEF:totout1=outB1,TOTAL VDEF:tot1=octets1,TOTAL AREA:inB1#A4C445:'lgw-dsw-1 <':STACK GPRINT:inB1:LAST:%6.2lf%sb GPRINT:inB1:AVERAGE:%6.2lf%sb GPRINT:inB1:MAX:%6.2lf%sb 'COMMENT:\n' 'HRULE:0#9090D3:Gi4/0/4 >' GPRINT:outB1:LAST:%6.2lf%sb GPRINT:outB1:AVERAGE:%6.2lf%sb GPRINT:outB1:MAX:%6.2lf%sb 'COMMENT:\n' CDEF:inoctets=in0,UN,0,in0,IF,in1,UN,0,in1,IF,+ CDEF:outoctets=out0,UN,0,out0,IF,out1,UN,0,out1,IF,+ CDEF:doutoctets=outoctets,-1,* CDEF:inbits=inoctets,8,* CDEF:outbits=outoctets,8,* CDEF:doutbits=doutoctets,8,* VDEF:95thin=inbits,95,PERCENT VDEF:95thout=outbits,95,PERCENT CDEF:pout_tmp=doutbits,-1,* VDEF:dpout_tmp=pout_tmp,95,PERCENT CDEF:dpout_tmp2=doutbits,doutbits,-,dpout_tmp,-1,*,+ VDEF:d95thout=dpout_tmp2,FIRST VDEF:totin=inoctets,TOTAL VDEF:totout=outoctets,TOTAL 'COMMENT: \n' 'COMMENT:Aggregate Totals\n' GPRINT:totin:'%6.2lf%sB' 'COMMENT: <' GPRINT:inbits:LAST:%6.2lf%sb GPRINT:inbits:AVERAGE:%6.2lf%sb GPRINT:inbits:MAX:%6.2lf%sb\n GPRINT:totout:'%6.2lf%sB' 'COMMENT: >' GPRINT:outbits:LAST:%6.2lf%sb GPRINT:outbits:AVERAGE:%6.2lf%sb GPRINT:outbits:MAX:%6.2lf%sb\n 'AREA:outB0_neg#A0A0E5:' 'AREA:outB1_neg#9090D3::STACK' HRULE:0#999999

 

 

Thanks, Andy.

 

 

From: Adam Armstrong <adama@observium.org>
Sent: 15 March 2018 20:51
To: observium@observium.org
Subject: Re: [Observium] RRDTool problem

 

Oh. That explains the truncated filenames.

 

The issue seems to be related to the rrdtool binary. This is, of course, not written by us! :D

 

Probably installing a different version of rrdtool will remove whatever the issue is.

 

adam.

On 2018-03-15 14:38:58, Arnoldo Vidal Bravo <arnoldo.vidal@pucv.cl> wrote:

the source of  problem was founded

 

On config.php when I comment 

 

#$config['rrdcached']    = "unix:/var/run/rrdcached/rrdcached.sock";

 

rdd command show complete path, /opt/observium/rrd/DEVICE/....rrd 

 

but when it is not comment 

 

$config['rrdcached']    = "unix:/var/run/rrdcached/rrdcached.sock";

 

rdd command show path, DEVICE/.... rrd file

 

please helpme to config rightly service rrdcached

 

 vi /etc/sysconfig/rrdcached

 

# Configuration file for the rrdcached service.

 

#

# User service will run as

#

RRDCACHED_USER="rrdcache"

 

#

# To pass additional options, set OPTIONS here

#

OPTIONS="-w 1800 -z 1800 -f 3600  -l unix:/var/run/rrdcached/rrdcached.sock  -F -b /opt/observium/rrd/ -B"

 

 

#

# Socket permissions

#

SOCKPERMS=0660

 

 

2018-03-14 9:22 GMT-03:00 Arnoldo Vidal Bravo <arnoldo.vidal@pucv.cl>:

I got new information... rrdtool works, only when i execute tool in the rrd directory work. But rrdtool not update files in device's subdirectory.

 

2018-03-13 13:15 GMT-03:00 Arnoldo Vidal Bravo <arnoldo.vidal@pucv.cl>:

i have lastest version of observium on centos 6.9 (updated), but i can't execute command 

 

/usr/bin/rrdtool graph --daemon unix:/var/run/rrdcached/rrdcached.sock /tmp/deaGEezkxp3ZEtS3.png -Y --lower-limit 0 --upper-limit 100 --start 1520865855 --end 1520952255 --width 1152 --height 300 -c BACK#EEEEEE00 -c SHADEA#EEEEEE00 -c SHADEB#EEEEEE00 -c FONT#000000 -c CANVAS#FFFFFF00 -c GRID#a5a5a5 -c MGRID#FF9999 -c FRAME#5e5e5e -c ARROW#5e5e5e -R normal --font LEGEND:8:'DroidSansMono,DejaVuSansMono' --font AXIS:7:'DroidSansMono,DejaVuSansMono' --font-render-mode normal -E COMMENT:'Usage ' COMMENT:' Now' COMMENT:' Avg' COMMENT:' Min' COMMENT:' Max' COMMENT:'\l' DEF:ds0=10.250.16.1/processor-cpm-1000.rrd:usage:AVERAGE DEF:ds0min=10.250.16.1/processor-cpm-1000.rrd:usage:MIN DEF:ds0max=10.250.16.1/processor-cpm-1000.rrd:usage:MAX LINE1.25:ds0#1f78b4:'Switch 1 ' GPRINT:ds0:LAST:%6.1lf%s GPRINT:ds0:AVERAGE:%6.1lf%s GPRINT:ds0min:MIN:%6.1lf%s GPRINT:ds0max:MAX:%6.1lf%s COMMENT:'\l' HRULE:0#555555 

 

system return "Segmentation fault (core dumped)"

 

 

--

Saluda cordialmente

 



 

--

Saluda cordialmente

 



 

--

Saluda cordialmente

 

_______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium