![](https://secure.gravatar.com/avatar/3ccbde21fda4c309b62528f985f99d60.jpg?s=120&d=mm&r=g)
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)"
![](https://secure.gravatar.com/avatar/3ccbde21fda4c309b62528f985f99d60.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/0fa97865a0e1ab36152b6b2299eedb49.jpg?s=120&d=mm&r=g)
You don't seem to have full filenames in your rrd command, which suggests you have broken the paths in the config.php.
Most issues like this are caused by people setting lots of config setting they don't really need to and breaking things.
Adam.
Sent from BlueMail
On 14 Mar 2018, 12:22, at 12:22, Arnoldo Vidal Bravo arnoldo.vidal@pucv.cl wrote:
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
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
![](https://secure.gravatar.com/avatar/3ccbde21fda4c309b62528f985f99d60.jpg?s=120&d=mm&r=g)
config.php
// Base directory $config['install_dir'] = "/opt/observium"; $config['temp_dir'] = "/tmp"; $config['html_dir'] = $config['install_dir'] . "/html"; $config['rrd_dir'] = $config['install_dir'] . "/rrd"; $config['rrdtool'] = "/usr/bin/rrdtool";
/usr/bin/rrdtool graph --daemon unix:/var/run/rrdcached/rrdcached.sock /tmp/d1Usx8pjwKymZpR5.png -Y --alt-autoscale --rigid --start 1520960840 --end 1521047240 --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 -u 100 -l 0 -E -b 1024 COMMENT:' Total Used Free( Min Max Avg)' COMMENT:'\l' DEF:332used=10.250.16.1/mempool-cisco-memory-pool-mib-1.rrd:used:AVERAGE DEF:332free=*10.250.16.1/mempool-cisco-memory-pool-mib-1.rrd http://10.250.16.1/mempool-cisco-memory-pool-mib-1.rrd*:free:AVERAGE CDEF:332size=332used,332free,+ CDEF:332perc=332used,332size,/,100,* CDEF:332percx=100,332perc,- AREA:332perc#74a9cf: LINE1.25:332perc#045a8d:'Processor ' GPRINT:332size:LAST:%6.2lf%sB GPRINT:332used:LAST:%6.2lf%sB GPRINT:332free:LAST:%6.2lf%sB GPRINT:332free:MIN:%5.2lf%sB GPRINT:332free:MAX:%5.2lf%sB GPRINT:332free:AVERAGE:%5.2lf%sB\n COMMENT:' ' GPRINT:332perc:LAST:'%5.2lf%% ' GPRINT:332percx:LAST:'%5.2lf%% ' GPRINT:332percx:MIN:'%5.2lf%% ' GPRINT:332percx:MAX:'%5.2lf%% ' GPRINT:332percx:AVERAGE:%5.2lf%%\n
i not see rrd/10.250.16.1....
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/process or-cpm-1000.rrd:usage:MIN DEF:ds0max=10.250.16.1/process or-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
![](https://secure.gravatar.com/avatar/0fa97865a0e1ab36152b6b2299eedb49.jpg?s=120&d=mm&r=g)
I'm not sure how this is broken. I would recommend replacing your config.php with the default and changing only the MySQL details.
Adam.
Sent from BlueMail
On 14 Mar 2018, 17:16, at 17:16, Arnoldo Vidal Bravo arnoldo.vidal@pucv.cl wrote:
config.php
// Base directory $config['install_dir'] = "/opt/observium"; $config['temp_dir'] = "/tmp"; $config['html_dir'] = $config['install_dir'] . "/html"; $config['rrd_dir'] = $config['install_dir'] . "/rrd"; $config['rrdtool'] = "/usr/bin/rrdtool";
/usr/bin/rrdtool graph --daemon unix:/var/run/rrdcached/rrdcached.sock /tmp/d1Usx8pjwKymZpR5.png -Y --alt-autoscale --rigid --start 1520960840 --end 1521047240 --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 -u 100 -l 0 -E -b 1024 COMMENT:' Total Used Free( Min Max Avg)' COMMENT:'\l' DEF:332used=10.250.16.1/mempool-cisco-memory-pool-mib-1.rrd:used:AVERAGE DEF:332free=*10.250.16.1/mempool-cisco-memory-pool-mib-1.rrd http://10.250.16.1/mempool-cisco-memory-pool-mib-1.rrd*:free:AVERAGE CDEF:332size=332used,332free,+ CDEF:332perc=332used,332size,/,100,* CDEF:332percx=100,332perc,- AREA:332perc#74a9cf: LINE1.25:332perc#045a8d:'Processor ' GPRINT:332size:LAST:%6.2lf%sB GPRINT:332used:LAST:%6.2lf%sB GPRINT:332free:LAST:%6.2lf%sB GPRINT:332free:MIN:%5.2lf%sB GPRINT:332free:MAX:%5.2lf%sB GPRINT:332free:AVERAGE:%5.2lf%sB\n COMMENT:' ' GPRINT:332perc:LAST:'%5.2lf%% ' GPRINT:332percx:LAST:'%5.2lf%% ' GPRINT:332percx:MIN:'%5.2lf%% ' GPRINT:332percx:MAX:'%5.2lf%% ' GPRINT:332percx:AVERAGE:%5.2lf%%\n
i not see rrd/10.250.16.1....
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
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/process or-cpm-1000.rrd:usage:MIN DEF:ds0max=10.250.16.1/process or-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
![](https://secure.gravatar.com/avatar/3ccbde21fda4c309b62528f985f99d60.jpg?s=120&d=mm&r=g)
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/process or-cpm-1000.rrd:usage:MIN DEF:ds0max=10.250.16.1/process or-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
![](https://secure.gravatar.com/avatar/11b54b3dd25b712395dab9818c67596f.jpg?s=120&d=mm&r=g)
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 [mailto: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 [mailto: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 [http://10.250.16.1/processor-cpm-1000.rrd:usage:AVERAGE] DEF:ds0min=10.250.16.1/processor-cpm-1000.rrd:usage:MIN [http://10.250.16.1/processor-cpm-1000.rrd:usage:MIN] DEF:ds0max=10.250.16.1/processor-cpm-1000.rrd:usage:MAX [http://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
![](https://secure.gravatar.com/avatar/7df3158a769df237e05d30792a8e20ec.jpg?s=120&d=mm&r=g)
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.clmailto: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.clmailto: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.clmailto: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:AVERAGEhttp://10.250.16.1/processor-cpm-1000.rrd:usage:AVERAGE DEF:ds0min=10.250.16.1/processor-cpm-1000.rrd:usage:MINhttp://10.250.16.1/processor-cpm-1000.rrd:usage:MIN DEF:ds0max=10.250.16.1/processor-cpm-1000.rrd:usage:MAXhttp://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.orgmailto:observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
![](https://secure.gravatar.com/avatar/11b54b3dd25b712395dab9818c67596f.jpg?s=120&d=mm&r=g)
It isn't related to the pathnames.
It's an rrdtool bug causing a segmentation fault. Find a different rrdtool version and it'll probably go away.
Unsurprisingly, rrdtool segmentation faults aren't anything we can do anything about.
adam. On 2018-03-16 16:18:30, Andrew Lemin andrewl@4d-dc.com wrote: 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 [mailto: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 [mailto: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 [mailto: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 [http://10.250.16.1/processor-cpm-1000.rrd:usage:AVERAGE] DEF:ds0min=10.250.16.1/processor-cpm-1000.rrd:usage:MIN [http://10.250.16.1/processor-cpm-1000.rrd:usage:MIN] DEF:ds0max=10.250.16.1/processor-cpm-1000.rrd:usage:MAX [http://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 [mailto:observium@observium.org] http://postman.memetic.org/cgi-bin/mailman/listinfo/observium [http://postman.memetic.org/cgi-bin/mailman/listinfo/observium]
![](https://secure.gravatar.com/avatar/7df3158a769df237e05d30792a8e20ec.jpg?s=120&d=mm&r=g)
Hi,
Thanks for confirming. I must have got my wires crossed when reading the other messages.
I will recompile the latest rrdtool from source and see if the issue persists.
Thanks, Andy.
________________________________ From: Adam Armstrong adama@observium.org Sent: 16 March 2018 17:56 To: observium@observium.org Subject: Re: [Observium] RRDTool problem
It isn't related to the pathnames.
It's an rrdtool bug causing a segmentation fault. Find a different rrdtool version and it'll probably go away.
Unsurprisingly, rrdtool segmentation faults aren't anything we can do anything about.
adam.
On 2018-03-16 16:18:30, Andrew Lemin andrewl@4d-dc.com wrote: 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.clmailto: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.clmailto: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.clmailto: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:AVERAGEhttp://10.250.16.1/processor-cpm-1000.rrd:usage:AVERAGE DEF:ds0min=10.250.16.1/processor-cpm-1000.rrd:usage:MINhttp://10.250.16.1/processor-cpm-1000.rrd:usage:MIN DEF:ds0max=10.250.16.1/processor-cpm-1000.rrd:usage:MAXhttp://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.orgmailto:observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
![](https://secure.gravatar.com/avatar/7df3158a769df237e05d30792a8e20ec.jpg?s=120&d=mm&r=g)
Hi Adam,
I had compiled the latest RRDTool (and RRDCached) about a month ago (so just before this), and I noticed that these "Error Drawing Graph" (which are sporadic) vanished after a couple days.
They only started to appear after enabling rrdcached, and then after a few days of rrdcached running we noticed they had started working on their own!
However it might have also been after the spike cleaning cron-job had run; for i in /opt/observium/rrd/*/*.rrd; do /usr/bin/php /opt/observium/scripts/removespikes.php --rrdfile=$i; done;
But generally speaking this does seem to be an rrdcahed oddity. Things are defintly better with the latest versions of RRD so compiling the latest is worthwhile :)
PS; Also is the spikes script safe when using rrdcached?
Cheers, Andy.
From: Andrew Lemin AndrewL@4d-dc.com Sent: 26 March 2018 10:13 To: observium@observium.org Subject: Re: [Observium] RRDTool problem
Hi,
Thanks for confirming. I must have got my wires crossed when reading the other messages.
I will recompile the latest rrdtool from source and see if the issue persists.
Thanks, Andy.
________________________________ From: Adam Armstrong <adama@observium.orgmailto:adama@observium.org> Sent: 16 March 2018 17:56 To: observium@observium.orgmailto:observium@observium.org Subject: Re: [Observium] RRDTool problem
It isn't related to the pathnames.
It's an rrdtool bug causing a segmentation fault. Find a different rrdtool version and it'll probably go away.
Unsurprisingly, rrdtool segmentation faults aren't anything we can do anything about.
adam.
On 2018-03-16 16:18:30, Andrew Lemin <andrewl@4d-dc.commailto:andrewl@4d-dc.com> wrote: 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.orgmailto:adama@observium.org> Sent: 15 March 2018 20:51 To: observium@observium.orgmailto: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.clmailto: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.clmailto: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.clmailto: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:AVERAGEhttp://10.250.16.1/processor-cpm-1000.rrd:usage:AVERAGE DEF:ds0min=10.250.16.1/processor-cpm-1000.rrd:usage:MINhttp://10.250.16.1/processor-cpm-1000.rrd:usage:MIN DEF:ds0max=10.250.16.1/processor-cpm-1000.rrd:usage:MAXhttp://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.orgmailto:observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
![](https://secure.gravatar.com/avatar/11b54b3dd25b712395dab9818c67596f.jpg?s=120&d=mm&r=g)
I'm not sure why you'd run that in cron, it seems a bit crazy!
I don't know if it's safe to use with rrdcached, it might be. rrdcached saves updates and pushes them to the disk-rrds, rather than storing copies of the changed rrd, so it's probably fine.
adam. On 2018-04-09 16:31:31, Andrew Lemin andrewl@4d-dc.com wrote: Hi Adam, I had compiled the latest RRDTool (and RRDCached) about a month ago (so just before this), and I noticed that these “Error Drawing Graph” (which are sporadic) vanished after a couple days. They only started to appear after enabling rrdcached, and then after a few days of rrdcached running we noticed they had started working on their own! However it might have also been after the spike cleaning cron-job had run; for i in /opt/observium/rrd/*/*.rrd; do /usr/bin/php /opt/observium/scripts/removespikes.php --rrdfile=$i; done; But generally speaking this does seem to be an rrdcahed oddity. Things are defintly better with the latest versions of RRD so compiling the latest is worthwhile J PS; Also is the spikes script safe when using rrdcached? Cheers, Andy. From: Andrew Lemin AndrewL@4d-dc.com Sent: 26 March 2018 10:13 To: observium@observium.org Subject: Re: [Observium] RRDTool problem Hi, Thanks for confirming. I must have got my wires crossed when reading the other messages. I will recompile the latest rrdtool from source and see if the issue persists. Thanks, Andy. From: Adam Armstrong <adama@observium.org [mailto:adama@observium.org]> Sent: 16 March 2018 17:56 To: observium@observium.org [mailto:observium@observium.org] Subject: Re: [Observium] RRDTool problem It isn't related to the pathnames.
It's an rrdtool bug causing a segmentation fault. Find a different rrdtool version and it'll probably go away. Unsurprisingly, rrdtool segmentation faults aren't anything we can do anything about. adam. On 2018-03-16 16:18:30, Andrew Lemin <andrewl@4d-dc.com [mailto:andrewl@4d-dc.com]> wrote: 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 [mailto:adama@observium.org]> Sent: 15 March 2018 20:51 To: observium@observium.org [mailto: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 [mailto: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 [mailto: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 [mailto: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 [http://10.250.16.1/processor-cpm-1000.rrd:usage:AVERAGE] DEF:ds0min=10.250.16.1/processor-cpm-1000.rrd:usage:MIN [http://10.250.16.1/processor-cpm-1000.rrd:usage:MIN] DEF:ds0max=10.250.16.1/processor-cpm-1000.rrd:usage:MAX [http://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 [mailto:observium@observium.org] http://postman.memetic.org/cgi-bin/mailman/listinfo/observium [http://postman.memetic.org/cgi-bin/mailman/listinfo/observium]
participants (4)
-
Adam Armstrong
-
Adam Armstrong
-
Andrew Lemin
-
Arnoldo Vidal Bravo