<p>Hi,</p>

<p>check_pgsql restricts database names to [^_a-zA-Z0-9-]</p>

<p>However, that's not valid for quoted identifiers, such as "freshports.org"</p>

<p>Any character, except null, is valid.</p>

<p>ref: <a href="http://www.postgresql.org/docs/current/interactive/sql-syntax-lexical.html#SQL-SYNTAX-IDENTIFIERS">http://www.postgresql.org/docs/current/interactive/sql-syntax-lexical.html#SQL-SYNTAX-IDENTIFIERS</a></p>

<p>"Quoted identifiers can contain any character, except the character with code zero."</p>

<p>Blog post: <a href="http://dan.langille.org/2013/11/14/nagios-plugin-check_pgsql-cant-handle-all-valid-database-names/">http://dan.langille.org/2013/11/14/nagios-plugin-check_pgsql-cant-handle-all-valid-database-names/</a></p>

<p>HTH</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href='https://github.com/nagios-plugins/nagios-plugins/issues/1214'>view it on GitHub</a>.<img src='https://github.com/notifications/beacon/_EHT0K2RMtzboqJPrl-P-NrTJx63yzJWrr-drorsfu5i5M3Im5HY3HNoQyWPsQM3.gif' height='1' width='1'></p>