Skip to content

Instantly share code, notes, and snippets.

@zeha
Created June 14, 2018 20:40
Show Gist options
  • Save zeha/2c62490dbc35acf48e42976989f1f0e1 to your computer and use it in GitHub Desktop.
Save zeha/2c62490dbc35acf48e42976989f1f0e1 to your computer and use it in GitHub Desktop.
--- /opt/omd/versions/1.4.0p33.cee/share/check_mk/checks/netapp_api_vs_traffic 2018-06-14 22:38:10.015343639 +0200
+++ fixed 2018-06-14 22:38:02.875290054 +0200
@@ -88,7 +88,7 @@
if what not in data:
continue
- rate = get_rate(what, now, int(data[what]) * scale)
+ rate = get_rate('%s:%s' % (protocol, what), now, int(data[what]) * scale)
yield 0, "%s %s: %s" % (protoname, perftext, format_func(rate)), [(perfname, rate)]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment