On 27 Apr 2014, at 16:56, Joachim Tingvold wrote:
- cd /usr/share/pyshared/graphite
python manage.py syncdb
Ah, needed some more things to get Graphite working as it should -- do these before step 5) in my previous email;
cat /etc/nav/graphite/storage-aggregation.conf > /etc/carbon/storage-aggregation.conf cat /etc/nav/graphite/storage-schemas.conf > /etc/carbon/storage-schemas.conf
Oh, also, if you want to start with a 'clean slate', you can do the following;
** WARNING -- WILL REMOVE ALL GRAPHITE + NAV-DATA **
/etc/init.d/nav stop; /etc/init.d/carbon-cache stop; /etc/init.d/apache2 stop rm -rf /var/lib/graphite/whisper/* rm /var/lib/graphite/graphite.db python /usr/share/pyshared/graphite/manage.py syncdb chown _graphite:_graphite /var/lib/graphite/graphite.db chmod o-r /var/lib/graphite/graphite.db su - postgres -c 'psql nav -c "truncate device, vlan, netbios cascade;"' /etc/init.d/carbon-cache start; /etc/init.d/nav start; /etc/init.d/apache2 start