1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-22 02:51: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