search for: ovirt_collectd

Displaying 4 results from an estimated 4 matches for "ovirt_collectd".

2010 Oct 26
0
[PATCH node] add collectd.py
...e 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, collectd_conf, collectd_conf) + sed = subpro...
2009 May 28
2
[PATCH node] correctly use collectd udp dns entry
...ectd_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" = "AUTO" ]; then if [ -z "$OVIRT_COLLECTD_SERVER" -o -z "$OVIRT_COLLECTD_PORT" ]; then printf "\nAttempting to locate remote collectd server..." - find_srv collectd tcp + find_srv collectd udp if [ -n "$SRV_SERVER" -a -n "$SRV_PORT" ]; then printf &qu...
2009 Sep 07
1
[PATCH node] Fix SRV_SERVER for SRV_HOST to work with /etc/init.d/ovirt-functions
...ged, 6 insertions(+), 6 deletions(-) diff --git a/scripts/ovirt-config-collectd b/scripts/ovirt-config-collectd index 4ad877e..1474bf5 100755 --- a/scripts/ovirt-config-collectd +++ b/scripts/ovirt-config-collectd @@ -98,9 +98,9 @@ if [ "$1" = "AUTO" ]; then if [ -z "$OVIRT_COLLECTD_SERVER" -o -z "$OVIRT_COLLECTD_PORT" ]; then printf "\nAttempting to locate remote collectd server..." find_srv collectd udp - if [ -n "$SRV_SERVER" -a -n "$SRV_PORT" ]; then - printf "found! Using collectd server...
2009 Jun 30
2
[PATCH node] Make all yes/no prompts consistent. rhbz#508778
...[:upper:]]') - if [ "$r" == "Y" ]; then - printf "\nSaving configuration.\n" - if [[ -n "$collectd_server_ip" ]] && - [[ -n "$collectd_server_port" ]]; then - ovirt_collectd $collectd_server_ip \ - $collectd_server_port - fi - return - elif [ "$r" == "N" ]; then - printf "\nRestarting collectd configuration.\n" - break - elif [ "$r...