Patches for check_mysql_query perfdata + smarter output [sf#3301066] [#1101]