Skip to content

Commit

Permalink
Commit a Zabbix wrapper script for using vm.disk.get method with C cl…
Browse files Browse the repository at this point in the history
…ient
  • Loading branch information
dnaeon committed Apr 11, 2014
1 parent 8eaf412 commit d69b708
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/misc-tools/cvpoller-zabbix-vm-disk-get
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env sh

# Simple wrapper script to use with Zabbix and the C client of vPoller
# This script is meant to be used for the 'vm.disk.get' vPoller Worker method

_args="$@"
_property_name=`echo ${_args} | sed -ne 's|.* -p \([a-zA-Z\.]*\)|\1|p'`

vpoller-cclient ${_args} 2>/dev/null | jq -r ".result[0].disk.${_property_name}"

0 comments on commit d69b708

Please sign in to comment.