Skip to content

Commit

Permalink
fix base plugin for windows boxes without perf stats enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
sacreman committed Nov 11, 2016
1 parent bd30b4b commit 183d68d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base/plugins/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def check_diskio():
disk_map["disk." + device_mapper[device] + "." + k] = v
return disk_map
except RuntimeError: # Windows needs disk stats turned on with 'diskperf -y'
pass
return {}


def check_virtmem():
Expand Down Expand Up @@ -262,5 +262,5 @@ def check_processes():
sys.exit(0)

except Exception, e:
print "Plugin failed %s check with error: %s" % e
print "Plugin failed check with error: %s" % e
sys.exit(2)

0 comments on commit 183d68d

Please sign in to comment.