File python-carbon-path.patch of Package python-carbon

Index: carbon-1.1.5/conf/carbon.conf.example
===================================================================
--- carbon-1.1.5.orig/conf/carbon.conf.example
+++ carbon-1.1.5/conf/carbon.conf.example
@@ -30,6 +30,12 @@
 #
 #LOCAL_DATA_DIR = /opt/graphite/storage/whisper/
 
+# SUSE:
+STORAGE_DIR    = /var/lib/graphite/storage/
+LOCAL_DATA_DIR = /var/lib/graphite/storage/whisper/
+CONF_DIR       = /etc/graphite/
+LOG_DIR        = /var/log/graphite/storage/
+
 # Specify the database library used to store metric data on disk. Each database
 # may have configurable options to change the behaviour of how it writes to
 # persistent storage.
@@ -310,9 +316,10 @@ WHISPER_FALLOCATE_CREATE = True
 # BIND_PATTERNS = #
 
 # URL of graphite-web instance, this is used to add incoming series to the tag database
-# GRAPHITE_URL = http://127.0.0.1:80
+GRAPHITE_URL = http://127.0.0.1:8000
 
 # Tag support, when enabled carbon will make HTTP calls to graphite-web to update the tag index
+# Suse: Disable for Icinga2 because graphaite-web will not use.
 # ENABLE_TAGS = True
 
 # Tag update interval, this specifies how frequently updates to existing series will trigger
Index: carbon-1.1.5/distro/redhat/init.d/carbon-aggregator
===================================================================
--- carbon-1.1.5.orig/distro/redhat/init.d/carbon-aggregator
+++ carbon-1.1.5/distro/redhat/init.d/carbon-aggregator
@@ -11,7 +11,7 @@ if [ -e /etc/rc.d/init.d/functions ]; th
 fi;
 
 CARBON_DAEMON="aggregator"
-GRAPHITE_DIR="/opt/graphite"
+GRAPHITE_DIR="/var/lib/graphite"
 INSTANCES=`grep "^\[${CARBON_DAEMON}" ${GRAPHITE_DIR}/conf/carbon.conf | cut -d \[ -f 2 | cut -d \] -f 1 | cut -d : -f 2`
 
 function die {
Index: carbon-1.1.5/distro/redhat/init.d/carbon-cache
===================================================================
--- carbon-1.1.5.orig/distro/redhat/init.d/carbon-cache
+++ carbon-1.1.5/distro/redhat/init.d/carbon-cache
@@ -9,7 +9,7 @@ if [ -e /etc/rc.d/init.d/functions ]; th
 fi;
 
 CARBON_DAEMON="cache"
-GRAPHITE_DIR="/opt/graphite"
+GRAPHITE_DIR="/var/lib/graphite"
 INSTANCES=`grep "^\[${CARBON_DAEMON}" ${GRAPHITE_DIR}/conf/carbon.conf | cut -d \[ -f 2 | cut -d \] -f 1 | cut -d : -f 2`
 
 export PYTHONPATH="$GRAPHITE_DIR/lib:$PYTHONPATH"
Index: carbon-1.1.5/distro/redhat/init.d/carbon-relay
===================================================================
--- carbon-1.1.5.orig/distro/redhat/init.d/carbon-relay
+++ carbon-1.1.5/distro/redhat/init.d/carbon-relay
@@ -11,7 +11,7 @@ if [ -e /etc/rc.d/init.d/functions ]; th
 fi;
 
 CARBON_DAEMON="relay"
-GRAPHITE_DIR="/opt/graphite"
+GRAPHITE_DIR="/var/lib/graphite"
 INSTANCES=`grep "^\[${CARBON_DAEMON}" ${GRAPHITE_DIR}/conf/carbon.conf | cut -d \[ -f 2 | cut -d \] -f 1 | cut -d : -f 2`
 
 function die {
Index: carbon-1.1.5/conf/storage-schemas.conf.example
===================================================================
--- carbon-1.1.5.orig/conf/storage-schemas.conf.example
+++ carbon-1.1.5/conf/storage-schemas.conf.example
@@ -29,6 +29,15 @@
 pattern = ^carbon\.
 retentions = 60:90d
 
+# Icinga2 checked every 1 minute
+#[icinga2_metadata]
+#pattern = ^icinga2\..*\.metadata\.
+#retentions = 1m:2d,5m:10d,30m:90d,360m:4y
+
+#[icinga2_perfdata]
+#pattern = ^icinga2\..*\.perfdata\.
+#retentions = 1m:2d,5m:10d,30m:90d,360m:4y
+
 [default]
 pattern = .*
 retentions = 60s:1d,5m:30d,1h:3y
openSUSE Build Service is sponsored by