diff --git a/checks/check_extra757 b/checks/check_extra757 index 162c7fc5..0320081a 100644 --- a/checks/check_extra757 +++ b/checks/check_extra757 @@ -28,13 +28,13 @@ extra757(){ do EC2_ID=$(echo "$ec2_instace" | awk '{print $1}') LAUNCH_DATE=$(echo "$ec2_instace" | awk '{print $2}') - textFail "$regx: EC2 Instance $EC2_ID running before than $OLDAGE" + textFail "$regx: EC2 Instance $EC2_ID running before than $OLDAGE" "$regx" done <<< "$INSTACES_OLD_THAN_AGE" else - textPass "All Instances newer than 6 months" + textPass "$regx: All Instances newer than 6 months" "$regx" fi else - textInfo "No EC2 Instances Found" + textInfo "$regx: No EC2 Instances Found" "$regx" fi done } diff --git a/checks/check_extra758 b/checks/check_extra758 index 93f1d16e..1c402aa5 100644 --- a/checks/check_extra758 +++ b/checks/check_extra758 @@ -28,13 +28,13 @@ extra758(){ do EC2_ID=$(echo "$ec2_instace" | awk '{print $1}') LAUNCH_DATE=$(echo "$ec2_instace" | awk '{print $2}') - textFail "$regx: EC2 Instance $EC2_ID running before than $OLDAGE" + textFail "$regx: EC2 Instance $EC2_ID running before than $OLDAGE" "$regx" done <<< "$INSTACES_OLD_THAN_AGE" else - textPass "All Instances newer than 12 months" + textPass "$regx: All Instances newer than 12 months" "$regx" fi else - textInfo "No EC2 Instances Found" + textInfo "$regx: No EC2 Instances Found" "$regx" fi done }