Sha256: 26073d9da2e9d1006c0b9eb0d86e1a8a170fdd5c59f04210dcd714cdc292167a
Contents?: true
Size: 466 Bytes
Versions: 1
Compression:
Stored size: 466 Bytes
Contents
#!/usr/bin/env ruby Process.setproctitle($0) 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[LANG=C virsh list | grep -c running] #submit them to riemann report( :service => "KVM Running VMs", :metric => kvm_instances.to_i, :state => "info" ) end end Riemann::Tools::KVM.run
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
riemann-tools-1.0.0 | bin/riemann-kvminstance |