From beb6f113228a718e531885c968e14d69d6a629e2 Mon Sep 17 00:00:00 2001 From: Sebastian Cruz Date: Sat, 11 May 2013 09:36:50 -0300 Subject: [PATCH] Remove duplicated file. Closes https://github.com/aphyr/riemann-tools/issues/34 --- bin/riemann-kvminstances | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100755 bin/riemann-kvminstances diff --git a/bin/riemann-kvminstances b/bin/riemann-kvminstances deleted file mode 100755 index bad596f..0000000 --- a/bin/riemann-kvminstances +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env ruby - -require File.expand_path('../../lib/riemann/tools', __FILE__) - -class Riemann::Tools::KVM - include Riemann::Tools - - def tick - - #determine how many instances I have according to libvirt - kvm_instances = %x[virsh list |grep i-|wc -l] - - #submit them to riemann - report( - :service => "KVM Running VMs", - :metric => kvm_instances.to_i, - :state => "info" - ) - end -end - -Riemann::Tools::KVM.run