summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.md10
-rw-r--r--src/plugins/influxdb-writer.c2
2 files changed, 9 insertions, 3 deletions
diff --git a/README.md b/README.md
index 0cb3a7b..16dec1e 100644
--- a/README.md
+++ b/README.md
@@ -14,10 +14,16 @@ cmake .. && make
```bash
# openSUSE installation instructions
# For other distro, see docs: https://portal.influxdata.com/downloads
-wget https://dl.influxdata.com/influxdb/releases/influxdb-1.5.1.x86_64.rpm
-sudo zypper in ./influxdb-1.5.1.x86_64.rpm
+wget https://dl.influxdata.com/influxdb/releases/influxdb-1.7.6.x86_64.rpm
+sudo zypper in ./influxdb-1.7.6.x86_64.rpm
# ignore warnings and force install
+# OR
+sudo zypper ar https://download.opensuse.org/repositories/server:/database/openSUSE_Leap_15.0/server:database.repo
+sudo zypper ref
+sudo zypper in influxdb
+
+# Manually start influxdb service
sudo systemctl daemon-reload
sudo systemctl start influxdb
sudo systemctl status influxdb
diff --git a/src/plugins/influxdb-writer.c b/src/plugins/influxdb-writer.c
index e22c2bd..2856865 100644
--- a/src/plugins/influxdb-writer.c
+++ b/src/plugins/influxdb-writer.c
@@ -66,7 +66,7 @@ static void serialize_list_to_query(char *query, struct list *node, const char *
}
if(json_object_is_type(node->value, json_type_string))
- concatenate(query, json_object_get_string(node->value), "=");
+ concatenate_str(query, json_object_get_string(node->value), "=");
else
concatenate(query, json_object_to_json_string(node->value), "=");
node = node->next;