Update check_log.sh

Added a parameter to critical return code X warning
Added perf return code
*Note: it wont change the functionality of the script, unless you use -c or --max_critical parameter!