diff --git a/plugins/other/esxi b/plugins/other/esxi index 34506db1..866e02cd 100755 --- a/plugins/other/esxi +++ b/plugins/other/esxi @@ -73,6 +73,9 @@ function VMoverallCpuUsage () { while read c ; do temp="${c/*overallCpuUsage = /}" vmcpu[$n]="${temp/,*/}" + if [ "${vmcpu[$n]}" == "" ]; then + vmcpu[$n]="0" + fi (( n++ )) done <" ]; then + vmmem[$n]="0" + fi (( n++ )) done <" ]; then + vmmem[$n]="0" + fi (( n++ )) done <