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

vm_cpu_info.pl: Not accept thresholds if no subselect #188

Closed curropar closed 2 years ago

curropar commented 3 years ago

Calling: ./check_vmware_esx.pl -H $HOSTNAME$ -u $ARG1$ -p $ARG2$ -S cpu -w $ARG3$ -c $ARG4$

Won't check the thresholds and neither exits with error.

Now added code copy/pasted from vm_mem_info.pl to check $perf_thresholds if $subselect is not defined, and throw error if needed.