The patch I came up with is at: https://git.langille.org/dvl/gist/src/branch/master/patch-plugins_check__pgsql.c It solves the immediate problem. See also https://github.com/bucardo/check_postgres which doesn't have this issue. — Dan Langille http://langille.org/