Closed curropar closed 2 years ago
Calling: ./check_vmware_esx.pl -H $HOSTNAME$ -u $ARG1$ -p $ARG2$ -S cpu -w $ARG3$ -c $ARG4$
./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.
vm_mem_info.pl
$perf_thresholds
$subselect
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.