Variables are case sensitive

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
Patrick Uiterwijk 2016-01-18 14:18:49 +00:00
parent b51369be69
commit 47532ab615

View file

@ -7,13 +7,13 @@ $WARNING=4
if [ $RUNNING_VMS -gt $CRITICAL ] if [ $RUNNING_VMS -gt $CRITICAL ]
then then
echo "Testcloud: CRITICAL Number of VMs running: $running_vms" echo "Testcloud: CRITICAL Number of VMs running: $RUNNING_VMS"
exit 2 exit 2
elif [ $RUNNING_VMS -gt $WARNING ] elif [ $RUNNING_VMS -gt $WARNING ]
then then
echo "Testcloud: WARNING Number of VMs running: $running_vms" echo "Testcloud: WARNING Number of VMs running: $RUNNING_VMS"
exit 1 exit 1
else else
echo "Testcloud: OK Number of VMs running: $running_vms" echo "Testcloud: OK Number of VMs running: $RUNNING_VMS"
exit 0 exit 0
fi fi