Displaying 3 results from an estimated 3 matches for "collectd_conf".
2009 Sep 08
2
[PATCH node] Add support for automatic remote logging on PXE ovirt-node
...-a -n "$SRV_PORT" ]; then
krb5_conf=/etc/krb5.conf
@@ -43,21 +46,7 @@ start() {
log "skipping ovirt-awake, oVirt identify service not available"
fi
- find_srv collectd udp
- if [ -n "$SRV_HOST" -a -n "$SRV_PORT" ]; then
- collectd_conf=/etc/collectd.conf
- if [ -f $collectd_conf.in ]; then
- sed -e "s/@COLLECTD_SERVER@/$SRV_HOST/" \
- -e "s/@COLLECTD_PORT@/$SRV_PORT/" \
- -e "/<Plugin rrdtool>/,/<\/Plugin>/d" $collectd_conf.in \
-...
2010 Oct 26
0
[PATCH node] add collectd.py
...ripts/collectd.py b/scripts/collectd.py
new file mode 100755
index 0000000..729f3a9
--- /dev/null
+++ b/scripts/collectd.py
@@ -0,0 +1,40 @@
+#!/usr/bin/python
+#
+# Configures the collectd daemon.
+
+import os
+import sys
+from ovirtfunctions import *
+from subprocess import Popen, PIPE, STDOUT
+
+collectd_conf="/etc/collectd.conf"
+
+def ovirt_collectd(server, port):
+ if os.path.exists(collectd_conf + ".in"):
+ sed_cmd = "sed -e \"s/@COLLECTD_SERVER@/%s/\" \
+ -e \"s/@COLLECTD_PORT@/%s/\" %s.in \
+ > %s" % (server, port...
2009 May 28
2
[PATCH node] correctly use collectd udp dns entry
...755
--- a/scripts/ovirt
+++ b/scripts/ovirt
@@ -43,7 +43,7 @@ start() {
log "skipping ovirt-awake, oVirt identify service not available"
fi
- find_srv collectd tcp
+ find_srv collectd udp
if [ -n "$SRV_HOST" -a -n "$SRV_PORT" ]; then
collectd_conf=/etc/collectd.conf
if [ -f $collectd_conf.in ]; then
diff --git a/scripts/ovirt-config-collectd b/scripts/ovirt-config-collectd
index e509e54..236ddaa 100755
--- a/scripts/ovirt-config-collectd
+++ b/scripts/ovirt-config-collectd
@@ -92,7 +92,7 @@ prompt_user() {
if [ "$1" = &qu...