From f8ca78d7fde44d7a808f0833172ea8cd0b28b1c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20M=E4kinen?= Date: Thu, 20 Aug 2009 07:44:14 +0300 Subject: [PATCH] Removed RCS leftovers. --- munin/files/plugins/vmware_vms,v | 79 -------------------------------- 1 file changed, 79 deletions(-) delete mode 100755 munin/files/plugins/vmware_vms,v diff --git a/munin/files/plugins/vmware_vms,v b/munin/files/plugins/vmware_vms,v deleted file mode 100755 index 17144db..0000000 --- a/munin/files/plugins/vmware_vms,v +++ /dev/null @@ -1,79 +0,0 @@ -head 1.1; -access; -symbols; -locks; strict; -comment @# @; - - -1.1 -date 2009.05.28.10.27.06; author root; state Exp; -branches; -next ; - - -desc -@@ - - -1.1 -log -@Initial revision -@ -text -@#!/bin/sh -# -# Plugin to monitor running and registered virtual machines in the system. -# -# Parameters: -# -# config (required) -# autoconf (optional - used by munin-config) -# -#%# family=auto -#%# capabilities=autoconf - -if [ "$1" = "autoconf" ]; then - if [ -x /usr/bin/vmware-vim-cmd ]; then - echo yes - exit 0 - else - echo no - exit 1 - fi -fi - - -if [ "$1" = "config" ]; then - echo 'graph_title VMware virtual machines' - echo 'graph_vlabel number of virtual machines' - echo 'graph_category vmware' - echo 'graph_info This graph monitors registered and running virtual machines.' - - echo 'running.label running' - echo 'running.info Running virtual machines.' - - echo 'registered.label registered' - echo 'registered.info Registered virtual machines.' - exit 0 -fi - -vmware-vim-cmd vmsvc/getallvms | awk ' - BEGIN { - registered = 0; - running = 0; - } - { - if (/^[0-9]+/) { - registered++; - ("vmware-vim-cmd vmsvc/power.getstate " $1 " | grep Powered") | getline state; - if (state == "Powered on") { - running++; - } - } - } - END { - print "registered.value " registered - print "running.value " running - } -' -@