graph_category tahoe
graph_info This graph shows the number of directory nodes hosted by this vdrive server
dirnodes.label dirnodes
-dirnodes.draw LINE2"""
+dirnodes.draw LINE2
+"""
if len(sys.argv) > 1:
if sys.argv[1] == "config":
- print configinfo
+ print configinfo.rstrip()
sys.exit(0)
dirnodes = len(os.listdir(os.path.join(nodedir, "vdrive")))
"""graph_title Allmydata Tahoe Filecount
graph_vlabel files
graph_category tahoe
-graph_info This graph shows the number of files hosted by this node's StorageServer"""
+graph_info This graph shows the number of files hosted by this node's StorageServer
+"""
for nodename, basedir in nodedirs:
configinfo += "%s.label %s\n" % (nodename, nodename)
if len(sys.argv) > 1:
if sys.argv[1] == "config":
- print configinfo
+ print configinfo.rstrip()
sys.exit(0)
for nodename, basedir in nodedirs:
"""graph_title Allmydata Tahoe Shares Per File
graph_vlabel shares per file
graph_category tahoe
-graph_info This graph shows the number of shares present for each file hosted by this node's StorageServer"""
+graph_info This graph shows the number of shares present for each file hosted by this node's StorageServer
+"""
for nodename, basedir in nodedirs:
configinfo += "%s.label %s\n" % (nodename, nodename)
if len(sys.argv) > 1:
if sys.argv[1] == "config":
- print configinfo
+ print configinfo.rstrip()
sys.exit(0)
for nodename, basedir in nodedirs:
"""graph_title Allmydata Tahoe Shareholder Space
graph_vlabel bytes
graph_category tahoe
-graph_info This graph shows the space consumed by this node's StorageServer"""
+graph_info This graph shows the space consumed by this node's StorageServer
+"""
for nodename, basedir in nodedirs:
configinfo += "%s.label %s\n" % (nodename, nodename)
if len(sys.argv) > 1:
if sys.argv[1] == "config":
- print configinfo
+ print configinfo.rstrip()
sys.exit(0)
for nodename, basedir in nodedirs: