1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 18:41:03 +00:00

Updated swift plugins

This commit is contained in:
Anton Orel 2014-02-27 18:42:29 +04:00
parent a83b0d27d8
commit 712558db17
2 changed files with 4 additions and 2 deletions

View file

@ -45,4 +45,6 @@ except IndexError:
async_r = requests.get("http://%s:%s/recon/async" \
% (swift_server, os.getenv("SWIFT_OBJECT_PORT", "6000")))
print "async_pending.value %d" % json.loads(async_r.text)['async_pending']
async_r = json.loads(async_r.text)['async_pending']
async_r = int(0 if async_r is None else async_r)
print "async_pending.value %d" % async_r

View file

@ -64,7 +64,7 @@ except IndexError:
pass
with os.popen("swift-dispersion-report -j %s" \
% os.getenv("SWIFT_DISPERSION_CONFIG", "/etc/swift/swift.conf")) as report:
% os.getenv("SWIFT_DISPERSION_CONFIG", "/etc/swift/dispersion.conf")) as report:
stats = json.load(report)
for type_, values in stats.iteritems():