#!/bin/sh PLUGIN_VERSION="1" HEARTBEAT="true" METRICS_UNITS={user-'%',nice-'%',system-'%',iowait-'%',steal-'%'} default_attributes="plugin_version:$PLUGIN_VERSION|heartbeat_required:$HEARTBEAT|units:$METRICS_UNITS" iostat -y -c 2 1 | grep -v -e '^$' | tail -1 | awk '{printf "user:"$1"|nice:"$2"|system:"$3"|iowait:"$4"|steal:"$5}' echo '|'${default_attributes} exit 0;