From: Brian Warner Date: Fri, 11 Jul 2008 22:14:28 +0000 (-0700) Subject: remove tahoe-dirnodes.py munin plugin, it is way obsolete X-Git-Url: https://git.rkrishnan.org/pf/content/en/footer/bar.txt?a=commitdiff_plain;h=38252b6df16d97c102d4f1c8b38e25a448f84f94;p=tahoe-lafs%2Ftahoe-lafs.git remove tahoe-dirnodes.py munin plugin, it is way obsolete --- diff --git a/misc/munin/tahoe-dirnodes.py b/misc/munin/tahoe-dirnodes.py deleted file mode 100644 index 22cfa79d..00000000 --- a/misc/munin/tahoe-dirnodes.py +++ /dev/null @@ -1,38 +0,0 @@ -#! /usr/bin/python - -# This is a munin plugin to track the number of directory nodes that a vdrive -# server is maintaining on behalf of other nodes. If a mesh has only one -# vdrive server (or if clients are only bothering to use a single one), then -# this will be equal to the number of dirnodes in use in the entire mesh. - -# Copy this plugin into /etc/munun/plugins/tahoe-dirnodes and then put -# the following in your /etc/munin/plugin-conf.d/foo file to let it know -# where to find the basedirectory for the vdrive server. -# -# [tahoe-dirnodes] -# env.basedir /path/to/vdrivenode - -import os, sys - -nodedir = os.environ["basedir"] - -configinfo = \ -"""graph_title Allmydata Tahoe Dirnode Count -graph_vlabel dirnodes -graph_category tahoe -graph_info This graph shows the number of directory nodes hosted by this vdrive server -dirnodes.label dirnodes -dirnodes.draw LINE2 -""" - - -if len(sys.argv) > 1: - if sys.argv[1] == "config": - print configinfo.rstrip() - sys.exit(0) - -dirnodes = len(os.listdir(os.path.join(nodedir, "vdrive"))) -if os.path.exists(os.path.join(nodedir, "vdrive", "root")): - dirnodes -= 1 # the 'root' pointer doesn't count -print "dirnodes.value %d" % dirnodes -