Skip to content

Instantly share code, notes, and snippets.

@Snawoot
Created October 21, 2014 22:25
Show Gist options
  • Save Snawoot/c54a4ee76d7a18294369 to your computer and use it in GitHub Desktop.
Save Snawoot/c54a4ee76d7a18294369 to your computer and use it in GitHub Desktop.
--- check_mk-lnx_if.php.bak 2014-10-22 02:07:37.250848856 +0400
+++ check_mk-lnx_if.php 2014-10-22 02:22:32.260018325 +0400
@@ -110,10 +110,14 @@
"CDEF:inmb=intraffic,1048576,/ ".
"CDEF:outmb=outtraffic,1048576,/ ".
"CDEF:minusoutmb=0,outmb,- ".
+ "VDEF:consumed=intraffic,TOTAL ".
+ "VDEF:emitted=outtraffic,TOTAL ".
"AREA:inmb#00e060:\"in \" ".
"GPRINT:intraffic:LAST:\"%6.1lf %s$unit/s last\" ".
"GPRINT:intraffic:AVERAGE:\"%6.1lf %s$unit/s avg\" ".
"GPRINT:intraffic:MAX:\"%6.1lf %s$unit/s max\\n\" ".
+ "GPRINT:consumed:\"%6.1lf %s$unit/s consumed\\n\" ".
+ "GPRINT:emitted:\"%6.1lf %s$unit/s emitted\\n\" ".
"AREA:minusoutmb#0080e0:\"out \" ".
"GPRINT:outtraffic:LAST:\"%6.1lf %s$unit/s last\" ".
"GPRINT:outtraffic:AVERAGE:\"%6.1lf %s$unit/s avg\" ".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment