summaryrefslogtreecommitdiff
path: root/src/flufigut.py
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2014-10-09 18:45:07 +0200
committerChristian Pointner <equinox@spreadspace.org>2014-10-09 18:45:07 +0200
commit4ad734a5aa2664e7af0cd758d03dcaf19b20c668 (patch)
treede818ad78c0d1b372c0281538b8358c13414c757 /src/flufigut.py
parentadded missing templates and a new minimal example (diff)
the rrd plug is now optional
Diffstat (limited to 'src/flufigut.py')
-rwxr-xr-xsrc/flufigut.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/flufigut.py b/src/flufigut.py
index 31a2262..f2ddf90 100755
--- a/src/flufigut.py
+++ b/src/flufigut.py
@@ -333,8 +333,6 @@ if output_format == 'flumotion':
'desc': "%s streamer for %s %s-%s (part %i of %s cluster)" % (stream[cluster]['type'], mux_name, format, profile, idx+1, cluster),
'worker': stream_worker,
'feeder': feeder,
- 'rrd_clients' : "%s/%s_clients.rrd" % (globals['rrd-dir'], name),
- 'rrd_bytes' : "%s/%s_bytes.rrd" % (globals['rrd-dir'], name),
'properties': {
'description': globals['description'],
'type': 'slave',
@@ -346,6 +344,11 @@ if output_format == 'flumotion':
'port': port,
}
}
+ if 'rrd-dir' in globals.keys():
+ flow['streamer'][name]['rrd_dir'] = globals['rrd-dir'], name
+ flow['streamer'][name]['rrd_clients'] = "%s/%s_clients.rrd" % (globals['rrd-dir'], name)
+ flow['streamer'][name]['rrd_bytes'] = "%s/%s_bytes.rrd" % (globals['rrd-dir'], name)
+
for prop in stream[cluster]:
if prop == 'max-con':
flow['streamer'][name]['properties']['client-limit'] = stream[cluster][prop]