BaldMansMojo / check_vmware_esx

chech_vmware_esx Fork of check_vmware_api.pl
GNU General Public License v2.0
124 stars 67 forks source link

runtime vmtools check vcenter, hide powered off #29

Closed eizedev closed 10 years ago

eizedev commented 10 years ago

Hi Martin,

wäre es möglich (bzw. ist es überhaupt so gewollt) bei der Prüfung der VMware Tools eine Möglichkeit einzubauen ausgeschaltete VMs nicht anzuzeigen? Eine Alarmierung für "Powered Off" VMs erfolgt sowieso nicht, die Anzeige der ausgeschalteten VMs kann man ebenfalls über listvms (-S runtime -s listvms --alertonly) sehen. Sobald der Status der Prüfung auf ein Warning geht, muss ich aktuell Zeile für Zeile der Ausgabe durchgehen um das "Warning zu erkennen".

Beispiel, 2 VMware Tools "not installed", in der Ausgabe werden aber trotzdem alle "Powered Off" VMs angezeigt: "-S runtime -s tools --alertonly"

Warning! 108 VMs - 83 Installed,running and current. - 0 Installed,running,but the installed version is known to have a grave bug and should be immediately upgraded - 0 Installed,running,version is not current - 0 Installed,running,supported and newer than theversion available on the host - 0 Installed,running,supported, but a newer version is available - 0 Installed,running,but the version is known to be too new too new to work correctly with this virtual machine - 0 Installed,running,but the version is too old - 0 Installed,running,but not managed by VMWare - 0 Tools starting - 0 Tools not running - 2 Tools not installed - 0 No information about VMware tools available. - 14 Powered off. Tools not running - 0 Suspended. Tools not running VM1 powered off. Tools not running. VM2 powered off. Tools not running. VM3 powered off. Tools not running. VM4 powered off. Tools not running. VM5 powered off. Tools not running. VM VM6 Tools not installed. VM VM7 Tools not installed. VM8 powered off. Tools not running. VM9 powered off. Tools not running. VM10 powered off. Tools not running. VM11 powered off. Tools not running. VM12 powered off. Tools not running. VM13 powered off. Tools not running. VM14 powered off. Tools not running. VM15 powered off. Tools not running. VM16 powered off. Tools not running.

Danke & Gruß René

BaldMansMojo commented 10 years ago

Das wollte irgendwer genauso haben. Ich schau mal, ob ich das mit einem zusätzlichen Switch rausfiltern kann (--nopoweredoff)

Gruss - Martin

BaldMansMojo commented 10 years ago

--poweredonly in 0.9.15.

Gruss - Martin