Code: Select all
46 def create_bandwidth_db(directory, name='bandwidth.rrd'):
47 '''Creates the bandwidth DB for the source'''
48 rrdtool.create( os.path.join(directory, name),
49 '--no-overwrite',
50 '--step', '300',
51 'DS:flows:GAUGE:600:0:U',
52 'DS:bytes:GAUGE:600:0:U',
53 'DS:packets:GAUGE:600:0:U',
54 'DS:bps:GAUGE:600:0:U',
55 'DS:pps:GAUGE:600:0:U',
56 'DS:bpp:GAUGE:600:0:U',
57 'RRA:AVERAGE:0.5:1:17531',
58 'RRA:AVERAGE:0.5:12:4380',
59 'RRA:AVERAGE:0.5:288:365',
60 'RRA:HWPREDICT:1440:0.1:0.0035:288' )
Code: Select all
ERROR:root:unknown option '--no-overwrite'
Traceback (most recent call last):
File "./test_init.py", line 61, in create_bandwidth_db
'RRA:HWPREDICT:1440:0.1:0.0035:288' )
error: unknown option '--no-overwrite'
RRD Tool failed: unknown option '--no-overwrite'