fix warn/crit input type, changed exit code to 3 for errors