Background:
Old Cacti installation on Ubuntu 16.04 using Ubuntu distributed package. Believe it was 0.8.8f before upgrade.
Upgrade process was:
Backup database and rrd's (just in case).
comment out cron job
Git clone current to /var/www/html, set permissions..
edit config.php to match original
redirect rra -> /var/lib/cacti/rra
fix apache to point to new install
resolve dependency issues etc.
Let installation upgrade database....... fingers crossed..
seems to be mostly ok.
re-enable cron job with new paths
Wait a bit.. most stuff seems ok. using ubiquiti graph templates so all of that seems to have transited ok.
Fix issues with thold plugin (for reference - manually deleting all thold tables from database and re-installing the plugin worked)
Most devices have an advanced ping template, and was getting errors regarding the graph templates in the log files that suggested that cacti was using the old path to the ss_fping.php (/usr/share/cacti/site/....). To resolve (lazy) I renamed the old /usr/share/cacti/site and then symbolic linked /usr/share/cacti/site > /var/www/html/cacti so that the path would resolve to the new install.. errors went away from log. Now I just get:
RRDtool Says:
ERROR: don't understand 'c,b,-,e,-,3,/'
for all the Advanced Ping graphs. Complete graph debug below.
I've tried:
re-importing graph templates and data templates from a working 1.1.31 install and then deleting and re creating the graphs/data sources. Same issue/error with new graphs.
Not being any kind of graph template guru.. looking for any assistance.
Thoughts? /thanks
/rh
RRDtool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start='-180000' \
--end='-300' \
--pango-markup \
--title='Aiyana-Green - 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' \
--slope-mode \
--watermark 'Generated by Cacti®' \
DEF:a='/var/www/html/cacti/rra/aiyana-green_loss_3881.rrd':'min':AVERAGE \
DEF:b='/var/www/html/cacti/rra/aiyana-green_loss_3881.rrd':'avg':AVERAGE \
DEF:d='/var/www/html/cacti/rra/aiyana-green_loss_3881.rrd':'max':AVERAGE \
DEF:e='/var/www/html/cacti/rra/aiyana-green_loss_3881.rrd':'loss':AVERAGE \
DEF:f='/var/www/html/cacti/rra/aiyana-green_loss_3881.rrd':'dev':AVERAGE \
CDEF:cdefh='d,0,GT,d,2,GT,UNKN,INF,IF,UNKN,IF' \
CDEF:cdefi='d,3,GT,d,5,GT,UNKN,INF,IF,UNKN,IF' \
CDEF:cdefj='d,5,GT,d,10,GT,UNKN,INF,IF,UNKN,IF' \
CDEF:cdefk='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:cdefbd='d,95,GT,d,100,GT,UNKN,INF,IF,UNKN,IF' \
CDEF:cdefbf='e,2,/' \
CDEF:cdefbh='c,b,-,e,-,3,/' \
CDEF:cdefda='b,a,-,0.2,*' \
CDEF:cdefdi='d,0,GT,d,2,GT,UNKN,a,IF,UNKN,IF' \
CDEF:cdefdj='d,3,GT,d,5,GT,UNKN,a,IF,UNKN,IF' \
CDEF:cdefdk='d,5,GT,d,10,GT,UNKN,a,IF,UNKN,IF' \
CDEF:cdefea='d,10,GT,d,15,GT,UNKN,a,IF,UNKN,IF' \
CDEF:cdefeb='d,15,GT,d,50,GT,a,INF,IF,UNKN,IF' \
CDEF:cdefed='d,50,GT,d,95,GT,UNKN,a,IF,UNKN,IF' \
CDEF:cdefee='d,95,GT,d,100,GT,UNKN,a,IF,UNKN,IF' \
LINE1'' \
LINE1'' \
LINE1:d:'' \
LINE1:e:'' \
LINE1:f:'' \
COMMENT:' Pkt Loss\:' \
AREA:cdefh#AFECEDFF:'1-2' \
AREA:cdefi#55D6D3FF:'3-5' \
AREA:cdefj#7CB3F1FF:'6-10' \
AREA:cdefk#4668E4FF:'11-15' \
AREA:cdefba#A150AAFF:'16-50' \
AREA:cdefbb#FF00FFFF:'51-95' \
AREA:cdefbd#F51D30FF:'96-100\n' \
AREA:b#FFFFFFFF:'' \
AREA:cdefbf#333333FF:'':STACK \
AREA:cdefbf#555555FF:'':STACK \
AREA:cdefbh#888888FF:'':STACK \
AREA:cdefbh#AAAAAAFF:'':STACK \
AREA:cdefbh#CCCCCCFF:'':STACK \
AREA:a#FFFFFFFF:'' \
AREA:cdefda#CCCCCCFF:'':STACK \
AREA:cdefda#AAAAAAFF:'':STACK \
AREA:cdefda#888888FF:'':STACK \
AREA:cdefda#555555FF:'':STACK \
AREA:cdefda#333333FF:'':STACK \
GPRINT:e:AVERAGE:' Avg Loss\:%6.2lf%%' \
GPRINT:e:MAX:'Max Loss\:%6.2lf%%\n' \
AREA:cdefdi#AFECEDFF:'' \
AREA:cdefdj#55D6D3FF:'' \
AREA:cdefdk#7CB3F1FF:'' \
AREA:cdefea#4668E4FF:'' \
AREA:cdefeb#A150AAFF:'' \
AREA:cdefed#FF00FFFF:'' \
AREA:cdefee#F51D30FF:'' \
COMMENT:' Latency\:' \
GPRINTAVERAGE:'Min\:%8.2lf ms' \
GPRINTAVERAGE:'Avg\:%8.2lf ms' \
GPRINT:d:MAX:'Max\:%8.2lf ms' \
GPRINT:f:AVERAGE:'Dev\:%8.2lf ms\n' \
COMMENT:'Avg Latency\:' \
GPRINTAVERAGE:'Min\:%8.2lf ms' \
GPRINTAVERAGE:'Avg\:%8.2lf ms' \
GPRINT:d:MAX:'Max\:%8.2lf ms' \
GPRINT:f:AVERAGE:'Dev\:%8.2lf ms\n' \
LINE1:b#00BD27FF:''
RRDtool Says:
ERROR: don't understand 'c,b,-,e,-,3,/'
Graph template issue after Upgrading from Ubuntu distro
Moderators: Developers, Moderators
-
- Posts: 19
- Joined: Mon Dec 05, 2011 11:31 am
-
- Posts: 19
- Joined: Mon Dec 05, 2011 11:31 am
Re: Graph template issue after Upgrading from Ubuntu distro
Looks like this is the same as viewtopic.php?f=21&t=58378 I just muddied it up with an upgrade all the way from 0.8.8f.
/rh
/rh
Re: Graph template issue after Upgrading from Ubuntu distro
I can see that the C definition is missing so I would agree. If you can manual make the minor modification of adding the 'c' back into the array and taking out the 'k', that should resolve things for you.
Cacti Developer & Release Manager
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
-
- Posts: 19
- Joined: Mon Dec 05, 2011 11:31 am
Re: Graph template issue after Upgrading from Ubuntu distro
I copied the generate_graph_def_name() function from an earlier build and it resolved the issue.
/rh
/rh
Re: Graph template issue after Upgrading from Ubuntu distro
FYI, v1.1.33 is now out which corrects this issue and will automatically add zz in front of CF DEF and CDEF values to ensure that they aren't being used as variable names.
Cacti Developer & Release Manager
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Who is online
Users browsing this forum: No registered users and 0 guests