Added function to check parameters warning and critical

Added function to check parameters warning and critical